Loading

摘要: PHP代码文件名 chat.php html代码chat.html 执行php chat.php 浏览器打开http://192.168.1.121/chat.html完成 阅读全文
posted @ 2018-03-28 09:44 王召波 阅读(387) 评论(0) 推荐(0) 编辑
摘要: MySQL版本5.5.58 第一步配置主机 主机配置如下: 第二步查看主服务器状态 在主服务器上的MySQL中 执行 show master status; 下面会用到 开始配置从服务器 第三步打开从服务器 在从服务器上的MySQL中 执行 第四步从服务器配置 第五步执行 从服务器执行start s 阅读全文
posted @ 2018-03-27 11:24 王召波 阅读(565) 评论(0) 推荐(0) 编辑
摘要: 不废话, 大多数都以为是ufw防火墙的问题. 但我的是因iptables防火墙, 坑死我了. 查了好多也没查到怎么在Ubuntu关闭iptables, 索性直接卸载 大功告成 阅读全文
posted @ 2018-03-27 00:24 王召波 阅读(740) 评论(0) 推荐(0) 编辑
摘要: 使用openssl加解密算法 阅读全文
posted @ 2018-03-26 09:41 王召波 阅读(1963) 评论(0) 推荐(0) 编辑
摘要: PHP执行时间太长导致的 我在程序的最上方写了set_time_limit(0);不管用 因为max_execution_time在 php-cgi(php-fpm) 中,该参数不会起效。 真正能够控制 PHP 脚本最大执行时间的是 php-fpm.conf 配置文件中的request_termin 阅读全文
posted @ 2018-03-23 14:01 王召波 阅读(557) 评论(0) 推荐(0) 编辑
摘要: 1、使用phpinfo();查看配置信息 2、搜索Additional .ini files parsed 3、查看opcache安装目录 4、打开文件将 opcache.enable=1 改成 opcache.enable=0 阅读全文
posted @ 2018-03-22 14:31 王召波 阅读(1178) 评论(0) 推荐(0) 编辑
摘要: worker_process 4; worker_priority 0; 进程的静态优先级,范围在-20~19,-20为最高优先级 worker_cpu_affinity 1000 0100 0010 0001; 配置每个worker进程使用哪个cpu,使得不会互相抢cpu worker_rlimit_nofile 100000; 更改worker进程的最大打开文件数限制 w... 阅读全文
posted @ 2018-03-22 13:27 王召波 阅读(179) 评论(0) 推荐(0) 编辑
摘要: //查看所有变量 show global variables //查看某个变量的值 show global variables where variable_name like '%innodb_flush_log_at_trx_commit%';//innodb_flush_log_at_trx_ 阅读全文
posted @ 2018-03-21 14:45 王召波 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 一. 安装ssh(参考:http://liuyifan789.iteye.com/blog/2068263) 二 .shh远程登录提示秘钥交换失败(参考:http://blog.csdn.net/z_johnny/article/details/54409868) ①打开ssh_config文件,把 阅读全文
posted @ 2018-03-21 13:41 王召波 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 下载地址: http://mirror.pnl.gov/releases/xenial/ Ubuntu 14.04.5 LTS (Trusty Tahr)http://releases.ubuntu.com/14.04/ 阅读全文
posted @ 2018-03-21 00:06 王召波 阅读(162) 评论(0) 推荐(0) 编辑