Modify nginx as a global command
(Recommended tutorial: nginx tutorial)
Modify the file:
[root@localhost ~]# vim /etc/profile 最后面追加: export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH:/opt/nginx_fdfs/sbin 然后生效配置 [root@localhost ~]# source /etc/profile
Get parameters:
Copy configure arguments to the text editor
Find the installation configuration command in the installation package
Execute
Stop nginx, and then execute it in the current directory
make && make install
Then restart nginx
[root@localhost nginx_fdfs]# nginx -c /opt/nginx_fdfs/conf/nginx.conf
Test whether it takes effect
The above is the detailed content of How to recompile installed nginx. For more information, please follow other related articles on the PHP Chinese website!