gitbook
摘要:npm config set registry https://registry.npm.taobao.org --global npm config set disturl https://npm.taobao.org/dist --global npm i -g gitbook-cli gitb
阅读全文
centos7连接windows远程桌面
摘要:wget http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm rpm -Uvh nux-dextop-release*rpm yum install rdesktop -y
阅读全文
mongo创建用户
摘要:db.createUser( {user: "root",pwd: "ksyun.123",roles: [ { role: "readWrite", db: "wekan" } ]})
阅读全文
mongodb备份与恢复
摘要:mongodump -d wekan -o ./ --authenticationDatabase admin mongorestore -h 127.0.0.1 -u root -p ksyun.123 -d wekan ./wekan --authenticationDatabase admin
阅读全文
Linux网桥端口的arp问题
摘要:Linux的brctl addif命令可以将一个接口加入到既有的网桥中,接下来,这个接口就成了brport,属于一个从属的接口,然而你还是可以看到它的,并且可以为它添加IP地址,然后route命令会显示出它的新添加的IP地址的链路层路由已经生效,种种迹象都让人觉得这个brport仍然保有IP语义,然
阅读全文
python起简易http server
摘要:python -m SimpleHTTPServer 9111
阅读全文
s3fs 挂载minio为本地文件系统
摘要:https://github.com/s3fs-fuse/s3fs-fuseecho ACCESS_KEY_ID:SECRET_ACCESS_KEY > ${HOME}/.passwd-s3fs chmod 600 ${HOME}/.passwd-s3fs yum install s3fs-fuse
阅读全文
cgroups实验
摘要:# yum install -y libcgroup libcgroup-tools创建控制组cgcreate -g cpu:/testcgcreate -g cpu:/test2禁用quotacgset -r cpu.cfs_quota_us=-1 testcgset -r cpu.cfs_quo
阅读全文
centos7安装搜狗输入法
摘要:yum install fcitx 执行fcitx 出现DBus Not initialized 执行eval `dbus-launch --sh-syntax` imsettings-switch fcitx reboot yum install dpkg 下载搜狗输入法ubuntu版 https
阅读全文
linux管道和tee命令
摘要:ps -ef | grep docker 等价于 ps -ef &> >(grep docker) cat a.log | tee b.txt 等价于 cat a.log &> >(tee b.txt) cat a.log | md5sum > a.sum 为了将过程打印到屏幕 cat a.log
阅读全文
gitlab merge request
摘要:分支提了mr之后, 又有commit 不用重新提mr,mr中会自动更新 要保证项目下的.git目录中有hooks这个目录(如果是从github迁移到gitlab的项目, 可能没有这个目录, 导致mr不能自动更新commit)
阅读全文
rabbitmq安装
摘要:1. 安装erlang yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC-devel https://github.com/rabbitmq/erlang-rpm # cat >
阅读全文
git commit规范工具
摘要:npm install -g commitizen commitizen init cz-conventional-changelog --save --save-exact 以后,凡是用到git commit命令,一律改为使用git cz
阅读全文
centos7安装postman
摘要:下载地址: https://www.getpostman.com/apps 创建桌面快捷启动 # cat /usr/share/applications/postman.desktop [Desktop Entry]Version=1Type=ApplicationName=PostmanGener
阅读全文
elasticsearch template
摘要:# curl -XPUT localhost:9200/_template/template_1 -d '{"template" : "te*","settings" : { "number_of_shards" : 1, "number_of_replicas":2 },"mappings" :
阅读全文
iptables
摘要:http://www.zsythink.net/archives/1199 表: filter, raw, mangle, nat 链: PREROUTING, INPUT, FORWARD, OUTPUT, POSTROUTING, 查询 -t 默认是filter iptables -t filt
阅读全文
tcpdump
摘要:https://www.cnblogs.com/chenpingzhao/p/9108570.html
阅读全文
代码生成
摘要:live templates http://blog.jobbole.com/110607/ easy code https://www.oschina.net/p/easycode?origin=wechat
阅读全文