192 MB的VPS上安装ss服务基于Ubuntu16.04
在内存只有192MB小鸡vps上安装ss服务,基于ubuntu16.04精简版,安装脚本命令如下:
apt-get update
pip install -U pip
pip3 install --upgrade pip
pip3 install shadowsocks
pip install --upgrade shadowsocks
pip3 install --upgrade shadowsocks
cat <<EOF>> /etc/shadowsocks.json
{
"server":"vps ipadder",
"local_address":"127.0.0.1",
"local_port":8888,
"port_password":{
"9001":"password",
"9002":"password"
},
"timeout":600,
"method":"aes-256-cfb",
"fast_open": false
}
EOF
/usr/local/bin/ssserver -c /etc/shadowsocks.json >> /ss.log 2>&1 &
系统进程
CPU使用率
内存使用
如果运行pip或pip3时报错,参考如下内容修改:
/usr/bin/pip3文件如下:
root@UnnaturalRagged-VM:~# cat /usr/bin/pip3
#!/usr/bin/python3
# GENERATED BY DEBIAN
import sys
# Run the main entry point, similarly to how setuptools does it, but because
# we didn't install the actual entry point from setup.py, don't use the
# pkg_resources API.
from pip import __main__
if __name__ == '__main__':
#sys.exit(main())
sys.exit(__main__._main())
/usr/bin/pip文件如下:
root@UnnaturalRagged-VM:~# cat /usr/bin/pip
#!/usr/bin/python
# GENERATED BY DEBIAN
import sys
# Run the main entry point, similarly to how setuptools does it, but because
# we didn't install the actual entry point from setup.py, don't use the
# pkg_resources API.
from pip import __main__
if __name__ == '__main__':
#sys.exit(main())
sys.exit(__main__._main())
Tag标签:「vps ss ubunut」更新时间:「2021-11-03 23:52:18」阅读次数:「875」