Nginx服务器:[root@nginx ~]# vim /usr/local/nginx/conf/nginx.confupstream tomcat_pool { server 192.168.200.112:8080 weight=1 max_fails=1 fail_timeout=10s; ...
分类:
其他好文 时间:
2019-10-09 15:32:57
阅读次数:
83
nginx服务器配置:192.168.200.111[root@nginx ~]# hostname nginx[root@nginx ~]# bash[root@nginx ~]# vim /usr/local/nginx/conf/nginx.confupstream tomcat_pool { ...
分类:
系统相关 时间:
2019-10-09 15:24:19
阅读次数:
104
环境描述:(三台服务器 系统:7.6)192.168.200.111 nginx192.168.200.112 tomcat192.168.200.113 tomcat环境配置:192.168.200.111 192.168.200.112 192.168.200.113[root@nginx ~] ...
分类:
其他好文 时间:
2019-10-09 15:23:18
阅读次数:
85
先简单介绍一下chrony chrony是linux7开始使用的时间同步服务,系统内置。比ntp更加快捷,简单 含有服务端和客户端:服务名为 chronyd,客户端工具chronyc 配置文件 /etc/chron.conf # Use public servers from the pool.nt ...
分类:
其他好文 时间:
2019-10-09 15:17:00
阅读次数:
211
slim的使用 从以下细节可以看出先使用 要回用,剩下的看看以下代码就懂了 ...
分类:
其他好文 时间:
2019-10-06 11:15:34
阅读次数:
58
多线程下载 梨视频下载为例 要点: 1.获取所有视频的url,定义下载函数getdata 2.将下载数据保存到列表,定义数据保存函数savefunc 3.from multiprocessing.dummy import Pool ? pool = Pool(4) ? pool.get(getdat ...
分类:
编程语言 时间:
2019-10-05 22:54:45
阅读次数:
166
from multiprocessing.dummy import Pool #线程池模块 #必须只可以有一个参数 def my_requests(url): return requests.get(url=url,headers=headers).text start = time.time() ...
分类:
编程语言 时间:
2019-10-05 14:48:06
阅读次数:
99
切换至 cuda 8.0 sudo rm rf /usr/local/cuda sudo ln s /usr/local/cuda 8.0 /usr/local/cuda nvcc version which nvcc 切换至 cuda 10.0 sudo rm rf /usr/local/cuda ...
分类:
其他好文 时间:
2019-10-05 14:41:43
阅读次数:
343
Unix/linux类:ntp.aliyun.com,ntp1 7.aliyun.com windows类: time.pool.aliyun.com s1a.time.edu.cn 北京邮电大学 s1b.time.edu.cn 清华大学 s1c.time.edu.cn 北京大学 国家授时中心服务器 ...
分类:
系统相关 时间:
2019-10-04 09:43:57
阅读次数:
147
工作机制:ssh 无客户端 工作方式: 1,CMDB 2,公有云私有云API 3,使用ad hoc 4,ansible playbook ansible 执行命令,底层调用传输连接模块,将命令或文件传输至远程服务器的/tmp目录,远程执行,操作完后删除,返回结果。 配置文件 /etc/ansible ...
分类:
其他好文 时间:
2019-10-04 09:25:23
阅读次数:
120