zoukankan      html  css  js  c++  java
  • linux 安装nginx

    $ yum install pcre pcre-devel
    $ yum install zlib zlib-devel
    $ yum install openssl openssl-devel --setopt=protected_multilib=false
    yum update openssl openssl-devel --setopt=protected_multilib=false

    # chmod 777 /etc/nginx/
    # chmod 777 /var/run
    # chmod -R 777 /var/cache/nginx
    # chmod -R 777 /var/log/nginx/


    $ mkdir -p /etc/nginx/ngx
    $ cp ngx/nginx.node.interface.conf /etc/nginx/ngx
    $ nginx -t -c ngx/nginx.node.interface.conf
    nginx: the configuration file /etc/nginx/ngx/nginx.node.interface.conf syntax is ok
    nginx: configuration file /etc/nginx/ngx/nginx.node.interface.conf test is successful
    $ nginx -c ngx/nginx.node.interface.conf

    $ netstat -apn|grep LISTEN|grep 5000
    (Not all processes could be identified, non-owned process info
    will not be shown, you would have to be root to see it all.)
    tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN 16089/nginx: master

    $ nginx -s reload -c ngx/nginx.node.interface.conf

    --备注

    nginx-1.10.3-1.el7.ngx.x86_64.rpm

  • 相关阅读:
    UDP
    ICMP协议、DNS、ARP协议、ping、DHCP协议
    OSI七层模型和TCP/IP四层模型
    STL六大组件
    迭代器
    哈希表
    react wangeditor使用
    URL切割
    ES6对象合并
    nginx 访问本机文件
  • 原文地址:https://www.cnblogs.com/book-gary/p/7410352.html
Copyright © 2011-2022 走看看