摘要: 1、下载安装 cat <<EOF> /etc/yum.repos.d/mongodb-org-4.0.repo [mongodb-org-4.0]name=MongoDB Repositorybaseurl=https://repo.mongodb.org/yum/redhat/7Server/mo 阅读全文
posted @ 2018-11-27 10:25 狱血 阅读(1351) 评论(0) 推荐(0) 编辑
摘要: # 禁止匿名用户anonymous登录 anonymous_enable=NO # 允许本地用户登录 local_enable=YES local_root=/data/wwwroot/ # 让登录的用户有写权限(上传,删除) write_enable=YES # 默认umask local_umask=022 # 把传输记录的日志保存到/var/log/vsftpd.log dual_log_... 阅读全文
posted @ 2018-11-27 09:49 狱血 阅读(1569) 评论(0) 推荐(0) 编辑
摘要: yum -y remove php* rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm yum -y install php72w php72w-cli... 阅读全文
posted @ 2018-11-27 09:24 狱血 阅读(3114) 评论(0) 推荐(0) 编辑
摘要: 1、添加gitlab源(我这里使用了清华大学的源)cat <<EOF> /etc/yum.repos.d/gitlab-ce.repo[gitlab-ce]name=gitlab-cebaseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/ 阅读全文
posted @ 2018-11-27 09:21 狱血 阅读(3186) 评论(0) 推荐(0) 编辑
摘要: mysql5.7安装及赋权 配置文件模板 注意:serverid 必须不一样,auto_increment_offset 和auto_increment_increment 做双主需要配置,只做主从不需要。 同步配置 阅读全文
posted @ 2018-11-27 09:19 狱血 阅读(1806) 评论(0) 推荐(0) 编辑
摘要: 转 http://blog.51cto.com/meiling/2071122 阅读全文
posted @ 2018-11-23 09:57 狱血 阅读(15814) 评论(1) 推荐(2) 编辑
摘要: 1.查询不是sleep或者有状态的sql select * from `information_schema`.processlist where command !='Sleep' or state !=''; 2.查询运行中的事务select trx_state, trx_started, tr 阅读全文
posted @ 2018-11-01 16:20 狱血 阅读(1568) 评论(0) 推荐(0) 编辑
摘要: nginx 添加头部跨域。 前端ajax session id 不一致问题: 阅读全文
posted @ 2017-12-21 23:53 狱血 阅读(706) 评论(0) 推荐(0) 编辑
摘要: 安装 innotify说明 inotify介绍-- 是一种强大的、细颗粒的、异步的文件系统监控机制,*&####&*_0_*&####&*内核从2.6.13起,加入Inotify可以监控文件系统中添加、删除、修改移动等各种事件,利用这个内核接口,就可以监控文件系统下文件的各种变化情况。 inotif 阅读全文
posted @ 2017-12-21 23:16 狱血 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 人在很多时候,靠自觉或者说是靠道德,是不行的。必须制定规则,让其强制遵守。程序员也是人,也需要规则。 SVN提交时,如果没有注释,在查阅历史时,会非常不方便。因此我们需要有一个让程序员提交代码时,强制添加注释的规则。下面看看在SVN中怎么实现。 1. 推荐使用VisualSVN作为服务端(免费下载地 阅读全文
posted @ 2017-11-30 10:00 狱血 阅读(127) 评论(0) 推荐(0) 编辑