NGINX Plus for HTTP & TCP load balancing, caching and SSL offload — Free 30-Day Trial
nginx: Linux packages
Currently, nginx packages are available for the following distributions and versions:
RHEL/CentOS:
Version 5.x 6.x 7.x
Debian:
Version Codename 6.x squeeze 7.x wheezy
Ubuntu:
Version Codename 10.04 lucid 12.04 precise 14.04 trusty 14.10 utopic
SLES:
Version 12
To enable automatic updates of Linux packages set up the yum repository for the RHEL/CentOS distributions, the apt repository for the Debian/Ubuntu distributions, or the zypper repository for SLES.
Pre-Built Packages for Stable version
To set up the yum repository for RHEL/CentOS, choose the corresponding nginx-release
package from the list:
This package contains yum configuration file and a public PGP key necessary to authenticate signed RPMs. Download and install it, then run the following:
yum install nginx
Alternatively, a repository configuration can be added manually without installing the nginx-release
package. Create the file named /etc/yum.repos.d/nginx.repo
with the following contents:
[nginx] name=nginx repo baseurl=http://nginx.org/packages/OS/OSRELEASE/$basearch/ gpgcheck=0 enabled=1
Replace “OS
” with “rhel
” or “centos
”, depending on the distribution used, and “OSRELEASE
” with “5
”, “6
”, or “7
”, for 5.x, 6.x, or 7.x versions, respectively.
For Debian/Ubuntu, in order to authenticate the nginx repository signature and to eliminate warnings about missing PGP key during installation of the nginx package, it is necessary to add the key used to sign the nginx packages and repository to the apt
program keyring. Please downloadthis key from our web site, and add it to the apt
program keyring with the following command:
sudo apt-key add nginx_signing.key
For Debian replace codename with Debian distribution codename, and append the following to the end of the /etc/apt/sources.list
file:
deb http://nginx.org/packages/debian/ codename nginx deb-src http://nginx.org/packages/debian/ codename nginx
For Ubuntu replace codename with Ubuntu distribution codename, and append the following to the end of the /etc/apt/sources.list
file:
deb http://nginx.org/packages/ubuntu/ codename nginx deb-src http://nginx.org/packages/ubuntu/ codename nginx
For Debian/Ubuntu then run the following commands:
apt-get update apt-get install nginx
For SLES run the following command:
zypper addrepo -G -t yum -c 'http://nginx.org/packages/sles/12' nginx
Pre-Built Packages for Mainline version
To set up the yum repository for RHEL/CentOS, create the file named /etc/yum.repos.d/nginx.repo
with the following contents:
[nginx] name=nginx repo baseurl=http://nginx.org/packages/mainline/OS/OSRELEASE/$basearch/ gpgcheck=0 enabled=1
Replace “OS
” with “rhel
” or “centos
”, depending on the distribution used, and “OSRELEASE
” with “5
”, “6
”, or “7
”, for 5.x, 6.x, or 7.x versions, respectively.
For Debian/Ubuntu, in order to authenticate the nginx repository signature and to eliminate warnings about missing PGP key during installation of the nginx package, it is necessary to add the key used to sign the nginx packages and repository to the apt
program keyring. Please downloadthis key from our web site, and add it to the apt
program keyring with the following command:
sudo apt-key add nginx_signing.key
For Debian replace codename with Debian distribution codename, and append the following to the end of the /etc/apt/sources.list
file:
deb http://nginx.org/packages/mainline/debian/ codename nginx deb-src http://nginx.org/packages/mainline/debian/ codename nginx
For Ubuntu replace codename with Ubuntu distribution codename, and append the following to the end of the /etc/apt/sources.list
file:
deb http://nginx.org/packages/mainline/ubuntu/ codename nginx deb-src http://nginx.org/packages/mainline/ubuntu/ codename nginx
For Debian/Ubuntu then run the following commands:
apt-get update apt-get install nginx
For SLES run the following command:
zypper addrepo -G -t yum -c 'http://nginx.org/packages/mainline/sles/12' nginx
Signatures
Both RPM packages and Debian/Ubuntu repositories use digital signatures to verify the integrity and origin of the downloaded package. In order to check a signature it is necessary to downloadnginx signing key and import it to the rpm
or apt
program’s keyring:
- On Debian/Ubuntu:
sudo apt-key add nginx_signing.key
- On RHEL/CentOS:
sudo rpm --import nginx_signing.key
- On SLES:
sudo rpm --import nginx_signing.key
On Debian/Ubuntu/SLES signatures are checked by default, but on RHEL/CentOS it is necessary to set
gpgcheck=1
in the /etc/yum.repos.d/nginx.repo
file.
Since our PGP keys and packages are located on the same server, they are equally trusted. It is highly advised to additionally verify the authenticity of the downloaded PGP key. PGP has the “Web of Trust” concept, when a key is signed by someone else’s key, that in turn is signed by another key and so on. It often makes possible to build a chain from an arbitrary key to someone’s key who you know and trust personally, thus verify the authenticity of the first key in a chain. This concept is described in details in GPG Mini Howto. Our keys have enough signatures, and their authenticity is relatively easy to check.
相关推荐
Nginx是一款高性能的HTTP和反向代理服务器,广泛用于Web服务器领域,以其轻量级、高并发处理...这个压缩包文件`nginx_install_as_service.zip`很可能包含了完成这些步骤所需的所有文件和详细说明,供用户参考和实践。
2. 安装Nginx:`sudo apt-get install nginx` 安装完成后,可以通过`systemctl start nginx`启动Nginx服务,并使用`systemctl status nginx`检查其状态。为了使Nginx在系统启动时自动启动,执行`systemctl enable ...
标题 "nginxinstall.090715.tar.gz" 暗示了这是一个与Nginx服务器相关的安装包,发布日期可能是2009年7月15日。Nginx是一个高性能的Web服务器和反向代理服务器,以其高并发处理能力、低内存占用和稳定性而闻名。它...
nginx一键安装包install_nginx.sh
接着,我们需要创建一个YAML格式的Ansible playbook,这个文件通常命名为`nginx_install.yml`,用于描述安装Nginx的步骤。 ```yaml --- - name: 安装Nginx hosts: webservers # 这里的webservers应该替换为你的...
install_nginx(){ tar -zxf $RUN_PATH/package/nginx-aarch64-1.20.1.tar.gz -C /usr/local/ cat >/lib/systemd/system/nginx.service [Unit] Description=nginx After=network.target [Service] Type=forking ...
"install-nginx.tar.gz"这个压缩包文件包含了进行Nginx独立安装和部署所需的所有步骤和配置文件,旨在帮助用户快速解决依赖问题并启用自定义配置。 1. **系统需求与准备** 在开始安装前,确保你的操作系统是基于...
2. **解压安装包**:使用解压缩工具(如7-Zip或WinRAR)打开"nginx-install.zip",解压到一个合适的目录,例如 `/usr/local/nginx`。 3. **配置编译环境**:在大多数Linux系统中,安装Nginx可能需要一些依赖库,...
sudo yum install nginx ``` 在安装过程中,您需要确认两次(第一次是导入 EPEL 的 GPG 密钥),然后 Nginx 将被安装到您的虚拟私有服务器上。 启动 Nginx Nginx 并不会自动启动,我们需要使用以下命令来启动 ...
内容概要:该安装包为1.22.1版本的 nginx 源码包编译后的安装压缩包。 主要用途:可以用于在 Linux 上免安装地部署 Nginx。 使用步骤: 1.将压缩包放置到 /usr/local 目录下解压; 2.使用命令配置环境变量:export...
【标题】"nginx_install.zip" 是一个包含了nginx部署脚本和默认配置文件的压缩包,主要服务于对Linux服务器上的nginx服务进行安装和配置的操作。这个压缩包中的文件可以帮助用户快速搭建nginx服务器环境,无需手动...
标题“nginx-install.rar”指的是一个包含了Nginx服务器源码安装和特定模块集成的压缩文件。这个压缩包的目的是为了方便用户通过源码编译的方式在自己的系统上安装Nginx,并且添加了echo模块,这通常是为了进行更...
centos7.9yum装nginx1.20.1关于stream模块失效的报错,如unknown directive “stream” in /etc/nginx/nginx.conf(非编译安装)
nginx-autoinstall, 在Debian和Ubuntu上,使用定制模块从源代码编译 Nginx 自动安装通过optionnal模块编译和安装 Nginx 。 兼容性x86,x64,arm*Debian 8和更高版本Ubuntu 16.04和更高版本特性最新的主线或者稳定...
nginx安装文件: pcre zlib openssl nginx install.sh安装脚本 需要gcc编译环境 安装完后/usr/local/nginx,可以拖到其他linux服务器直接运行
然后,你可以运行`yum install nginx`或`dnf install nginx`,系统会从你创建的本地仓库中寻找并安装Nginx。同样,也需要安装openssl及其开发包,如`yum install openssl openssl-devel`或`dnf install openssl ...
sudo apt-get install nginx ``` 对于基于RPM的系统(如CentOS、Fedora): ```bash sudo yum install epel-release sudo yum install nginx ``` 或者使用DNF(在较新的RHEL/CentOS 8中): ```bash sudo dnf ...
- 安装Nginx:`sudo apt install nginx` 2. **在CentOS/RHEL上安装Nginx** - 更新包列表:`sudo yum check-update` - 安装Nginx:`sudo yum install epel-release` (如果尚未安装EPEL仓库) - 再次更新:`sudo ...
现在,我们可以下载Nginx的源代码包`nginx-1.20.1.tar.gz`。你可以通过wget或者浏览器将文件下载到本地,然后解压: ```bash wget http://nginx.org/download/nginx-1.20.1.tar.gz tar -zxvf nginx-1.20.1.tar.gz cd...
Nginx 1.22.0 Linux 版本,解压安装。 Nginx是一款轻量级的Web 服务器/反向代理服务器及电子邮件(IMAP/POP3)代理服务器,在BSD-like 协议下发行。其特点是占有内存少,并发能力强,事实上nginx的并发能力在同类型...