Raspberry PI Nginx 安装
1. 查看系统版本信息
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.
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
apt-get update
等待软件包更新
apt-get install nginx
安装成功
/etc/init.d/nginx start 启动
访问http://ip
显示