Restore

Package Install

# apt-get update

# apt-get install mariadb-server nginx-full certbot kcptun shadowsocks-libev libwww-perl libdbd-mysql-perl libjson-perl npm ipset ffmpeg kid3-cli
# npm install gitbook-cli -g 
# cd /usr/local/lib/node_modules/gitbook-cli/node_modules/npm/node_modules/
# npm install graceful-fs@4.2.0 --save

# apt-get install php-fpm php-mysql php-mbstring php-gd php-mysql
# apt-get install fail2ban lrzsz curl tmpreaper  locales console-setup expect
# dpkg-reconfigure tzdata

# dpkg-reconfigure locales
# localedef -i en_US -f UTF-8 en_US.UTF-8
# reboot

Restoring Web Data

# cd /
# tar zxvf www_202203281425.tar.gz

Restoring Mysql Data

# mysql -u root -p
> source sql_202203281423
> grant all on 1.* to 2@localhost identified by '3';

Restoring Configs (nginx php mysql iptable fail2ban)

# cd /
# tar zxvf conf_202203281424.tar.gz

Restoring Crontab

crontab crontab_202203281420

Certbot

# apt-add-repository ppa:certbot/certbot
# apt-get update
# apt-get install certbot
------ or ------
# apt install snapd
# snap install --classic certbot
# ln -s /snap/bin/certbot /usr/bin/certbot

# wget https://github.com/joohoi/acme-dns-certbot-joohoi/raw/master/acme-dns-auth.py
# chmod +x acme-dns-auth.py
# mv acme-dns-auth.py /etc/letsencrypt/
powered by GitbookFile Modify: 2024-06-14 17:01:44

results matching ""

    No results matching ""