1 free -h 2 sudo dd if=/dev/zero of=/swapfile bs=1M count=2048 ``` 3 sudo fallocate -l 2G /swapfile 4 sudo chmod 600 /swapfile 5 sudo mkswap /swapfile 6 sudo swapon /swapfile 7 echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab 8 free -h 9 sudo apt update -y && sudo apt upgrade -y 10 sudo apt install nginx 11 cd /var/www 12 vim /etc/nginx/sites-available/www.xn--8mr619f.site 13 sudo nginx -t 14 cd /var/www 15 chmod 777 /var/www/dist.zip 16 sudo apt install uzip 17 sudo apt install zip 18 cd /var/www/unzip_202506271910_dist/dist 19 sudo mv * /var/www/html 20 cd /var/www/html 21 sudo chmod -R 775 /var/www/html 22 sudo apt-get install certbot python3-certbot-nginx 23 sudo add-apt-repository ppa:certbot/certbot 24 sudo apt-get update 25 sudo apt-get install certbot python3-certbot-nginx 26 sudo certbot --nginx -d www.xn--8mr619f.site 27 sudo systemctl list-timers | grep certbot 28 vim /etc/nginx/nginx.conf
如何在1h1g的云服务器上搭建网站
hym
未分类
评论0次
2025-06-27
2025-06-27
4
发表评论
