安装nginx
1, 安装依赖包
yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel
2. 下载解压文件
wget http://nginx.org/download/nginx-1.9.9.tar.gz
tar -xvzf nginx-1.9.9.tar.gz
3. 安装nginx
cd nginx-1.9.9
./configure --prefix=/usr/local/nginx
make & make install
4. 配置nginx.conf文件
vi /usr/local/nginx/conf/nginx.conf,修改端口及ip地址
5. 启动nginx
/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
查看进程是否启动成功lsof -i:52000
相关推荐
nginxs 2020-11-14
Guanjs0 2020-11-13
小木兮子 2020-11-11
yserver 2020-11-11
ssihc0 2020-11-11
windle 2020-11-10
HanksWang 2020-11-10
liuchen0 2020-11-10
Freshairx 2020-11-10
ccschan 2020-11-10
liwf 2020-11-10
Guanjs0 2020-11-09
AderStep 2020-11-09
zrtlin 2020-11-09
mqfcu 2020-11-10
windle 2020-10-29