Front-end development of small fast --nginx side story

Nginx developed using lower Centos7 (Background: Ali cloud ECS Centos7)

Installation and Startup

  1. Installation Tutorial
    Centos7 install Nginx combat

Need idea is as follows:

4. In a fourth step described configuration can use the translation parameters command ./configure --help :( detailed query parameters)
shown in FIG performed../configure

After the start view (4) to see if the start: ps -ef grep nginxgrammar mistake ps -ef | grep nginx
can also use the netstat -ntpl view but it needsyum -y install net-tools

  1. Start
    centos7 ECS starts at
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

Finally, if the problem still inaccessible

Jump pit error Guide

As local nginx configuration , online Centos7 also reported the following errornginx: [error] invalid PID number ; in /usr/local/nginx/logs/nginx.pid

Details are as follows: nginx reload command ./nginx -s reload, appears
nginx: [error] invalid PID number "" in "/usr/local/nginx/logs/nginx.pid" problem.

Solution:
   Step 1: Execute the command killall -9 nginx nginx kill the process
   Step two: Run / usr / local / nginx / sbin / nginx -c /usr/local/nginx/conf/nginx.conf reload the configuration file
   The third step: Run ./nginx -s reload restart nginx

Reference links

Guess you like

Origin www.cnblogs.com/yc8930143/p/11933018.html