树莓派——安装Nginx服务器
来源:互联网 发布:淘宝自动发货系统 编辑:程序博客网 时间:2024/06/07 05:43
1.安装nginx web服务器 (约6MB)
sudo apt-get install nginx -y
2.修改nginx的配置文件
sudo nano /etc/nginx/sites-available/default
以下几个选项注意一下:
listen 8080; ## listen for ipv4; this line is default and implied
//监听的端口号,如果与其它软件冲突,可以在这里更改
root /home/www;
//nginx 默认路径html所在路径
index index.html index.htm index.php;
//nginx默认寻找的网页类型,我们可以增加一个index.php
3.启动nginx
sudo /etc/init.d/nginx start
nginx的www根目录默认在 /usr/share/nginx/www中
阅读全文
0 0
- 树莓派——安装Nginx服务器
- 配置服务器 —— 安装Nginx
- 源码安装nginx——web服务器
- Nginx系列—服务器安装与配置
- 安装 —— CentOS 5 服务器 Nginx 环境推荐教程
- nginx服务器安装记录
- nginx服务器安装记录
- CentOS 安装Nginx服务器
- Nginx服务器的安装
- Nginx服务器安装
- 服务器-安装Nginx
- nginx服务器安装搭建
- Nginx服务器安装配置
- Nginx服务器的安装
- 服务器安装之--Nginx
- 远程服务器安装nginx
- 浅谈web服务器—Nginx
- 浅谈web服务器—Nginx
- [leetcode]82. Remove Duplicates from Sorted List II
- 快排-单链表实现
- 深入理解Linux内核-第五章笔记
- ubuntu14.04配置ssh登陆
- CodeForces
- 树莓派——安装Nginx服务器
- 编程思想
- 为什么要初始化 CSS 样式
- java 利用数组实现增删改查
- ubuntu配置samba
- stl map
- J
- PAT乙级 1070. 结绳(25)--数学问题
- 使用webservice调用天气接口的简单应用