Home > Operation and Maintenance > Nginx > How to recompile installed nginx

How to recompile installed nginx

王林
Release: 2020-10-21 17:32:02
forward
5683 people have browsed it

How to recompile installed nginx

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
Copy after login

How to recompile installed nginx

Get parameters:

How to recompile installed nginx

Copy configure arguments to the text editor

How to recompile installed nginx

Find the installation configuration command in the installation package

How to recompile installed nginx

Execute

How to recompile installed nginx

Stop nginx, and then execute it in the current directory

make && make install
Copy after login

Then restart nginx

[root@localhost nginx_fdfs]# nginx -c /opt/nginx_fdfs/conf/nginx.conf
Copy after login

Test whether it takes effect

How to recompile installed nginx

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!

Related labels:
source:juejin.im
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template