摘要: 去掉mysql: [Warning] Using a password on the command line interface can be insecure. 5.7版本使用mysql执行sql命令都会有这行,去掉方法重定向 echo "select version()"|mysql -S / 阅读全文
posted @ 2021-04-12 16:44 paul_hch 阅读(446) 评论(0) 推荐(0) 编辑
摘要: Linux服务器时区更换 cp -a /etc/localtime /etc/localtime.bak cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 参考 Linux服务器修改时区时间 - mvpbang - 博客园https://www. 阅读全文
posted @ 2021-04-12 11:43 paul_hch 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 一、磁盘IO 实时IO性能查看: 1、用top命令查看 0.0% wa 等待输入输出的CPU时间百分比0.0% wa 的百分比可以大致的体现出当前的磁盘io请求是否频繁。如果 wa的数量比较大,说明等待输入输出的的io比较多 2、sar 命令 sar -d -p 1 2 其中, “-d”参数代表查看 阅读全文
posted @ 2021-04-12 11:06 paul_hch 阅读(1129) 评论(0) 推荐(0) 编辑