【centos6.5】
1) 添加仓库:创建/etc/yum.repos.d/nginx.repo 添加:
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/6/$basearch/
gpgcheck=0
enabled=1
2) 安装
yum install nginx-1.8.1
yum安装默认安装Configure :
--prefix=/etc/nginx
--sbin-path=/usr/sbin/nginx
--conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--http-log-path=/var/log/nginx/access.log
--pid-path=/var/run/nginx.pid
--lock-path=/var/run/nginx.lock
--http-client-body-temp-path=/var/cache/nginx/client_temp
--http-proxy-temp-path=/var/cache/nginx/proxy_temp
--http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp
--http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp
--http-scgi-temp-path=/var/cache/nginx/scgi_temp
--user=nginx
--group=nginx
--with-http_ssl_module
--with-http_realip_module
--with-http_addition_module
--with-http_sub_module
--with-http_dav_module
--with-http_flv_module
--with-http_mp4_module
--with-http_gunzip_module
--with-http_gzip_static_module
--with-http_random_index_module
--with-http_secure_link_module
--with-http_stub_status_module
--with-http_auth_request_module
--with-mail
--with-mail_ssl_module
--with-file-aio
--with-http_spdy_module
--with-ipv6
3) 启动
service nginx {start|stop|restart|condrestart|try-restart|force-reload|upgrade|reload|status|help|configtest}
4) 查看进程
ps -ax | grep nginx
5) 防火墙放开端口
#添加放开的端口
service iptables restart
service iptables status
相关推荐
Nginx 安装成Windows 服务方法
Nginx所需环境的安装,及nginx安装,nginx相关功能开启,后端节点健康检查插件安装,静态资源缓存插件,缩略图插件安装等。
自己整理的nginx安装部署相关的一些经验,供参考
nginx安装全流程,包括安装流程,配置流程,还有开机自启动
nginx安装,有什么不好的多提宝贵意见
Nginx安装的时候不指定安装目录,会默认安装到/usr/local/nginx下,因此如果需要改变安装目录的同学,可以按照以下方法安装。
nginx安装、配置、负载均衡
nginx安装环境及nginx_1.18.0安装包,gcc、g++、pcre、zlib、nginx包
nginx 安装及配置文档包含 下载安装及相关配置步(反向代理,负载均衡)骤说明。
nginx安装与使用 http://blog.163.com/njut_wangjian/blog/static/1657964252013327103716818/ Nginx开发从入门到精通 http://tengine.taobao.org/book/index.html nginx官网上下载相应的安装包,--- 直接解压就...
nginx安装使用教程nginx安装使用教程
nginx安装.
一、nginx 安装与运行 (Mac OS环境) 1. 安装 nginx 可通过 Homebrew 可直接安装: $brew install nginx 安装好后,默认首页的文件在 /usr/local/var/www 文件夹下 默认的配置文件地址在 /usr/local/etc/nginx/nginx...
(1) Nginx安装配置 - 1 - 1) Nginx安装 - 1 - 2) Nginx配置 - 1 - a)对c:\nginx\conf\nginx.conf文件进行配置: - 1 - b)常用的 Nginx 参数 - 3 - c)静态文件处理 - 4 - d)动态页面请求处理 - 4 - e)下面为nginx....
php+mysql+nginx安装与常遇到的错误 centos系统为例子 在高并发连接的情况下,Nginx是Apache服务器不错的替代品。Nginx同时也可以作为7层负载均衡服务器来使用。根据我的测试结果,Nginx 0.8.15 + PHP 5.2.10 ...
一、安装nginx 二、关闭和重启nginx 三、卸载nginx 四、nginx加入到系统服务并自启动 该方案测试成功过!
nginx安装插件包和部署包含了文档和脚本以及其中nginx的安装包是直接在linux在线下载。不是非常详细啊!
nginx安装 附带安装包,解压即可安装