摘要:切换到这个可以不用跟我一样,我主要是为了方便,但这不是个好习惯切换到用户主目录是我的用户名,你们需要修改这个目录下载签名密钥可以查看系统的我用的是所以我的是添加源安装切换到
切换到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
1, Download Key and add it 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 ne...
阅读 1446·2021-11-22 13:54
阅读 4332·2021-09-22 15:56
阅读 1817·2021-09-03 10:30
阅读 1319·2021-09-03 10:30
阅读 2089·2019-08-30 15:55
阅读 1853·2019-08-30 14:13
阅读 2061·2019-08-29 15:19
阅读 2343·2019-08-28 18:13