• Home
  • About
    • lahuman photo

      lahuman

      열심히 사는 아저씨

    • Learn More
    • Facebook
    • LinkedIn
    • Github
  • Posts
    • All Posts
    • All Tags
  • Projects

Amazon linux에 nodejs 설치 명령어

20 Jul 2022

Reading time ~1 minute

Amazon linux에 nodejs 설치 명령어

지금 프로젝트에서는 Amazone linux를 사용하고 있습니다.

초기 linux 설정 및 nodejs 설치 명령어를 간단하게 정리 합니다.

# 업데이트 
$ yum update -y
# python 3.x로 업그레이드
$ yum install -y python3 pip3
# 필요 모듈 설치
$ yum -y install gcc-c++ make curl

# nodejs 설치
$ curl -sL https://rpm.nodesource.com/setup_16.x |  bash -
$ yum install -y nodejs

# UTC 에서 KST로 변경
$ mv /etc/localtime /etc/localtime_org
$ ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime

추가로 nginx 는 yum이 아닌 amazon-linux-extras 명령어를 이용해서 진행합니다.

$ amazon-linux-extras install -y nginx1


linuxnodepython Share Tweet +1