摘要: 一、主的配置 基础配置 # vi /etc/my.cnf # /etc/init.d/mysqld restart 重启MySQL服务 查看# ll /data/mysql/ # vim /etc/profile export PATH=$PATH:/usr/local/mysql/bin 在后面加 阅读全文
posted @ 2021-03-11 19:17 清空。 阅读(224) 评论(0) 推荐(0)
摘要: 一、更改root密码 1.更改环境变量 修改/etc/profile文件,文件尾添加mysql的绝对路径,修改环境变量 # vim /etc/profile(在文档末尾添加下行内容) export PATH=$PATH:/usr/local/mysql/bin source /etc/profile 阅读全文
posted @ 2021-03-11 14:20 清空。 阅读(134) 评论(0) 推荐(0)
摘要: 通过慢执行日志,我们可以清晰地了解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 清空。 阅读(63) 评论(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 清空。 阅读(103) 评论(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 清空。 阅读(148) 评论(0) 推荐(0)