购买Cloudcone搭建VPS步骤(CentOS)

2019-10-16  本文已影响0人  娄叔啊喂

基本操作命令

0x00 选择价位

passwd
#输入密码两次

0x01 安装ss

#安装更新pip
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python get-pip.py
pip install --upgrade pip
#安装ss
pip install shadowsocks

#设置ss配置文件
vi /etc/shadowsocks.json

#输入
{
"server":"::",
"port_password":{
"8388":"19951006",
"8366":"19950805"
},
"timeout":300,
"method":"aes-256-cfb"
}

0x02 设置启动

ssserver -c /etc/shadowsocks.json -d start
vim /etc/systemd/system/shadowsocks.service
#输入
[Unit]
Description=Shadowsocks

[Service]
TimeoutStartSec=0
ExecStart=/usr/bin/ssserver -c /etc/shadowsocks.json

[Install]
WantedBy=multi-user.target

之后就可以使用

systemctl enable shadowsocks
systemctl start shadowsocks

#查看服务的状态
systemctl status shadowsocks -l

启动ss

firewall-cmd --zone=public --add-port=8388/tcp --permanent
firewall-cmd --zone=public --add-port=8366/tcp --permanent
firewall-cmd --reload

0x03 开启BBR

选择系统CentOS 7.5 Server - 64 Bit (Latest Kernel + BBR) 默认使用BBR

上一篇 下一篇

猜你喜欢

热点阅读