先安装gcc 等
然后用rz上传到服务器
然后解压文件. 进入 nginx1.9.5的源码 如果想改版本号 可以进入源码目录 src/core/nginx.h 更改 创建一个nginx目录用来存放运行的临时文件夹 开始configure 接着 编译 安装 启动nginx 用ps aux来查看nginx是否启动 然后配置服务 按i输入以下内容 编辑好后保存
然后开启开机启动 用命令关掉nginx 后面可以用systemctl来操作nginx.service 然后php装好后更改配置 编辑/etc/nginx/nginx.conf
.然后装一些库
进入默认的软件目录
下载 nginx软件
如果这个下载太慢可以在这里下载
http://nginx.org/download/nginx-1.9.5.tar.gz 下载完后yum -y intall lrzsz 装好上传工具
然后用rz上传到服务器
然后解压文件. 进入 nginx1.9.5的源码 如果想改版本号 可以进入源码目录 src/core/nginx.h 更改 创建一个nginx目录用来存放运行的临时文件夹 开始configure 接着 编译 安装 启动nginx 用ps aux来查看nginx是否启动 然后配置服务 按i输入以下内容 编辑好后保存
然后开启开机启动 用命令关掉nginx 后面可以用systemctl来操作nginx.service 然后php装好后更改配置 编辑/etc/nginx/nginx.conf