摘要:
通过慢执行日志,我们可以清晰地了解PHP脚本在哪里执行时间长,可以定位到行 下面介绍如何开启和查看慢执行日志 #vim /usr/local/php-fpm/etc/php-fpm.d/www.conf 写入: request_slowlog_timeout = 1 slowlog = /usr/l 阅读全文
posted @ 2021-03-10 17:06
清空。
阅读(278)
评论(0)
推荐(1)
摘要:
php-fpm 的配置文件都放在/usr/local/php-fpm/etc/php-fpm php-fpm.conf内 php-fpm的pool php-fpm pool是 php-fpm 的进程池,这个进程池中运行了多个子进程,用来并发处理所有连接的动态请求。为什..么要配置多个 pool ?N 阅读全文
posted @ 2021-03-10 16:55
清空。
阅读(94)
评论(0)
推荐(0)
摘要:
一、配置 #vi /usr/local/nginx/conf/vhost/test.com.conf 写入: server { listen 80; server_name test.com test1.com test2.com; index index.html index.htm index. 阅读全文
posted @ 2021-03-10 16:20
清空。
阅读(81)
评论(0)
推荐(0)
摘要:
#vi /usr/local/nginx/conf/vhost/test.com.conf 写入: server { listen 80; server_name test.com test1.com test2.com; index index.html index.htm index.php; 阅读全文
posted @ 2021-03-10 16:01
清空。
阅读(71)
评论(0)
推荐(0)
摘要:
一、配置 #vi /usr/local/nginx/conf/vhost/test.com.conf 写入: server { listen 80; server_name test.com test1.com test2.com; index index.html index.htm index. 阅读全文
posted @ 2021-03-10 11:31
清空。
阅读(64)
评论(0)
推荐(0)
摘要:
一、配置 #vi /usr/local/nginx/conf/vhost/test.com.conf 写入; server { listen 80; server_name test.com test1.com test2.com; index index.html index.htm index. 阅读全文
posted @ 2021-03-10 11:24
清空。
阅读(104)
评论(0)
推荐(0)
摘要:
一、配置 先来看看Nginx的日志格式 #grep -A2 log_format /usr/local/nginx/conf/nginx.conf log_format combined_realip '$remote_addr $http_x_forwarded_for [$time_local] 阅读全文
posted @ 2021-03-10 11:15
清空。
阅读(191)
评论(0)
推荐(0)
摘要:
一、配置 #vi /usr/local/nginx/conf/vhost/test.com.conf 写入: server { listen 80; server_name test.com test1.com test2.com; //是server_name后面可以跟多个域名 index ind 阅读全文
posted @ 2021-03-10 11:06
清空。
阅读(149)
评论(0)
推荐(0)
摘要:
一、配置 再来创建一个新的虚拟主机 #cd /usr/local/nginx/conf/vhost #vi test.com.conf 写入: server { listen 80; server_name test.com; index index.html index.htm index.php 阅读全文
posted @ 2021-03-10 10:53
清空。
阅读(65)
评论(0)
推荐(0)
摘要:
一、配置 首先修改配置文件 #vi /usr/local/nginx/conf/nginx.conf 在最后一个结束符号}前加一行配置: include vhost/*.conf; 意思就是/usr/local/nginx/conf/host下面的所有以.conf结尾的文件都会被加载 #mkdir 阅读全文
posted @ 2021-03-10 10:13
清空。
阅读(143)
评论(0)
推荐(0)
摘要:
一、下载 #cd /usr/local/src/ #wget http://nginx.org/download/nginx-1.16.1.tar.gz 二、解压 # tar zxf nginx-1.16.1.tar.gz 三、配置安装 #cd nginx-1.16.1/ #./configure 阅读全文
posted @ 2021-03-10 10:09
清空。
阅读(82)
评论(0)
推荐(0)
摘要:
一、下载 #cd /usr/local/src //软件包都放在这里方便管理 #wget http://cn2.php.net/distributions/php-5.6.30.tar.gz 二、解压 #tar zxf php-5.6.30.tar.gz 三、安装与配置 # yum install 阅读全文
posted @ 2021-03-10 10:04
清空。
阅读(68)
评论(0)
推荐(0)

浙公网安备 33010602011771号