安装pcre库,因为nginx依赖它,如何安装请百度。
编译安装Nginx
./configure--sbin-path=/usr/local/nginx/nginx--with-openssl=/usr/local/ssl/include[root@weinginx]#ls/usr/local/nginx/client_body_tempfastcgi_templogsproxy_tempuwsgi_tempconfhtmlnginxscgi_temp修改ld.so.confvi/etc/ld.so.conf添加以下内容:/usr/local/lib因为我们的pcre库安装在/usr/local/lib下,系统默认找不到的,然后再运行ldconfig。
去除防火墙
[root@weinginx]#iptables--flush
[root@weinginx]#serviceiptablessave
iptables:将防火墙规则保存到/etc/sysconfig/iptables:[确定]
[root@weinginx]#/usr/local/nginx/nginx
现在打开localhost就看到Welcometonginx!的页面。
分享到:
相关推荐
Dockerfile 编译安装nginx FROM hub.c.163.com/netease_comb/centos:7 RUN yum install -y gcc gcc-c++ make openssl-devel pcre-devel #http://nginx.org/download/nginx-1.12.2.tar.gz ADD nginx-1.12.2....
Centos_6.3_编译安装Nginx+php+Mysql,基础文档
本篇内容详细讲解了编译安装nginx的过程和如何操作
一键编译安装nginx-1.12.2.txt
centos7编译安装nginx
CentOS 6.0最小化编译安装Nginx+MySQL+PHP+Zend ======================================================================引言: 操作系统:CentOS 6.0 32位 下载地址:...
CentOS 6.2编译安装Nginx1.2.0+MySQL5.5.25+PHP5.3.13+Zend Guard Loader+WordPress-3.3.2中文版.pdf
centos 6.0最简化编译安装Nginx+Mysql+PHP+Zend
FreeBSD7.0编译安装nginx+php+mysql[定义].pdf
FreeBSD7.0编译安装nginx+php+mysql.pdf
CentOS 7.0编译安装Nginx1.6.0+MySQL5.6.19+PHP5.5.14教程
FreeBSD7.0编译安装nginx+php+mysql借鉴.pdf
在SUSE平台下编译安装nginx需要的安装包,-pcre2-10.21.tar.gz
计算机后端-PHP视频教程. Linux16 编译安装nginx.wmv