首页
技术
登录
6mi
u
盘
搜
搜 索
技术
Os 7 源码安装nginx
Os 7 源码安装nginx
技术
2024-06-29
68
下载源码包:
[
root@localhost ~
]
# wget http://nginx.org/download/nginx-1.12.2.tar.gz
安装依赖包:
[
root@localhost ~
]
# yum -y install gcc gcc-c++ pcre-devel zlib-devel
解压安装nginx:
[
root@localhost ~
]
# tar zxf nginx-1.12.2.tar.gz
[
root@localhost ~
]
# cd nginx-1.12.2
[
root@localhost nginx-1.12.2
]
# ./configure
[
root@localhost nginx-1.12.2
]
# make && make install
开启nginx:
[
root@localhost nginx-1.12.2
]
# /usr/local/nginx/sbin/nginx
测试:
[
root@localhost ~
]
# curl 192.168.136.251
转载请注明原文地址:https://ipadbbs.8miu.com/read-50412.html
最新回复
(
0
)