`
61party
  • 浏览: 1136022 次
  • 性别: Icon_minigender_2
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

nginx 支持yum 和 apt-get install的安装方式了,Happy啊。

 
阅读更多

http://nginx.org/en/download.html



Source Repository

Pre-Built Packages

For automatic updates of the pre-built Linux packages it is possible to configure the yum repository for RHEL/CentOS, or the apt repository for Debian/Ubuntu.

To set up the yum repository for the RHEL/CentOS, pick up and install the correspondingnginx-releasepackage from the list below, containing the yum config and the public key necessary to check signed RPMs:

Then run the following command:

yum install nginx

As an alternative, a repository config can be added manually. Create the file named/etc/yum.repos.d/nginx.repowith 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” or “6”, for 5.x or 6.x versions, respectively.

For Debian 6 append the following contents to/etc/apt/sources.list:

deb http://nginx.org/packages/debian/ squeeze nginx
deb-src http://nginx.org/packages/debian/ squeeze nginx

Then run the following commands:

apt-get update
apt-get install nginx

For Ubuntu 10.04 append the following contents to/etc/apt/sources.list:

deb http://nginx.org/packages/ubuntu/ lucid nginx
deb-src http://nginx.org/packages/ubuntu/ lucid nginx

Then run the following commands:

apt-get update
apt-get install nginx


分享到:
评论

相关推荐

    Ubuntu下apt-get方式安装LNMP

    Ubuntu下apt-get方式安装LNMP LNMP(Linux、Nginx、MySQL、PHP)是一种常见的Web服务器架构,本文将指导读者使用apt-get方式在Ubuntu系统下安装LNMP环境。 一、安装Nginx LNMP环境的核心组件是Nginx,使用以下...

    apt-get命令 安装软件

    apt-get命令是Debian Linux发行版中的APT软件包管理工具。所有基于Debian的发行都使用这个包管理系统。deb包可以把一个应用的文件包在一起,大体就如同Windows上的...[root@linuxcool ~]# apt-get install nginx 卸载vs

    docker容器内执行apt-get update命令时很慢的解决办法

    docker容器内安装软件时很慢的解决办法,用网易加速和阿里云加速提升软件安装的速度,安装ps,vi,telnet,netstat等命令,亲测!

    nginx上传下载之nginx-upload-module-2.3.0

    将 Nginx Upload Module 的源代码复制到 Nginx 源代码目录,并配置、编译和安装: ```bash cp -r ../nginx-upload-module-2.3.0 nginx-1.21.x/ cd nginx-1.21.x/ ./configure --add-module=../nginx-upload-module...

    nginx-autoinstall, 在Debian和Ubuntu上,使用定制模块从源代码编译 Nginx.zip

    nginx-autoinstall, 在Debian和Ubuntu上,使用定制模块从源代码编译 Nginx 自动安装通过optionnal模块编译和安装 Nginx 。 兼容性x86,x64,arm*Debian 8和更高版本Ubuntu 16.04和更高版本特性最新的主线或者稳定...

    nginx-http-flv-module-1.2.10(包含nginx-rtmp-module)

    而nginx-rtmp-module则是一个额外的Nginx模块,它增加了对Real-Time Messaging Protocol (RTMP)的支持,使Nginx能够作为RTMP服务器接收并分发直播流。 1. **HTTP FLV 模块详解** HTTP FLV模块使得Nginx可以处理FLV...

    添加nginx-http-flv-module模块并重新编译后的nginx(windows版)

    6. 编译和安装:执行`make`和`make install`命令来编译和安装Nginx。对于Windows,你可能需要使用Visual Studio或其他Windows兼容的编译工具。 7. 测试和启动:编译完成后,你可以通过`./objs/nginx -t`测试配置...

    nginx带nginx-http-flv模块windows编译版rtmp

    Nginx-RTMP模块允许Nginx接收来自Flash Player或其他支持RTMP的客户端的音视频流,并进行推流、播放、录制等操作。通过这个模块,开发者可以构建自己的流媒体服务器,实现类似YouTube Live或Twitch的功能。 **Nginx...

    win环境使用nginx的nginx-http-flv-module.zip

    在windows 7 64位 环境下使用nginx的nginx-http-flv-module搭建flv视频流播放所有的安装包,参考:https://blog.csdn.net/qq_33071429/article/details/102628008

    nginx-sticky-module-1.25.zip

    nginx sticky是nginx的module,可以实现基于cookie的负载均衡。 下载后,在编译安装nginx时,用--add-module... ./configure --prefix=/usr/local/nginx-1.6.0 --add-module=../nginx-sticky-module-1.25 --without-...

    windows平台nginx编译nginx-http-flv-module

    6. **编译和安装**:执行`make`和`make install`来编译Nginx及模块,并将其安装到指定的目录。 7. **配置Nginx**:编辑`nginx.conf`配置文件,添加或修改相关段落以启用HTTP FLV Module。例如,添加`http`块中的`...

    nginx-1.19.3-http-flv.zip

    资源说明: 1. 采用nginx最新版编译,包含最新的nginx-http-flv-module,以及基础模块openssl、prce、zlib ...无需任何配置即可使用 ...1. 将压缩包解压到D:\nginx-1.19.3目录下 ...3. 使用nginxservice.exe install安装

    nginx-module-vts-0.1.18.tar.gz

    解压之后安装如下:mv nginx-module-vts-0.1.18 /usr/local/ yum -y install gcc gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel cd /usr/local/nginx/nginx-1.13.7 ./configure --add-module=/...

    nginx-1.19.3_nginx-http-flv-module.rar

    压缩包子文件的文件名"nginx-1.19.3_Compiled"表示包含了编译好的Nginx服务器,这通常包括配置文件、二进制可执行文件和其他必要的库文件。用户解压后,可以在自己的服务器上直接部署这个版本的Nginx,无需经历复杂...

    结合 Nginx 将 DoNetCore 部署到 阿里云的安装配置方法

    基础环境配置 域名和服务器请先自行购买 基于 云服务器ECS 创建一个应用实例,选择系统镜像为 Ubuntu 16.04,在本机通过 SSH ...sudo apt-get install nginx sudo service nginx start sudo gedit /etc/nginx/sites-a

    ubuntu 20.04 离线安装Nginx(nginx-full-1.18.0)及相关依赖

    在Ubuntu 20.04系统中离线安装Nginx是一个相对复杂的过程,因为通常我们依赖于apt-get在线更新和安装软件。然而,在没有网络连接或者需要在隔离环境中部署时,就需要通过手动方式来完成。这个过程涉及到下载Nginx的...

    nginx-http-flv-module(windows版)

    --> nginx-1.21.6 ======================== 在网上查找半天都只有教程,没有可免费下载的版本,深知没有积分遍地找资源的痛苦,无奈之下只好自己按照教程一步一个坑编译出来的,供大家免费下载使用。(无毒放心使用...

    nginx-upload-module-2.0.tar.gz

    接下来,运行`make`和`sudo make install`来编译并安装Nginx,此时,`nginx-upload-module`会被包含在内。 4. **配置Nginx配置文件**: 在Nginx的配置文件(通常是`nginx.conf`)中,你需要添加模块相关的配置...

    集成了nginx-http-flv-module 1.2.9模块的64位nginx-1.21.4程序

    使用`make`和`make install`命令进行编译和安装: ``` make make install ``` ### 配置与使用 集成完成后,需要在Nginx的配置文件中添加HTTP FLV模块的配置,例如: ```nginx http { ... server { listen ...

    nginx-rtmp-module-master.zip

    之后,运行 make 和 make install 来完成编译和安装。 4. 配置 Nginx:编辑 Nginx 的配置文件(通常为 /etc/nginx/nginx.conf),在 http、server 或 location 块中添加 RTMP 相关配置。例如: ```nginx rtmp { ...

Global site tag (gtag.js) - Google Analytics