2019-09-30安装niginx 启动 关闭 重启
第一步首先下载nginx 安装包解压
checking for C compiler ... not found
上述问题是因为 这几个包的缺失
-
yum -y install gcc
-
yum -y install gcc-c++
-
yum install make
编译安装nginx却requires the PCRE library
编译安装nginx需要pcre包,未安装会有如下提示:
./configure: error: the HTTP rewrite module requires the PCRE library.
You can either disable the module by using --without-http_rewrite_module
option, or install the PCRE library into the system, or build the PCRE library
statically from the source with nginx by using --with-pcre=<path> option.
需要安装pcre的devel包,pcre-devel。使用yum安装即可:(以下命令还带有ssl、zlib等依赖的安装)
yum -y install zlib zlib-devel openssl openssl--devel pcre pcre-devel
关闭nginx 直接杀死进程号
[root@kaiwen ~]# ps -ef | grep nginx
root 28227 1 0 15:12 ? 00:00:00 nginx: master process ./nginx
nobody 28228 28227 0 15:12 ? 00:00:00 nginx: worker process
root 29225 16204 0 15:31 pts/0 00:00:00 grep --color=auto nginx
[root@kaiwen ~]# ps -ef | grep nginx
[root@kaiwen ~]# kill -quit 28227
[root@kaiwen ~]# ps -ef | grep nginx
root 29546 16204 0 15:38 pts/0 00:00:00 grep --color=auto nginx
分类:
Centos
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY