摘要: 查看CPU信息(型号)[root@server ~]# cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz # 查看物理CPU个数[root@server ~]# 阅读全文
posted @ 2018-04-27 16:02 robotor 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Ssh 安全配置 1、设置登录次数限制,及锁定时长 ssh 远程登录次数锁定配置 vim /etc/pam.d/sshd #%PAM-1.0 auth required pam_tally2.so deny=3 unlock_time=120 even_deny_root root_unlock_t 阅读全文
posted @ 2018-04-10 16:01 robotor 阅读(1333) 评论(0) 推荐(0) 编辑
摘要: harbor 私有仓库搭建 docker push 镜像报错 解决方法 vi /etc/docker/daemon.json { "insecure-registries":["myregistry.url"] } Restart docker daemon systemctl restart do 阅读全文
posted @ 2017-09-20 15:59 robotor 阅读(2322) 评论(0) 推荐(0) 编辑
摘要: svn up 更新最新版本后,需要回退到更新前的版本 svn up -r 需要回退的版本号: 如:回退到 2918 svn up -r 2918 阅读全文
posted @ 2017-08-02 17:10 robotor 阅读(1979) 评论(0) 推荐(0) 编辑
摘要: nginx location 配置 location ~* /admin/login { #set $my_ip ''; #if ( $http_x_forwarded_for !=client ip){set $my_ip 1;} #if ( $http_x_forwarded_for != cl 阅读全文
posted @ 2017-06-22 19:37 robotor 阅读(2623) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash#author zhzhao# chkconfig: - 85 15# description: Nginx is a World Wide Web server.# processname: nginx nginx=/mydata/nginx/nginx_web/sbin/n 阅读全文
posted @ 2017-01-17 11:21 robotor 阅读(225) 评论(0) 推荐(0) 编辑
摘要: python代码: pycurl.NAMELOOKUP_TIME 域名解析时间 pycurl.CONNECT_TIME 远程服务器连接时间 pycurl.PRETRANSFER_TIME 连接上后到开始传输时的时间 pycurl.STARTTRANSFER_TIME 接收到第一个字节的时间 pycu 阅读全文
posted @ 2016-11-10 17:14 robotor 阅读(2456) 评论(0) 推荐(0) 编辑
摘要: 菜单功能,执行显示#!/bin/bash#菜单选择功能,执行命令while true #无限循环doclearecho '-----------------------------'echo '1.Display Cpu INFO:'echo '2.Display system load:'echo... 阅读全文
posted @ 2016-01-22 18:09 robotor 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 菜单功能,执行显示#!/bin/bash#菜单选择功能,执行命令while true #无限循环doclearecho '-----------------------------'echo '1.Display Cpu INFO:'echo '2.Display system load:'echo... 阅读全文
posted @ 2016-01-22 18:08 robotor 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 转载之前的代理服务器Nginx配置是这样的server { listen 80; server_name *.*; location / { proxy_pass http://192.168.0.100:8001; ... 阅读全文
posted @ 2016-01-21 15:03 robotor 阅读(1766) 评论(0) 推荐(0) 编辑