会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
划得戳
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
13
14
15
16
17
18
19
20
21
···
27
下一页
2018年4月24日
linux-shell系列8 netstat用法
摘要: 1 查看TCP连接状态 netstat -n|awk '{print $6}'|sort|uniq -c|sort -rn netstat -n|awk '/^tcp/ {++S[$NF]};END{for(a in S)print a,S[a]}' netstat -n|awk '/^tcp/ {
阅读全文
posted @ 2018-04-24 14:02 划得戳
阅读(439)
评论(0)
推荐(0)
2018年4月20日
python+django+uwsgi 搭建环境
摘要: 第一步: 搭建python环境 最好使用 pyenv可以很好的管理多版本下的python环境 第二步:搭建django环境 使用 pip install django==1.12.1 来安装 安装好以后可以使用创建一个实验项目来实现django是否搭建成功 django.admin.py start
阅读全文
posted @ 2018-04-20 14:47 划得戳
阅读(1266)
评论(0)
推荐(0)
2018年4月19日
python系列-3 pyenv的使用
摘要: 安装: git clone https://github.com/yyuu/pyenv.git ~/.pyenv echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile echo 'export PATH="$PYENV_ROOT/bin
阅读全文
posted @ 2018-04-19 15:16 划得戳
阅读(179)
评论(0)
推荐(0)
2018年4月9日
linux ssh和scp消除每次问yes/no
摘要: ssh 10.11.3.61The authenticity of host '10.11.3.61 (10.11.3.61)' can't be established.RSA key fingerprint is 5a:8e:00:2f:a3:e4:cf:d1:f9:29:b8:24:e7:36
阅读全文
posted @ 2018-04-09 23:56 划得戳
阅读(1104)
评论(0)
推荐(0)
2018年4月8日
linux sed的一些技巧
摘要: sed -i '$a # This is a test' regular_express.txt 由於 $ 代表的是最后一行,而 a 的动作是新增,因此该文件最后新增『# This is a test』!
阅读全文
posted @ 2018-04-08 12:27 划得戳
阅读(153)
评论(0)
推荐(0)
2018年4月7日
ansible系列8-SSH连接和执行性能优化
摘要: 1. 当你的SSH的版本高于5.6时 我们可以直接修改 /etc/ansible/ansible.cfg里面的参数 ssh_args = -C -o ControlMaster=auto -o ControlPersist=5d ControlPersist=5d这个参数是设置整个长连接保持时间设置
阅读全文
posted @ 2018-04-07 14:44 划得戳
阅读(4024)
评论(0)
推荐(0)
2018年4月6日
ansible系列7-mysql_user模块
摘要: 添加mysql的用户和权限、密码 新增mysql用户zhang,设置登录密码zhang,给予权限zabbix.*:ALL ansible dba -m mysql_user -a 'login_host=localhost login_password=123456 login_user=root
阅读全文
posted @ 2018-04-06 19:05 划得戳
阅读(2559)
评论(0)
推荐(0)
ansible系列6-用户管理
摘要: 第一种:新增用户 ansible host -m user -a "name=zhang shell=/bin/bash groups=admin,root append=yes home=/home/zhang state=present" name:新增用户名字 shell:用户的shell g
阅读全文
posted @ 2018-04-06 17:57 划得戳
阅读(1018)
评论(0)
推荐(0)
2018年3月30日
ansible系列5-开启加速 Ansible 执行速度的功能
摘要: SSH pipelining 是一个加速 Ansible 执行速度的简单方法。ssh pipelining 默认是关闭,之所以默认关闭是为了兼容不同的 sudo 配置,主要是 requiretty 选项。如果不使用 sudo,建议开启。打开此选项可以减少 ansible 执行没有传输时 ssh 在被
阅读全文
posted @ 2018-03-30 14:17 划得戳
阅读(733)
评论(0)
推荐(0)
2018年3月29日
ansible系列4-关闭ssh首次连接时提示
摘要: 在ansible配置文件中找到 /etc/ansible/ansible.cfg 方法1 在配置文件中找到 了解到问题原因为,我们了解到进行ssh连接时,可以使用-o参数将StrictHostKeyChecking设置为no,使用ssh连接时避免首次连接时让输入yes/no部分的提示。通过查看ans
阅读全文
posted @ 2018-03-29 15:02 划得戳
阅读(3697)
评论(0)
推荐(2)
上一页
1
···
13
14
15
16
17
18
19
20
21
···
27
下一页
公告