Last active
September 29, 2018 00:27
-
-
Save willwhui/75446223a7da65c494fa8c1fe7a8b626 to your computer and use it in GitHub Desktop.
在sentris.net的vps上配置新用户
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
在sentris.net的vps上配置新用户 |
创建swap文件
按照这里的说明:
采取快速创建的方式,并启动时加载
文章中提到,如果是VPS,应该将swappiness降低到0,减少交换的机会以避免运行过慢。
但是,服务商禁止了swapon功能
修改命令行提示符颜色
修改命令行提示符字符串长度
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ssh掉线时间太短
参见这里
sudo vi /etc/ssh/sshd_config
增加
ClientAliveInterval 30 #30秒的心跳
ClientAliveCountMax 100 # 跳100次(50分钟)
需要重新登入ssh