2024年3月20日发(作者:)
Nginx 安装与配置
1、OS环境
linux系统Redhat 6.5
2、安装准备
下载pcre:/
下载nginx:/download/
本次实测使用版本为:,
3、安装
1)、root用户登录,当前目录如:/root
2)、上传文件,
3)、安装:
$ tar -zxf
$ cd pcre-8.38
$ ./configure
$ make
$ make install
4)、安装
tar –xzf
cd nginx-1.9.12
./configure
Make&&make install
5)、安装成功后nginx的安装目录应该是/usr/local/nginx
配置文件目录:/usr/local/nginx/conf/
启动脚本目录:/usr/local/nginx/sbin/
Cd /usr/local/nginx/sbin/
./nginx --启动


发布评论