Blogger Information
Blog 16
fans 0
comment 0
visits 14684
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
nginx的编译安装
进击的小菜鸟
Original
703 people have browsed it

系统版本  centos7.2 64位

nginx 是一个高性能的http和反向代理服务器

nginx依赖与pcre库和zlib库 所以要先安装

yum install pcre pcre-devel

yum install zlib zlib-devel

然后下载需要的nginx版本包

cd /usr/local/src

wget http://nginx.org/download/nginx-1.12.2.tar.gz

tar zxvf ngingx-1.12.2.tar.gz

cd nginx-1.12.2

./configure --prefix=/usr/local/nginx   #后面的prefix表示安装路径

make && make install

cd /usr/local/nginx 安装成功后有如下目录

conf  配置文件

html  网页文件

logs  日志文件

sbin  主要二进制程序

启动nginx  运行sbin下的nginx文件

./sbin/nginx

如果80端口占用 杀掉进程就是了

netstat -antp|anb(显示程序名)   查看运行中的进程

杀进程 pkill -9 http




Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post