기록하다
[Ubuntu][AWS][EC2] 서버환경설정
메슈어
2018. 10. 11. 18:10
awsUbuntu16.04
1. nodejs 8.x버전 설치
* npm 으로 n 설치 후 8.x버전 nodejs를 설치한다.
sudo apt-get install npm
npm install -g n
sudo npm install -g n
sudo n 8.10
node -v
기타 ) n에 설치된 버전을 링크
ln -sf /usr/local/n/versions/node/버전/bin/node /usr/bin/node
2. nginx 설치
2. nginx 설치
sudo apt-get install nginx
sudo systemctl status nginx
* ningx 구동확인
EC2 인스턴스의 IPv4 퍼블릭 IP 로 접속해본다.
3. git 설치 및 clone
sudo apt-get install python-software-properties
sudo apt-get install software-properties-common
#git repository 업데이트 후 git을 설치하자.
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git-core
# 설치 확인
git version
4. docker 설치