资讯专栏INFORMATION COLUMN

Ubuntu 14.04 安装 nginx

Taste / 2734人阅读

摘要:切换到这个可以不用跟我一样,我主要是为了方便,但这不是个好习惯切换到用户主目录是我的用户名,你们需要修改这个目录下载签名密钥可以查看系统的我用的是所以我的是添加源安装切换到

切换到root,这个可以不用跟我一样,我主要是为了方便,但这不是个好习惯

sudo su

切换到用户主目录 iflytek是我的用户名,你们需要修改这个目录

cd /home/iflytek

下载nginx签名密钥
For Debian/Ubuntu, in order to authenticate the nginx repository signature and to eliminate warnings about missing PGP key during installation of the nginx package, it is necessary to add the key used to sign the nginx packages and repository to the apt program keyring.

wget http://nginx.org/keys/nginx_signing.key
apt-key add nginx_signing.key

lsb_release -c 可以查看系统的codename
我用的是Ubuntu 14.04 所以我的codename是trusty
添加nginx源

echo "deb http://nginx.org/packages/mainline/ubuntu/ trusty nginx" >> /etc/apt/sources.list
echo "deb-src http://nginx.org/packages/ubuntu/ trusty nginx" >> /etc/apt/sources.list

安装nginx

apt-get update
apt-get install nginx

切换root到iflytek

sudo su iflytek

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/39081.html

相关文章

发表评论

0条评论

Taste

|高级讲师

TA的文章

阅读更多
最新活动
阅读需要支付1元查看
<