相关安装文件下载地址:http://pan.baidu.com/s/1pJ3F2wN
安装说明
系统环境:CentOS-6.3
软件:nginx-1.2.6.tar.gz
安装方式:源码编译安装
安装位置:/usr/local/nginx
下载地址:http://nginx.org/en/download.html
作者:zhoulf
出处:http://www.cnblogs.com/zhoulf/安装前提
在安装nginx前,需要确保系统安装了g++、gcc、openssl-devel、pcre-devel和zlib-devel软件。安装必须软件:
[root@admin /]#yum install gcc-c++ yum -y install zlib zlib-devel openssl openssl--devel pcre pcre-devel |
检查系统安装的Nginx:
[root@admin local]# find -name nginx ./nginx ./nginx/sbin/nginx ./nginx-1.2.6/objs/nginx |
卸载原有的Nginx
[root@admin /]# yum remove nginx |
安装
将安装包文件上传到/usr/local中执行以下操作:
[root@admin local]# cd /usr/local [root@admin local]# tar -zxv -f nginx-1.2.6.tar.gz [root@admin local]# rm -rf nginx-1.2.6.tar.gz [root@admin local]# mv nginx-1.2.6 nginx [root@admin local]# cd /usr/local/nginx [root@admin nginx]# ./configure --prefix=/usr/local/nginx [root@admin nginx]# make [root@admin nginx]# make install |
配置
#修改防火墙配置: [root@admin nginx-1.2.6]# vi + /etc/sysconfig/iptables #添加配置项 -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT #重启防火墙 [root@admin nginx-1.2.6]# service iptables restart |
启动
#方法1 |
停止
#查询nginx主进程号 |
重启
[root@admin local]# /usr/local/nginx/sbin/nginx -s reload |
测试
#测试端口 |
相关推荐
CentOS 6.4安装配置LNMP服务器(Nginx+PHP+MySQL) 收藏版本
centos6.4安装nginx+keepalived实现高可用负载均衡.doc
CentOS6.4 nginx file
主要介绍了Centos6.4 编译安装 nginx php的方法,需要的朋友可以参考下
主要介绍了centos6.4+nginx+mysql+php+phpmyadmin整合过程,较为详细的分析了centos6.4+nginx+mysql+php+phpmyadmin整合的具体步骤、操作指令与相关实现技巧,需要的朋友可以参考下
主要介绍了CentOS 6.4下配置LNMP服务器的详细步骤,需要的朋友可以参考下
主要为大家详细介绍了centos6.4下nginx1.12.1安装教程,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
里面有 rpm 安装 ACE rpm 安装 mysql5.6 rpm 安装 php5.4 rpm 安装nginx 1.4
fastdfs-nginx-module_v1.16.tar.gz, FastDFS_v4.06.tar.gz libevent-headers-1.4.13-4.el6.noarch.rpm libevent-doc-1.4.13-4.el6.noarch.rpm libevent-devel-1.4.13-4.el6.x86_64.rpm nginx-1.7.10.tar.gz
centos6一键安装lnmp+zabbix服务端(ok脚本) install Nginx 1.8.x + mysql5.5.x + PHP-FPM 5.4.x + Zabbix 2.4.7 automatically.
Linux:CentOS6.4(32) Nginx:1.8.0 Vsftpd:需要在线安装。 虚拟机以及Linux安装很简单此处略。 Linux的局域网IP为:192.168.1.110 修改Linux的IP并立即生效的命令: [java] view plain copy 1.#切换root管理员...
redhat 6.4 安装nginx可能会报错./configure: error: the HTTP image filter module requires the GD library. You can either do not enable the module or install the libraries. 此时需要安装gd gd-devel,需要...
我们在安装配置服务器LNPM环境时应该考虑到PHP多版本并存的问题,下面是实现Linux系统下为Nginx安装多版本PHP的实现方法 linux版本:64位CentOS 6.4 Nginx版本:nginx1.8.0 php版本:php5.5.28 & php5.4.44 注意...
注,操作系统为 CentOS 6.4 x86_64 , Nginx 是版本是最新版的1.4.2,所以实验用到的软件请点击这里下载: CentOS 6.4下载地址://www.jb51.net/softs/78243.html Nginx下载地址://www.jb51.net/softs/35633.html ...
nginx服务器安装时用到的插件亲测有效。
选择相应的版本下载安装。 // 安装成功后,清空yum list 并 重新获取 [root@pangou Desktop]# yum clean all Loaded plugins: fastestmirror, refresh-packagekit, security Cleaning repos: base extras rpmforge ...
lnmp环境搭建文档, CentOS6.4 final , nginx, php, mysql安装文档, 完成描述了如果去编译安装整套环境, 附所需源码包下载地址:http://download.csdn.net/detail/otypedef/6814845 源码包下载不需积分. 适合初学者看...