本文共 504 字,大约阅读时间需要 1 分钟。
1.手写nginx从配置文件vim /etc/nginx/conf.d/game.confserver { listen 80; server_name game.syy.com; location / { #location可以省略 root /code; index index.html }}2.#小游戏的HTML和解压后别的文件要放一起,因为他们本来就是一个整体,记得gzip备份index.htmlmkdir /code/ && cd /code/rz html5.zipunzip html5.zip3.检查和检验nginx -t4.重载nginx配置文件systemctl reload nginx5.配置windows本地域名解析vim /etc/hosts6.#检测解析是否加载(ping域名或者,再次打开hosts文件查看)ping game.syy.com7.浏览器检测http://game.syy.com/
转载地址:http://hllfz.baihongyu.com/