摘要: # 在`nginx.conf`中添加如下配置 log_format json escape=json '{"@timestamp":"$time_iso8601",' '"server_addr":"$server_addr",' '"remote_addr":"$remote_addr",' '" 阅读全文
posted @ 2023-04-24 15:43 weiniWang 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 文档地址 xdebug 相关配置 [xdebug] zend_extension=xdebug.so ; mode : off, develop, coverage, debug, gcstats, profile, trace ; xdebug.mode = debug,develop,trace 阅读全文
posted @ 2023-04-24 15:41 weiniWang 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 安装 sudo apt update sudo apt install git 配置 git config --global user.name "名称" git congig --global user.email "邮箱" 生成ssh key 配置ssh key,方能纵享丝滑 ssh-keyge 阅读全文
posted @ 2023-04-24 15:21 weiniWang 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 解决步骤: 找到mongodb的配置文件,做如下调整 replication: oplogSizeMB: <int> replSetName: <string> enableMajorityReadConcern: <boolean> 重启MongoDB的服务后,进入mongo执行 rs.initi 阅读全文
posted @ 2021-12-15 09:41 weiniWang 阅读(293) 评论(0) 推荐(0) 编辑
摘要: SELECT table_name, data_length + index_length AS len, table_rows, CONCAT(ROUND((data_length + index_length)/1024/1024,2),'MB') AS datas FROM informati 阅读全文
posted @ 2021-04-25 16:57 weiniWang 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 四种模式 normal模式 编辑模式 命令模式 visual模式 Linux命令行快捷键 CTRL + U - 剪切光标前的内容 CTRL + K - 剪切光标至行末的内容 CTRL + Y - 粘贴 CTRL + E - 移动光标到行末 CTRL + A - 移动光标到行首 CRTL + F - 阅读全文
posted @ 2021-04-21 23:34 weiniWang 阅读(39) 评论(0) 推荐(0) 编辑
摘要: ./configure \ --prefix=/usr/local/php/8.0.0 \ --with-config-file-path=/usr/local/php/8.0.0/etc \ --with-curl \ --with-freetype \ --enable-gd \ --with- 阅读全文
posted @ 2021-04-02 15:57 weiniWang 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 你不看日志,你怎么知道容器为什么离你而去了(exit)? 常见用法 显示所有log #显示某个容器的所有log docker logs [OPTIONS] <CONTAINER> #显示启动的所有容器的log docker-compose logs 显示实时log(此效果和Linux的tail -f 阅读全文
posted @ 2021-01-11 17:40 weiniWang 阅读(261) 评论(0) 推荐(1) 编辑
摘要: 1 Redis是什么? Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data str 阅读全文
posted @ 2020-08-31 22:50 weiniWang 阅读(295) 评论(0) 推荐(0) 编辑
摘要: random——你随意,我都行 基本玩法 >>> import random # 生成一个0到1的随机符点数: 0 <= n < 1.0 >>> random.random() 0.9062403116464318 # random.uniform(a, b),用于生成一个指定范围内的随机符点数,两 阅读全文
posted @ 2020-08-29 16:53 weiniWang 阅读(127) 评论(0) 推荐(0) 编辑