您现在的位置是:首页 > 系统环境 > Linux Linux
Apache和Nginx的区别
2020-05-23【Linux】1046人已围观
简介### Nginx - 轻量级,采用 `C` 进行编写,同样的 `web` 服务,会占用更少的内存及资源 - 抗并发,`nginx` 以 `epoll and kqueue` 作为开发模型,处理请求是异步非阻塞的,负载能力比 `apache` 高很多,而 `apache` 则是阻塞型的。在高并发下 nginx 能保持低资源低消耗高性能 ,而 `apache` 在 `PHP` 处理慢或者前端压力很大的情况下,很容易出现进程数飙升,从而拒绝服务的现象。 - `nginx` 处理静态文件好,静态处理性
随机图文
PHP中判断字符串是否含有中文
## 判断全是中文 > 方法一 ``` $str = '吾爱编程'; if (preg_match_all("/^([\x81-\xfe][\x40-\xfe])+$/", $str, $match)) { echo '全部是中文'; } else { echo '不全是中文'; } ``` > 方法二 ``` $str="'吾爱it编程"; if(!eregi("[^\x80-\xff]","$str")){ echo "全是中文";PHP日历
PHP日历小案例dedecms Allowed memory size of /include/helpers/string.helper.php
dedecms Allowed memory size of /include/helpers/string.helper.phpBootstrap3 navbar导航条居中显示
 > 代码 ``` .navbar-nav {float: none;text-align:center;} ul.nav.navbar-nav li {float:none;display: inline-block;margin: 0em;} ```
文章评论
昵称:
邮箱:
内容: