Raspberry PI Nginx 安装
时间:2015-10-06 22:40 来源:linux.it.net.cn 作者:IT
-
Welcome to nginx!
Raspberry PI Nginx 安装
1. 查看系统版本信息
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
root@raspberrypi:/tmp# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 7.0 (wheezy)"
NAME="Debian GNU/Linux"
VERSION_ID="7.0"
VERSION="7.0 (wheezy)"
ID=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support/"
BUG_REPORT_URL=http://bugs.debian.org/
2.
1
2
3
4
5
wget http://nginx.org/keys/nginx_signing.key
sudo apt-key add nginx_signing.key
vim /etc/apt/ sources.list
在文件中添加如下两行:
deb http://nginx.org/packages/debian/ wheezy nginx
deb-src http://nginx.org/packages/debian/ wheezy nginx
1
apt-get update
等待软件包更新
1
apt-get install nginx
安装成功
/etc/init.d/nginx start 启动
访问http://ip
显示
Welcome to nginx!
(责任编辑:IT)
Raspberry PI Nginx 安装 1. 查看系统版本信息
2.
在文件中添加如下两行: deb http://nginx.org/packages/debian/ wheezy nginx deb-src http://nginx.org/packages/debian/ wheezy nginx
等待软件包更新
/etc/init.d/nginx start 启动 访问http://ip 显示
Welcome to nginx!(责任编辑:IT) |