xJogger

NGinx_Onekey

Feb 21st, 2019
815
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.67 KB | None | 0 0
  1. 适合Debian/Ubunt
  2.  
  3. 1. 在/root下运行
  4.  
  5. apt-get -y update && apt-get -y install screen wget dos2unix && screen -S gg
  6. wget --no-check-certificat -O nginx_pastebin.sh https://pastebin.com/raw/jiMJTkwD && dos2unix nginx_pastebin.sh && bash nginx_pastebin.sh
  7.  
  8. 2. 下载 https://pastebin.com/TYuQ9eKr
  9. 替换“网站域名”为你的域名
  10. 使用了主域和四个子域名,分别是
  11. 网站域名
  12. www.网站域名
  13. w.网站域名
  14. wiki.网站域名
  15. upload.网站域名
  16.  
  17. 3. /etc/nginx/sites-enabled 下放改好的站点配置文件
  18.  
  19. 4. 证书可以去 https://freessl.cn/ 申请一年免费的双域名证书,需要申请四个
  20. /root/nginx/网站域名 下放证书文件
Advertisement
Add Comment
Please, Sign In to add comment