摘要:切換到這個(gè)可以不用跟我一樣,我主要是為了方便,但這不是個(gè)好習(xí)慣切換到用戶主目錄是我的用戶名,你們需要修改這個(gè)目錄下載簽名密鑰可以查看系統(tǒng)的我用的是所以我的是添加源安裝切換到
切換到root,這個(gè)可以不用跟我一樣,我主要是為了方便,但這不是個(gè)好習(xí)慣
sudo su
切換到用戶主目錄 iflytek是我的用戶名,你們需要修改這個(gè)目錄
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 可以查看系統(tǒng)的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
文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請(qǐng)注明本文地址:http://systransis.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...
閱讀 1457·2021-11-22 13:54
閱讀 4376·2021-09-22 15:56
閱讀 1828·2021-09-03 10:30
閱讀 1326·2021-09-03 10:30
閱讀 2093·2019-08-30 15:55
閱讀 1859·2019-08-30 14:13
閱讀 2066·2019-08-29 15:19
閱讀 2374·2019-08-28 18:13