解决centos yum安装”No package nginx available.”问题

问题描述:

[root@Centos ~]# yum install nginx
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* addons: mirror.bit.edu.cn
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirror.bit.edu.cn
Setting up Install Process
No package nginx available.
Nothing to do

Nginx伪静态配置和常用Rewrite伪静态规则集锦

伪静态是一种可以把文件后缀改成任何可能的一种方法,如果我想把php文件伪静态成html文件,这种相当简单的,下面我来介绍nginx 伪静态配置方法有需要了解的朋友可参考。

nginx里使用伪静态是直接在nginx.conf 中写规则的,并不需要像apache要开启写模块(mod_rewrite)才能进行伪静态。

nginx只需要打开nginx.conf配置文件,在server里面写需要的规则即可。

Apache查看连接数和限制当前的连接数

在wamp环境下查看apche连接数和限制当前的连接数

httpd_mpm.conf文件在你apache安装上当的\\conf\\extra中,还在就是在要apache httpd.conf中把#Include conf/extra/httpd-mpm.conf前面的#号去了哦。

Apache在配置编译时可以自主的选择想要使用的MPM模块,使用./configure –with-mpm=MPM命令。我们主要了解prefork和worker这两种MPM模块。

1121314151621
 
Copyright © 2008-2021 lanxinbase.com Rights Reserved. | 粤ICP备14086738号-3 |