CentOS7安装Nginx1.22.0
作者:
三没产品 | 来源:发表于
2022-08-22 17:53 被阅读0次
下载地址
nginx: download
image.png
linux下安装nginx
第一步:解压压缩包(我这边解压缩后的文件夹为 nginx-1.22.0)
如果未安装gcc 和gcc-c++ 、PCRE
yum -y install gcc
yum -y install gcc-c++
yum -y install pcre-devel openssl openssl-devel
安装成功后
cd nginx-1.22.0
./configure #自动配置
make #执行make命令
make install #执行make install
whereis nginx #查看安装目录/usr/local/nginx
cd /usr/local/nginx/sbin
./nginx
Nginx常用命令
./nginx #启动
./nginx -s stop #停止
./nginx -s quit #安全退出
./nginx -s reload #重新加载配置文件
ps -ef|grep nginx #查看Nginx进程
参考地址:(29条消息) CentOS7安装Nginx及./configure: error: the HTTP rewrite module requires the PCRE library.错误解决_馮同学的博客-CSDN博客
本文标题:CentOS7安装Nginx1.22.0
本文链接:https://www.haomeiwen.com/subject/cbmggrtx.html
网友评论