上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: 全选(高亮显示):按esc后,然后ggvG或者ggVG 全部复制:按esc后,然后ggyG 全部删除:按esc后,然后dG 解析: gg:是让光标移到首行,在vim才有效,vi中无效 v : 是进入Visual(可视)模式 G :光标移到最后一行 选中内容以后就可以其他的操作了,比如: d 删除选中 阅读全文
posted @ 2022-07-03 17:01 快乐的在一起 阅读(9186) 评论(0) 推荐(0) 编辑
摘要: Debian 配置修改 Debian源的使用需要以root权限修改/etc/apt/sources.list配置文件,修改之前,请做好备份 debian7.x(wheezy) deb http://mirrors.cloud.tencent.com/debian wheezy main contri 阅读全文
posted @ 2022-07-03 16:57 快乐的在一起 阅读(362) 评论(0) 推荐(0) 编辑
摘要: #定义负载均衡设备的 Ip及设备状态 在需要使用负载的Server节点下添加 proxy_pass http://myServer; upstream 每个设备的状态: down 表示单前的server暂时不参与负载weight 默认为1.weight越大,负载的权重就越大。max_fails :允 阅读全文
posted @ 2022-07-03 14:43 快乐的在一起 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 1.新建service.php #通过swoole_set_process_name函数添加进程名称 <?php //创建Server对象,监听 127.0.0.1:9501 端口 $server = new Swoole\Server('127.0.0.1', 9502); /** * @para 阅读全文
posted @ 2022-07-03 11:56 快乐的在一起 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 1.ws.php <?php /** * Created by bingxiong. * Date: 5/19/18 * Time: 7:43 PM * Description: */ class Ws{ CONST HOST="0.0.0.0"; CONST PORT=8811; // publi 阅读全文
posted @ 2022-07-02 23:32 快乐的在一起 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1.新建文件serivce.php <?php /** * Created by bingxiong. * Date: 5/25/18 * Time: 5:40 PM * Description: 监控服务 */ class Server{ const PORT = 9000; public fun 阅读全文
posted @ 2022-07-02 22:28 快乐的在一起 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 案例一: 备注:用时一秒同时执行多个CURL获取内容 <?php use Swoole\Process; echo 'Start Time:'.date("Y-m-d H:i:s",time()); $workers = []; $urls = [ 'https://www.baidu.com', 阅读全文
posted @ 2022-06-30 15:42 快乐的在一起 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 1、php-fpm 错误日志 一般情况下,php错误日志的配置都在php.ini文件中 /usr/local/php/etc/php.ini error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT display_errors = Off log_er 阅读全文
posted @ 2022-06-30 13:58 快乐的在一起 阅读(2147) 评论(0) 推荐(0) 编辑
摘要: 一、什么是索引? 索引是对数据库表中的一列或多列值进行排序的一种结构,使用索引可以快速访问数据库表中的特定信息。 二、索引的作用? 索引相当于图书上的目录,可以根据目录上的页码快速找到所需的内容,提高性能(查询速度) 三、优点: 通过创建唯一性索引,可以保证数据库表中的每一行数据的唯一性。 可以加快 阅读全文
posted @ 2022-06-30 12:40 快乐的在一起 阅读(1463) 评论(0) 推荐(0) 编辑
摘要: https://baijiahao.baidu.com/s?id=1711139656361233985&wfr=spider&for=pc 阅读全文
posted @ 2022-06-30 12:15 快乐的在一起 阅读(14) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页