安装nginx
下载
tar
./configure
(
安装Nginx时报错
./configure:error:theHTTPrewritemodulerequiresthePCRElibrary.
安装pcre-devel解决问题
yum-yinstallpcre-devel
)
make&&makeinstall
默认安装到
/usr/local/nginx
启动
/usr/local/nginx/sbin/nginx
关闭nginx
pkill-9nginx
跳转
server{
listen80;
server_namelocalhost;
location/{
proxy_passhttp://192.168.1.100:8080;
}
}
也可以通过yum安装
rpm-ivhhttp://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
yuminfonginx
yuminstallnginx
相关推荐
张立军的架构之路 2020-09-28
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