URL:nginx: Linux packages
To set up the yum repository for RHEL/CentOS, create the file named /etc/yum.repos.d/nginx.repo
with the following contents:
Replace “[nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/7/$basearch/ gpgcheck=0 enabled=1
OS
” with “rhel
” or “centos
”, depending on the distribution used, and “OSRELEASE
” with “6
” or “7
”, for 6.x or 7.x versions, respectively.执行如下命令进行yum安装nginx
【linux|linux下yum安装最新稳定版nginx】查看nginx版本yum install nginx
# 查看nginx版本 nginx -v# 查看编译参数 nginx -V
查看安装目录查看配置文件
rpm -ql nginx
# 用于日志切割 /etc/logrotate.d/nginx
推荐阅读
- nginx反向代理服务器—前端部署
- 前端|nginx处理前端跨域问题 -详解 windows 和 mac 下的配置
- eclispe|Windows环境Nginx 详细安装以及部署前后端项目教程
- 软件使用|【git】gitee的上传文件与报错
- Data|QUEUE——队列(procedure)
- 后台|nginx网关与gateway网关的区别
- #|i.MX6ULL终结者Linux 电容触摸屏实验使用Linux内核自带的ft5426驱动
- i.MX6ULL终结者|i.MX6ULL终结者Linux 电容触摸屏实验运行测试
- i.MX6ULL终结者|i.MX6ULL终结者Linux 电容触摸屏实验Tslib移植和使用