会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
若丶相依
博客园
首页
新随笔
联系
订阅
管理
2017年5月28日
linux 命令行使用socket代理
摘要: 在ubuntu使用 安装shadowsockssudo apt-get install python-pipsudo pip install shadowsocks然后创建配置文件sudo gedit /etc/shadowsocks.json加入下面的配置内容,并补全配置信息{ "server":
阅读全文
posted @ 2017-05-28 23:07 若丶相依
阅读(12171)
评论(0)
推荐(0)
2017年5月10日
centos6.5安装git
摘要: yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker wget https://www.kernel.org/pub/software/scm/git
阅读全文
posted @ 2017-05-10 12:26 若丶相依
阅读(348)
评论(0)
推荐(0)
2017年5月8日
redis+keepalived高可用方案
摘要: redis+keepalived高可用方案 目的:实现redis的高可用 原理:redis主从复制+keepalived 一:环境介绍 Master:192.168.10.52 Slave :192.168.10.53 VIP :192.168.10.100 redis端口: 6378 二:设计思路
阅读全文
posted @ 2017-05-08 17:44 若丶相依
阅读(550)
评论(0)
推荐(0)
redis数据迁移
摘要: 一:AOF方式 需求: 一个没有数据的redis。 清空redis数据方法 bash> echo "keys *" | redis-cli --raw -p 6378 |sed -r 's/(.*)/redis-cli --raw -p 6378 del \1 /g' |bash 1.备份 bash
阅读全文
posted @ 2017-05-08 17:42 若丶相依
阅读(10146)
评论(0)
推荐(1)
2016年8月25日
Tomcat绑定IPV4端口
摘要: 使用下面的方法可以绑定到IPV4, 在<tomcat>/bin目录下新建setenv.sh,如果没有话,然后添加如下内容: JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=tru
阅读全文
posted @ 2016-08-25 13:12 若丶相依
阅读(2336)
评论(0)
推荐(0)
2016年8月9日
python 装饰器
摘要: #!/usr/bin/env python3 #-*-encoding:utf-8-*- def w3(*args, **kwargs): print('233') def w1(): def ww1(func): def w3(*args, **kwargs): print('233') return func...
阅读全文
posted @ 2016-08-09 22:37 若丶相依
阅读(134)
评论(0)
推荐(0)
python 旋转数组
摘要: #!/usr/bin/env python3 #-*-encoding:utf-8-*- l = [] u = [] q = 5 xx=[[col for col in range(q)] for r in range(q)] [print(i) for i in xx] for i in range(len(xx)): for v in xx: # print(v[i...
阅读全文
posted @ 2016-08-09 22:36 若丶相依
阅读(325)
评论(0)
推荐(0)
2016年7月17日
expect
摘要: #!/usr/bin/expect -fset ipaddr "192.168.5.4"set passwd "123qwe"set timeout 30 spawn ssh root@$ipaddrexpect {"yes/no" { send "yes\r"; exp_continue }"pa
阅读全文
posted @ 2016-07-17 10:08 若丶相依
阅读(175)
评论(0)
推荐(0)
2016年6月14日
python3安装
摘要: yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel -yyum groupinstall "Development tools" -yyum insta
阅读全文
posted @ 2016-06-14 14:29 若丶相依
阅读(204)
评论(0)
推荐(0)
2016年6月9日
ssh设置
摘要: 方法一:在/etc/hosts.allow中添加允许ssh登陆的ip或者网段 sshd:192.168.1.2:allowsshd:192.168.1.0/24:allow在/etc/hosts.deny添加不允许ssh登陆的IPsshd:ALL #ALL表示除了上面允许的,其他的ip 都拒绝登陆s
阅读全文
posted @ 2016-06-09 23:25 若丶相依
阅读(291)
评论(0)
推荐(0)
下一页
公告