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上配置新用户 |
此时系统资源占用情况(运行top)
%Cpu(s): 5.2 us, 5.7 sy, 0.0 ni, 87.6 id, 0.1 wa, 0.0 hi, 1.4 si, 0.0 st
KiB Mem : 131072 total, 16892 free, 45988 used, 68192 buff/cache
配置完ss,使用gcm加密协议后的系统资源占用情况(运行top)
%Cpu(s): 5.0 us, 6.4 sy, 0.0 ni, 83.9 id, 3.2 wa, 0.0 hi, 1.4 si, 0.0 st
KiB Mem : 131072 total, 34496 free, 86860 used, 9716 buff/cache
ssh掉线时间太短
参见这里
sudo vi /etc/ssh/sshd_config
增加
ClientAliveInterval 30 #30秒的心跳
ClientAliveCountMax 100 # 跳100次(50分钟)
需要重新登入ssh
创建swap文件
按照这里的说明:
采取快速创建的方式,并启动时加载
文章中提到,如果是VPS,应该将swappiness降低到0,减少交换的机会以避免运行过慢。
但是,服务商禁止了swapon功能
修改命令行提示符颜色
修改命令行提示符字符串长度
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vi的方向键和backspace不能正常工作
按照这里提到的方法1进行修改即可:
修改/etc/vim/vimrc.tiny
把set compatible
改成set nocompatible
并增加一句set backspace=2