分类 服务器 下的文章

腾讯云centos搭建SS

选择安装python版本SS,所以先安装pip

curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python get-pip.py

安装shadowsocks

pip install --upgrade pip
pip install shadowsocks

编辑配置文件

vi /etc/shadowsocks.json

相关命令

#启动
ssserver -c /etc/shadowsocks.json -d start
#停止
ssserver -c /etc/shadowsocks.json -d stop
#重启
ssserver -c /etc/shadowsocks.json -d restart

vps+ss+finalspeed 无压力观看youtube1080P配置

首先vps请自行购买,操作系统选centos

ss安装:

wget --no-check-certificate https://down.upx8.com/shell/shadowsocks-go.sh
chmod +x shadowsocks-go.sh
./shadowsocks-go.sh 2>&1 | tee shadowsocks-go.log

卸载:

./shadowsocks-go.sh uninstall

配置文件:

vi /etc/shadowsocks/config.json

常用命令:

启动:/etc/init.d/shadowsocks start 
停止:/etc/init.d/shadowsocks stop 
重启:/etc/init.d/shadowsocks restart 
状态:/etc/init.d/shadowsocks status

ss地址

finalspeed使用91yun的finalspeed一键安装包:
安装:

wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/finalspeed/master/install_fs.sh && bash install_fs.sh

卸载:

wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/finalspeed/master/install_fs.sh && bash install_fs.sh uninstall

常用命令:

启动: /etc/init.d/finalspeed start
停止命令:/etc/init.d/finalspeed stop
状态命令(查看日志):/etc/init.d/finalspeed status
监控:tail -f /fs/server.log

客户端地址

nginx配置wordpress伪静态规则

nginx配置文件,server模块中添加

rewrite ^.*/files/(.*)$ /wp-includes/ms-files.php?file=$1 last;
if (!-e $request_filename) {
    rewrite ^.+?(/wp-.*) $1 last;
    rewrite ^.+?(/.*\.php)$ $1 last;
    rewrite ^ /index.php last;
}