在 Linux 系统 Ubuntu 上发布静态 html 页面
发布方式
有两种方式,一种使用 nginx 另一种是 apache。
本篇将使用 nginx 发布
安装 nginx
目前支持两种安装方式,一种是apt-get的方式,另一种是根据包安装的方式
# 切换至root用户
sudo su root
apt-get install nginx
如果提示 E: Unable to locate package nginx
先执行更新命令 apt-get update
再安装 apt-get install nginx
root@xueqin:~# apt-get install nginx
Reading package lists... Done
Building dependency tree
Reading state information