您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

centos6.5下安装nginx

2026/2/13 6:36:30发布12次查看
1.安装pcre-8.36.tar.gz
tar -zxvf pcre-8.36.tar.gzcd pcre-8.36./configure --prefix=/usr/local/pcremakemake install
2.安装zlib-1.2.8.tar.gz 
tar -zxvf zlib-1.2.8.tar.gzcd zlib-1.2.8./configure --prefix=/usr/local/zlibmakemake install
3.安装openssl-1.0.2.tar.gz 
tar -zxvf openssl-1.0.2.tar.gz
4.安装nginx-1.6.2.tar.gz
./configure --prefix=/usr/local/nginx --conf-path=/usr/local/nginx/nginx.conf --pid-path=/usr/local/nginx/nginx.pid --with-http_ssl_module --with-pcre=/usr/local/soft/pcre-8.36 --with-zlib=/usr/local/soft/zlib-1.2.8 --with-openssl=/usr/local/soft/openssl-1.0.2makemake install
--with-pcre=/usr/local/soft/pcre-8.36 指的是pcre-8.36 的源码路径。--with-zlib=/usr/local/soft/zlib-1.2.8 指的是zlib-1.2.8 的源码路径。
--with-openssl=/usr/local/soft/openssl-1.0.2 指的是openssl-1.0.2 的源码路径。
5.启动nginx并验证是否启动
启动nginx
/usr/local/nginx/sbin/nginx
访问nginx
通过浏览器访问 http://你的ip 出现如下界面则证明启动成功
以上就介绍了centos6.5下安装nginx,包括了方面的内容,希望对php教程有兴趣的朋友有所帮助。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product