admin

自用vps迁移
vps越来越慢,只好换了一家。记录一下迁移
扫描右侧二维码阅读全文
13
2019/02

自用vps迁移

vps越来越慢,只好换了一家。记录一下迁移

1、检查和设置vps环境 清理无用软件

yum install screen 
screen -S lnmp

2、搭建 四四日
ssr.sh.txt

https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ssr.sh
chacha20的安装会出错,主要是一个lib的插件,手动安装,然后再用脚本覆盖安装一次就可以 了

mv 1803898290.txt ssr.sh

chmod +x ssr.sh && bash ssr.sh

wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/ss-go.sh && chmod +x ss-go.sh && bash ss-go.sh

wget --no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh
chmod +x shadowsocks-all.sh
./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log

3、 BBR 加速部署

yum -y install wget
bbr.sh.txt
mv 2746226282.txt bbr.sh

    wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh
    chmod +x bbr.sh
./bbr.sh

4、安装LNP

wget http://soft.vpser.net/lnmp/lnmp1.5.tar.gz -cO lnmp1.5.tar.gz && tar zxf lnmp1.5.tar.gz && cd lnmp1.5 && LNMP_Auto="y" DBSelect="0" PHPSelect="5" SelectMalloc="1" ./install.sh lnmp

5、迁移文件
6、覆盖nginx php配置文件、设置 /home/wwwroot/ 子目录权限
/usr/local/nginx/conf
/usr/local/php/etc/

chattr -i /home/wwwroot/*/.user.ini
tar -xzvf www-wwwroot-***.tar.gz
chown www:www -R  /home/wwwroot/*
chattr +i /home/wwwroot/*/.user.ini
chmod +x backup.sh

6、添加自动备份计划任务和定时重启
yum install lftp

crontab -e

0 3 * * * /home/wwwroot/backup.sh
59 23 * * * /sbin/reboot
Last modification:June 3rd, 2019 at 03:17 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment

captcha
请输入验证码