随笔分类 - linux
摘要:Ubuntu18.04初始的systemd service 两个位置 1. 2.
阅读全文
摘要:添加用户名和密码 /etc/ipsec.conf 改为 http://linux.die.net/man/5/ipsec.conf dpddelay Set the delay (in seconds) between Dead Peer Dectection (RFC 3706) keepaliv
阅读全文
摘要:Refer to the following to set root login: sudo s (to become root) vi /root/.ssh/authorized_keys Delete the lines at the begining of the file until you
阅读全文
摘要:```
sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
```
阅读全文
摘要:参考 http://www.cnblogs.com/owenyang/p/4282283.html 查看swap使用策略 0代表尽量使用物理内存, 100反之 永久修改swap策略 比如你想修改为10 最后添加行`vm.swappiness=10`
阅读全文
摘要:一. postgresql 数据库 安装 进入psql客户端 创建数据库,修改默认用户密码 参考:http://www.cnblogs.com/zhangpengshou/p/5464610.html 跨服务器复制数据库 参考:http://www.cnblogs.com/xiangnan/p/66
阅读全文
摘要:client 端: echo -e '\nServerAliveInterval 30' >> ~/.ssh/ssh_config server 端: echo -e '\nClientAliveInterval 30' >> /etc/ssh/sshd_config service ssh rel
阅读全文
摘要:比如把当前文件夹下所有scss文件后缀改为less `rename 's/\.scss/\.less/' ./ `
阅读全文
摘要:ssh配置更新 ubuntu获取所有安装包 ubuntu更新某个包 批量更改文件后缀名 查找文件是否包含某个字符 http://120.24.244.38:9990/admin.html /models/account/user zcat命令 du命令 查看文件大小 find命令 查找以一位或两位数
阅读全文
摘要:话不多说,简单粗暴 http://stackoverflow.com/questions/35643201/how-to-set-up-a-sychronous-directory-in-remote-server-with-git
阅读全文
摘要:蛋疼的阿里云,git版本居然才1.9.只能手动安装了. 预装 apt-get update apt-get --yes install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev autoconf git源码列表 htt
阅读全文
摘要:如果觉得scp每次都要输入密码很麻烦, 那么这是解决方案.假设你平时在windows上开发,用户名是xiang, 你有一台Ubuntu服务器wdksw.com, 用户名是root.现在你准备上传一些文件到服务器上.为方便叙述,w表示windows, u表示Ubuntu.w$表示在windows端输入
阅读全文
摘要:右上角头像->bitbucket settings->ssh keys 直接点击: https://bitbucket.org/account/user/.../ssh-keys/ 教程: https://confluence.atlassian.com/bitbucket/add-an-ssh-k
阅读全文
摘要:安装指定版本的node# 所有版本在:https://nodejs.org/download/release/# current dir:/rootwget -c https://nodejs.org/download/release/v0.10.42/node-v0.10.42-linux-x64
阅读全文

浙公网安备 33010602011771号