上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 23 下一页
摘要: cat /home/ops/supervisor/etc/supervisord.conf [unix_http_server] file=/home/ops/supervisor/run/supervisor.sock ; the path to the socket file ;chmod=0700 ; socket file mode (defa... 阅读全文
posted @ 2018-09-07 08:32 明天OoO你好 阅读(314) 评论(0) 推荐(0)
摘要: [root@bd043 init.d]# cat elasticsearch #!/bin/sh # elasticsearch Startup script for the elasticsearch # # chkconfig: 2345 80 05 # description: The elasticsearch will store data # processname:... 阅读全文
posted @ 2018-09-07 08:31 明天OoO你好 阅读(274) 评论(0) 推荐(0)
摘要: 十三、并发编程 并发是一种解耦策略。它帮助我们把做什么(目的)和何时(时机)做分解开。从结构的角度来看,应用程序看起来更像是许多台协同工作的计算机,而不是一个大循环。系统因此会更易于被理解,也更有效率。 1.编写可调整的线程代码 要允许线程数量可调整。在系统运行时允许线程发生变动。允许线程依据吞吐量 阅读全文
posted @ 2018-09-06 21:59 明天OoO你好 阅读(235) 评论(0) 推荐(0)
摘要: 1. 在低版本系统机器上,编译python: cd Python-2.7.15/Modules vim Setup.dist 修改下述代码: ########### sed -i 's/#SSL=\/usr\/local\/ssl/SSL=\/usr\/local\/ansible_python\/ 阅读全文
posted @ 2018-08-07 16:26 明天OoO你好 阅读(876) 评论(0) 推荐(0)
摘要: hosts文件配置参数介绍 1, ansible_ssh_host : 指定主机别名对应的真实 IP,如:100 ansible_ssh_host=192.168.1.100,随后连接该主机无须指定完整 IP,只需指定 251 就行 2, ansible_ssh_port : 指定连接到这个主机的 ssh 端口,默认 22 3, ansible_ssh_user: 连接到该主机的 ssh 用户 ... 阅读全文
posted @ 2018-08-07 12:50 明天OoO你好 阅读(5086) 评论(0) 推荐(0)
摘要: 1.不使用密钥,不配置 2.使用用户名密码配置 3.构建完成后,将文件发送到指定服务器 要拷贝的文件是/var/lib/jenkins/web1/src/*.js 阅读全文
posted @ 2018-08-05 11:05 明天OoO你好 阅读(10890) 评论(0) 推荐(0)
摘要: [root@localhost system]# cat /etc/init.d/jenkins #!/bin/sh # # SUSE system statup script for Jenkins # Copyright (C) 2007 Pascal Bleser # # This library is free software; you can redist... 阅读全文
posted @ 2018-08-04 09:54 明天OoO你好 阅读(1671) 评论(0) 推荐(0)
摘要: # 进入虚拟环境,使用 # # $ conda activate spider-venv # # 退出虚拟环境,使用 # # $ conda deactivate 阅读全文
posted @ 2018-07-30 21:38 明天OoO你好 阅读(36512) 评论(0) 推荐(3)
摘要: 我的ansible roles项目的目录结构: 以下内容来自于: ansible安装配置及最佳实践roles 配置ssh密钥认证 1 2 ssh-keygen -t rsa ssh-copy-id -i ~/.ssh/id_rsa.pub root@172.16.1.10 1 2 ssh-keyge 阅读全文
posted @ 2018-07-30 17:56 明天OoO你好 阅读(11170) 评论(0) 推荐(0)
摘要: 1.处理zone文件 A.先格式化区文件数据,去掉不需要的数据,生成新的文件 com.zone.sample cat com.zone |grep P IN'\t'NS|awk F '\t' '{print $1","$4}' com.zone.sample 格式如下: B.获取到所有的ns数据,并 阅读全文
posted @ 2018-07-22 23:30 明天OoO你好 阅读(5188) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 23 下一页