摘要:切換到這個可以不用跟我一樣,我主要是為了方便,但這不是個好習慣切換到用戶主目錄是我的用戶名,你們需要修改這個目錄下載簽名密鑰可以查看系統的我用的是所以我的是添加源安裝切換到
切換到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
文章版權歸作者所有,未經允許請勿轉載,若此文章存在違規行為,您可以聯系管理員刪除。
轉載請注明本文地址:http://specialneedsforspecialkids.com/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...
閱讀 1443·2021-11-22 13:54
閱讀 4324·2021-09-22 15:56
閱讀 1815·2021-09-03 10:30
閱讀 1318·2021-09-03 10:30
閱讀 2086·2019-08-30 15:55
閱讀 1851·2019-08-30 14:13
閱讀 2059·2019-08-29 15:19
閱讀 2341·2019-08-28 18:13