跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
wiki | ww3
搜索
搜索
外观
创建账号
登录
个人工具
创建账号
登录
查看“︁Nginx配置”︁的源代码
页面
讨论
大陆简体
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
常规
链入页面
相关更改
页面信息
外观
移至侧栏
隐藏
←
Nginx配置
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
== 环境 == 我现在的系统是Debian13,所以接下来会以 "apt" 作为包管理器工具 == 下载 == 首先下载nginx <br> 输入<code>apt install nginx -y</code> == 配置 == 安装好了,我们打开 "/etc/nginx" 文件夹 <br> 我个人建议注释掉当前目录下 "sites-enable/default"文件里面的全部内容,这样会比较干净 然后再建立名为 "service" 的文件 <br> 往里面写入 server { listen: 80; servername: _; index index.html index.htm index.nginx-debian.html; location \ { } } 接下来再运行<code>systemctl restart nginx</code> <br> 如果不保险的话还可以执行两遍<code>nginx</code> 如果有问题的话,会显示出来的 最后,在你的浏览器输入你的服务器ip <br> 看到了 Welcome to nginx! If you see this page, the nginx web server is successfully installed and working. Further configuration is required. <br> For online documentation and support please refer to nginx.org. Commercial support is available at nginx.com. Thank you for using nginx. 恭喜你!!!大功告成!!! [[Category:Web]] [[Category:记录]]
返回
Nginx配置
。
搜索
搜索
查看“︁Nginx配置”︁的源代码
添加话题