上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 31 下一页
摘要: 通过 config get 命令可以查看参数。 通过config set 可以修改某些参数 动态关闭redis的aof功能:(不要忘了也修改配置文件中的aof选项使其保持一致) 127.0.0.1:6378> CONFIG set appendonly noOK127.0.0.1:6378> CON 阅读全文
posted @ 2017-02-12 21:18 xuanhui 阅读(1734) 评论(0) 推荐(0) 编辑
摘要: 编译源码包报错: 说aclocal这个命令找不到 解决: 使用 yum install -y automake问题解决 阅读全文
posted @ 2017-02-12 21:14 xuanhui 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 执行:gw@ubuntu:/$ /etc/init.d/networking restart 报错:stop: Rejected send message, 1 matched rules; type="method_call", sender=":1.7" (uid=1000 pid=1201 c 阅读全文
posted @ 2017-02-12 21:11 xuanhui 阅读(1296) 评论(0) 推荐(0) 编辑
摘要: 2017.2.3 终究还是要出去闯荡!! 年轻人,世界很大你很渺小,时间很长,也很短。 静下心来去沉淀吧!! 这是一个魂牵梦绕的地方!! 我思念的人儿 ,多年不见甚是想念,何时能见!! 人生啊,究竟什么是重要的东西呢!! 太多,太杂。 ......... 人们多说年轻总是充满了迷茫,和困惑。。 只是 阅读全文
posted @ 2017-02-03 09:58 xuanhui 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1、安装git bush (windows没什么好说的 下一步,下一步,,) 2、 通过gitbush命令行生成密钥: (拷贝密钥) 3、密钥添加到github上面: 4、克隆项目: 5、提交: 查看效果: 阅读全文
posted @ 2017-01-14 17:24 xuanhui 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 制造模块: 方法一: 1、mkdir /xxcd /xx 2、文件包含: 模块名.py setup.py setup.py内容如下:#!/usr/bin/env pythonfrom distutils.core import setup setup( name = "nester", versio 阅读全文
posted @ 2017-01-14 11:19 xuanhui 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 最近写python遇到个函数内部变量使用外部变量的问题,现在总结下吧 #!/usr/bin/env python a = 100def su(): a = a + 1 print(a) s = su() #执行这段代码会报错(如果只是调用不修改是不会报错的) 更改为: #!/usr/bin/env 阅读全文
posted @ 2017-01-14 11:17 xuanhui 阅读(838) 评论(0) 推荐(0) 编辑
摘要: 先来一段代码: #这段代码可牛逼了,1、可以根据indent的选项调整模式。2、根据level调整级别。 #代码很low,主要看思想。。哈哈哈。。看看从最初的样子到最好经历了什么。。 开始: #!/usr/bin/env pythondef print_lol(the_list): for each 阅读全文
posted @ 2017-01-14 11:05 xuanhui 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 输出时间: [root@CentOS7 ~]# date Sun Jan 8 23:17:03 CST 2017 格式化输出:[root@CentOS7 ~]# date +%Y-%m-%d-%H:%M:%S2017-01-08-23:17:07 设置时间: [root@CentOS7 ~]# da 阅读全文
posted @ 2017-01-08 23:23 xuanhui 阅读(131) 评论(0) 推荐(0) 编辑
摘要: ubuntu禁用ipv6cat /proc/sys/net/ipv6/conf/all/disable_ipv6 显示0说明ipv6开启,1说明关闭 在 /etc/sysctl.conf 增加下面几行,并重启。#disable IPv6net.ipv6.conf.all.disable_ipv6 = 阅读全文
posted @ 2017-01-08 22:34 xuanhui 阅读(243) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 31 下一页