Ubuntu 升级或安装 Nginx 1.16+
Nginx , Ubuntu / 2016年7月13日

一、安装nginx ubuntu1804当前apt源是1.14版本的,查看方法 sudo apt-cahce show nginx nginx官网当下最新的文档版本是1.16了,所以我们需要为apt添加最新的安装源。 第一步,准备相关依赖包 sudo apt install curl gnupg2 ca-certificates lsb-release 第二步,在apt的安装源中(仓库)添加ngi...

Debian7/8/9 安装最新的nginx稳定版本
Debain , Nginx / 2016年7月13日

我们知道,通过 apt-get install nginx 就可以安装上nginx,可惜这样安装的nginx版本都有些旧,就连最新的Debian 8.0 默认安装的仍然是1.6.2,更别说 Debian 7.0或6.0,那默认安装都是Nginx1.4.x甚至是Nginx1.2.x 若想要安装最新的,目前为1.8.0,除了较麻烦的编译安装外,还可以继续选择包安装,只需要简单更新一下库。 编辑 /et...

nginx访问日志,错误日志参数说明
Nginx , 日志 / 2016年5月26日

访问日志[Access.log] '$remote_addr $remote_user [$time_local] "$request" $http_host' '$status $upstream_status $body_bytes_sent "$http_referer"' '"$http_user_agent" $ssl_protocol $ssl_cipher $upstream_add...

Nginx 开机自启动
CentOS , Nginx / 2016年5月13日

1、 vim /etc/init.d/nginx 内容为: #!/bin/sh       #       # nginx - this script starts and stops the nginx daemin       #       # chkconfig:   - 85 15        # description:  Nginx is an HTTP(S) server, HT...

Nginx 编译安装
Nginx / 2016年5月13日

Nginx 编译安装 1 利用下面的命令来检查系统是否安装了apache rpm -qa|grep httpd 如果已安装,由于apache和nginx 默认端口都是 80 所以如果nginx 要以80端口启动 那么需要将apache卸载或者关闭或者更改apache的端口 命令: 卸载 apache: yum -y remove httpd 关闭 apache: service httpd sto...