본문 바로가기

개발개발

CentOS에 NginX 설치하기

  1. nginx 설치
    • Centos버전 : 6.9
    • NginX버전 : 1.14.0
  2. CentOS
    1. 의존라이브러리 설치
      • pcre
      • #> yum install pcre pcre-devel

      • zlib 
      • #> yum install zlib zlib-devel

      • openssl
      • #> yum install openssl openssl-devel

      • gcc
      • #> yum install gcc

    2. NginX 설치
    3. #> wgetj https://nginx.org/download/nginx-1.14.0.tar.gz
      #> tar xvf nginx-1.14.0.tar.gz
      #> cd nginx-1.14.0.tar.gz
      #> ./configure --prefix=/usr/local/nginx-1.14.0 --with-http_ssl_module --with-http_realip_module --with-http_stub_status_module
      #> make
      #> make install
      #> make clean
      #> cd /usr/local
      #> ln -s nginx-1.14.0 nginx

    4. 방화벽
    5. #> vi /etc/sysconfig/iptables
      다음 내용 추가
      -A INPUT -m tcp -p tcp --dport 80 -j ACCEPT|


      #> /etc/init.d/iptables stop
      #> /etc/init.d/iptables start


'개발개발' 카테고리의 다른 글

Gitlab과 Redmine 한서버에 설치하기  (0) 2018.08.24
Centos 에서 GitLab 설치하기  (0) 2018.08.21
레드마인 설치  (0) 2018.08.13
CentOS 6.9 최소 설치후 네트워크 작업  (0) 2018.08.13
npm 에서 --save 의미는  (0) 2018.08.02