Skip to content

Instantly share code, notes, and snippets.

@willwhui
Last active September 29, 2018 00:27
Show Gist options
  • Save willwhui/75446223a7da65c494fa8c1fe7a8b626 to your computer and use it in GitHub Desktop.
Save willwhui/75446223a7da65c494fa8c1fe7a8b626 to your computer and use it in GitHub Desktop.
在sentris.net的vps上配置新用户
在sentris.net的vps上配置新用户
@willwhui
Copy link
Author

willwhui commented Jun 27, 2017

ssh掉线时间太短

参见这里
sudo vi /etc/ssh/sshd_config
增加
ClientAliveInterval 30 #30秒的心跳
ClientAliveCountMax 100 # 跳100次(50分钟)
需要重新登入ssh

@willwhui
Copy link
Author

willwhui commented Jun 30, 2017

创建swap文件

按照这里的说明
采取快速创建的方式,并启动时加载
文章中提到,如果是VPS,应该将swappiness降低到0,减少交换的机会以避免运行过慢。
但是,服务商禁止了swapon功能

@willwhui
Copy link
Author

willwhui commented Oct 11, 2017

修改命令行提示符颜色

参见这里

@willwhui
Copy link
Author

修改命令行提示符字符串长度

参见这里

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment