摘要: 转自 https://blog.csdn.net/zxcvn8866/article/details/77750558 复制文件或目录命令: 复制文件: (1)将本地文件拷贝到远程 scp 文件名用户名@计算机IP或者计算机名称:远程路径 本地192.168.1.8客户端 scp /root/ins 阅读全文
posted @ 2018-06-08 15:31 霂雨 阅读(9156) 评论(0) 推荐(0)
摘要: 转载: https://www.cnblogs.com/dragonsuc/p/5512797.html#top mpstat -P ALL 和 sar -P ALL 说明:sar -P ALL > aaa.txt 重定向输出内容到文件 aaa.txt 经常用来监控linux的系统状况,比如cpu、 阅读全文
posted @ 2018-06-06 11:31 霂雨 阅读(182) 评论(0) 推荐(0)
摘要: 1.安装 参考 https://www.cnblogs.com/hafiz/p/6891458.html?utm_source=itdadao&utm_medium=referral 2.新命令 find 文件查找find / -name nginx.conf 3.nginx 配置代理转发 (点击链 阅读全文
posted @ 2018-05-29 22:46 霂雨 阅读(165) 评论(0) 推荐(0)
摘要: 1按照官网步骤 https://redis.io/download 授权, 在客户端 reids 设置密码config set requirepass 123config get * 然后 按 ctr+c 退出./redis-cli -a 123 config get * 4.参数优化 https: 阅读全文
posted @ 2018-05-28 23:35 霂雨 阅读(162) 评论(0) 推荐(0)
摘要: 1. show global status 查看所有状态 (可省略) 2. SHOW VARIABLES LIKE 'max_connections' (查找最大连接数),然后修改 my.cnf 文件中 max_connections 的值 为1500 3.重启mysql sudo service 阅读全文
posted @ 2018-05-28 21:35 霂雨 阅读(115) 评论(0) 推荐(0)
摘要: import java.text.SimpleDateFormat;Calendar cal = Calendar.getInstance();cal.setTime(new Date());cal.add(Calendar.DATE, 1);SimpleDateFormat formatter = 阅读全文
posted @ 2018-05-23 09:35 霂雨 阅读(463) 评论(0) 推荐(0)
摘要: 参考 :https://yq.aliyun.com/articles/38757 1. 远程监控配置 # cd /root/apache-tomcat-8.0.17/bin # vi catalina.sh #找到Execute The Requested Command,在上面添加,添加的位置并没 阅读全文
posted @ 2018-05-22 23:45 霂雨 阅读(1044) 评论(0) 推荐(0)
摘要: 参考 https://www.linuxidc.com/Linux/2015-05/117473.htm 1.关闭firewall:systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止f 阅读全文
posted @ 2018-05-22 15:56 霂雨 阅读(181) 评论(0) 推荐(0)
摘要: 参考 https://blog.csdn.net/zdy1127/article/details/50659327 vi /etc/gdm/custom.conf 然后在[daemon]下面添加: 阅读全文
posted @ 2018-05-22 14:30 霂雨 阅读(946) 评论(0) 推荐(0)
摘要: 1.放在所有的sample 之前,则表示下面的所有sample都使用固定定时器。 如下 则 test3和test1 执行之前都会停留 固定定时器设置的时间 2. 放在单个 sample之下,则只针对单个sample。 如下 则test3在运行之前会停留定时器设置的时间, 而test1 则会在test 阅读全文
posted @ 2018-05-22 11:16 霂雨 阅读(370) 评论(0) 推荐(0)