Nginx developed using lower Centos7 (Background: Ali cloud ECS Centos7)
Installation and Startup
- 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 nginx
grammar mistakeps -ef | grep nginx
can also use the netstat -ntpl view but it needsyum -y install net-tools
- Start
centos7 ECS starts at
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
Finally, if the problem still inaccessible
- Check the firewall
to solve the problem: turn off the firewall and other systemctl stop firewalld.service
resolve Reference article - Check the port 80
Ali goes blank after installing the request or can not access port 80 issues command input invalid
after Ali cloud in the background security check group settings need to manually add HTTP 80 port
https://blog.csdn.net/qq_32953079/article/details/ 81,975,160
Jump pit error Guide
As local nginx configuration , online Centos7 also reported the following error
nginx: [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