运维技术分享平台

 找回密码
 立即注册
首页
查看: 344|回复: 0

nginx编译安装

[复制链接]

296

主题

305

帖子

1701

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1701
发表于 2022-8-17 16:53:41 | 显示全部楼层 |阅读模式
yum -y install pcre-devel  openssl-devel zlib-devel gcc

groupadd nginx
useradd -g nginx -s /sbin/nologin nginx

切换到解压后的nginx目录中执行:
# ./configure --with-http_secure_link_module \
./configure --user=nginx --group=nginx --prefix=/usr/local/nginx  --with-http_ssl_module --with-http_stub_status_module
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

首页

手机版|关于自己|运维技术分享平台

GMT+8, 2024-4-20 20:36 , Processed in 0.099423 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc. Template By 【未来科技】【 www.wekei.cn 】

快速回复 返回顶部 返回列表