上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: systemctl enable docker # 开机自动启动docker systemctl start docker # 启动docker systemctl restart docker # 重启dokcer 阅读全文
posted @ 2018-05-15 15:53 北里闻箫 阅读(449) 评论(0) 推荐(0)
摘要: 不知道到从什么时候开始,国内的archlinux源出了问题。什么都更新不了。终于到找到了www.archlinux.org这个网站。找到了这里:https://wiki.archlinux.org/index.php/Mirrors_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%9 阅读全文
posted @ 2018-05-15 15:20 北里闻箫 阅读(2575) 评论(0) 推荐(0)
摘要: cd /etc/netctl/ vim enp0s8 Description='enp0s25' Interface=enp0s25 Connection=ethernet IP=static Address=('192.168.123.6/24') #Routes=('192.168.123.0/ 阅读全文
posted @ 2018-05-14 21:02 北里闻箫 阅读(1423) 评论(0) 推荐(0)
摘要: 因为运行环境需要升级到php7。 需要将mysql改为mysqli,以及替换一部分preg_replace函数。其中替换preg_replace最麻烦。 以下是一些例子。1、ThinkPHP/Lib/Core/Dispatcher.class.php:132 // 解析剩余的URL参数 // pre 阅读全文
posted @ 2018-04-13 12:43 北里闻箫 阅读(694) 评论(0) 推荐(0)
摘要: update your_table set img=replace(img,'.jpg','.png'); 阅读全文
posted @ 2018-03-27 18:52 北里闻箫 阅读(123) 评论(0) 推荐(0)
摘要: 高并发下,服务器表现为响应缓慢。开始怀疑是转发阻塞了。后来知道,Gateway::sendToUid与Gateway::sendToGroup都是非阻塞的。 后来发现是IO阻塞。多次调用了同一个include()文件。是业务代码的问题。 阅读全文
posted @ 2018-03-12 16:47 北里闻箫 阅读(156) 评论(0) 推荐(0)
摘要: 查看日志 进入容器 进入redis容器 查看某个属性(这里是查看tensorflow的启动日志,方便查找登录密码) 阅读全文
posted @ 2018-02-09 17:12 北里闻箫 阅读(99) 评论(0) 推荐(0)
摘要: 调用gateway,同一项目中,可以调用多个不同的gateway 阅读全文
posted @ 2018-01-24 12:40 北里闻箫 阅读(246) 评论(0) 推荐(0)
摘要: 一条SQL语句统计不同表的不同数据 阅读全文
posted @ 2017-11-16 18:31 北里闻箫 阅读(330) 评论(0) 推荐(0)
摘要: git文件损坏的处理 cp -R foo foo-backup git clone git@www.mydomain.de:foo foo-newclone rm -rf foo/.git cp -R foo-newclone/.git foo rm -rf foo-newclone 复制.git文 阅读全文
posted @ 2017-11-14 12:36 北里闻箫 阅读(1036) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页