본문 바로가기

Linux3

리눅스에 node js 개발환경 구성 centos 7을 기준으로 작성되었습니다. 우선 wget을 설치합니다. yum install wget wget으로 nvm(node version manager) 을 설치합니다. nvm을 사용하는 이유는 상황에 따라 쉽게 관리를 하기 위해서 입니다. 기존 레파지토리를 등록하여 설치하는 과정에 몇번의 이슈가 있어 nvm을 사용하였고 쉽게 해결하였습니다. wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash 설치 후 bashrc를 로드합니다. source ~/.bashrc 로드 후에도 nvm이 실행되지 않을 때는 다음의 내용을 업데이트하고 다시 로드해주세요. nano ~/bashrc export NVM_DIR="$HOM.. 2021. 4. 12.
yum 실행시 오류 centos 7 기준으로 작성하였습니다. centos에서 yum을 실행하려고 하면 다음과 같은 에러가 나타나는 경우 bash : /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory 해당 yum의 python경로가 맞지 않아 생기는 오류다 . 먼저 python의 위치를 찾아라 - sudo whereis python 그러면 다음과 같이 경로가 나온다. python: /usr/bin/python2.7 /usr/bin/python2.7-config /usr/bin/python3.6 /usr/bin/python3.6m /usr/bin/python /usr/bin/python3.6-config /usr/bin/python3.6m-con.. 2018. 2. 21.
LEMP 환경 구성 / centos7 기준 해당 프로세스는 digitalocean을 참고하였습니다. https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-7 1. epel 레파지토리 추가 yum install epel-release 2. nginx 설치 yum install nginx 3. nginx 실행 systemctl start nginx * nginx 실행 확인은 해당 도메인 주소를 입력하여 nginx페이지가 나오면 성공 4. nginx 활성화 systemctl enable nginx 5. db설치 yum install mariadb-server mariadb or yum install mysql-ser.. 2017. 9. 3.