<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      Ubuntu 16.04系統(tǒng)布署小記

      前段時(shí)間趁著雙11打折,又將阿里云主機(jī)續(xù)費(fèi)了3年。之前布署的系統(tǒng)是Ubuntu 12.04,從系統(tǒng)發(fā)布到現(xiàn)在也有四年半了,其官方支持的生命周期也將止于明年春,且這在幾年里出現(xiàn)了很多新的事物,我也需要跟上時(shí)代的步伐,于是著手將整個(gè)環(huán)境更新至最新的Ubuntu 16.04,現(xiàn)將布署過(guò)程記錄如下

       

      系統(tǒng)布署

      環(huán)境布署

      應(yīng)用布署

       

      10. 停止服務(wù)器實(shí)例,選擇更換系統(tǒng)盤,選擇Ubuntu 16.04 64bit,重啟實(shí)例

       

      20. 掛載虛擬內(nèi)存

      mkdir /swap && cd /swap && fallocate -l 2g 2GB.swap && mkswap 2GB.swap && swapon 2GB.swap && echo "# # # Swap File # # #" >> /etc/fstab && echo "/swap/2GB.swap    none                   swap               sw                       0       0" >> /etc/fstab && mount -a

      調(diào)整內(nèi)存參數(shù),內(nèi)存使用超90%時(shí)啟用虛擬內(nèi)存

      sudo sysctl vm.swappiness=10

      打開配置文件

      sudo vim /etc/sysctl.conf

      將上述參數(shù)修改配置文件后,保存

      vm.swappiness = 10

       

      How To Add Swap Space on Ubuntu 16.04

      Does it make sense to create swap partitions for new installations nowadways?

      How to increase swap space?

       

      30.重新掛載阿里云數(shù)據(jù)盤

      echo '/dev/xvdb1  /opt ext4    defaults    0  0' >> /etc/fstab && mount -a

      步驟 4:格式化和掛載數(shù)據(jù)盤

       

      40. 新增個(gè)人用戶

      adduser ljz
      gpasswd -a ljz sudo

      后面的操作使用新用戶完成

       

      50. 更新軟件源

      取消阿里云自帶的源代理設(shè)置。這會(huì)導(dǎo)致大部份國(guó)外源的更新失敗

      sudo vim /etc/apt/apt.conf

      注釋代理設(shè)置

      #Acquire::http::Proxy "http://mirrors.aliyun.com/";

       

      查看源設(shè)置

      sudo vim /etc/apt/sources.list

      可以看到,阿里已經(jīng)幫我將源指向了阿里鏡象自己,這也是最快的選擇,所以不需要作任何修改

      deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
      deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
      deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
      deb http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
      deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
      deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse
      deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse
      deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted universe multiverse
      deb-src http://mirrors.aliyun.com/ubuntu/ xenial-proposed main restricted universe multiverse
      deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
      
      deb http://mirrors.aliyuncs.com/ubuntu/ xenial main restricted universe multiverse
      deb http://mirrors.aliyuncs.com/ubuntu/ xenial-security main restricted universe multiverse
      deb http://mirrors.aliyuncs.com/ubuntu/ xenial-updates main restricted universe multiverse
      deb http://mirrors.aliyuncs.com/ubuntu/ xenial-proposed main restricted universe multiverse
      deb http://mirrors.aliyuncs.com/ubuntu/ xenial-backports main restricted universe multiverse
      deb-src http://mirrors.aliyuncs.com/ubuntu/ xenial main restricted universe multiverse
      deb-src http://mirrors.aliyuncs.com/ubuntu/ xenial-security main restricted universe multiverse
      deb-src http://mirrors.aliyuncs.com/ubuntu/ xenial-updates main restricted universe multiverse
      deb-src http://mirrors.aliyuncs.com/ubuntu/ xenial-proposed main restricted universe multiverse
      deb-src http://mirrors.aliyuncs.com/ubuntu/ xenial-backports main restricted universe multiverse

       

      更新軟件源

      sudo apt update

      升級(jí)軟件

      sudo apt upgrade

      What is the difference between apt and apt-get?

      Debian、Ubuntu 源列表說(shuō)明(2013-06-07 更新)

      為什么ubuntu每個(gè)版本都需要自己版本的源呢

      PPA也是軟件的一個(gè)重要來(lái)源

      PPA官網(wǎng)

       

      60. 解決異常關(guān)機(jī)后重動(dòng)時(shí)的卡頓

      打開引導(dǎo)配置文件

      sudo vim /etc/default/grub

      增加異常停頓時(shí)間參數(shù)

      GRUB_RECORDFAIL_TIMEOUT=2

      保存退出后,更新啟動(dòng)配置

      sudo update-grub

      How can I force Ubuntu to boot on a stuck boot menu?

      Force ubuntu to boot after power failure without user input

       

      70. 安裝常用工具

      sudo apt install zip unzip screen nmon ne

      Axel替代wget

      How to list all the files in a tree (a directory and its subdirs)?

      SSH遠(yuǎn)程會(huì)話管理工具 - screen使用教程

      Linux監(jiān)控工具-Nmon命令行:Linux系統(tǒng)性能的監(jiān)測(cè)利器

      nmon官網(wǎng)

      Linux 命令行下的最佳文本編輯器

      ne官網(wǎng)

       

      80. 讓SSH在screen中會(huì)話,保證穩(wěn)定性

      vim ~/.profile

      在文件最后添加

      screen -d -RR

      后續(xù)都在screen中作業(yè)

       

      85. ne設(shè)置

      Tab Size:4
      Tabs as Spaces:on
      Auto Indent:on
      ...
      Save Def Prefs

       

      90. vim設(shè)置【不再首選】

      sudo vim /etc/vim/vimrc

      在打開的文件最后輸入下面的內(nèi)容

      set nu
      set ai

      保存。這樣vim顯示時(shí)就自動(dòng)顯示行號(hào),也能自動(dòng)縮進(jìn)了

      vim顯示行號(hào)、語(yǔ)法高亮、自動(dòng)縮進(jìn)的設(shè)置

      posted @ 2016-12-24 23:24  永遠(yuǎn)的阿哲  閱讀(957)  評(píng)論(0)    收藏  舉報(bào)
      主站蜘蛛池模板: 丰满熟妇人妻中文字幕| 日韩一区二区三区精品| 国模少妇无码一区二区三区| 91亚洲人成手机在线观看| 色悠悠国产精品免费在线| 国产欧美丝袜在线二区| 国产乱码1卡二卡3卡四卡5| 亚洲在av极品无码天堂| 国产破外女出血视频| 欧美人与性动交ccoo| 丝袜美腿亚洲综合第一页| 猫咪社区免费资源在线观看| 中文字幕av一区| 精品三级在线| 国产高清精品在线91| 山阳县| 亚洲中文字幕久久精品品| 国产乱码1卡二卡3卡四卡5| 亚洲人成网线在线播放VA| 国产一区二区在线激情往| 国产亚洲制服免视频| 欧美丰满熟妇乱XXXXX网站| 精品国模一区二区三区| 日韩中文字幕一二三视频| 亚洲AV国产福利精品在现观看| 蜜芽久久人人超碰爱香蕉| 国内精品久久久久久久coent| 人人妻人人做人人爽夜欢视频| 久久午夜私人影院| 湛江市| 国产成人av电影在线观看第一页| 一区二区三区av天堂| 无码人妻一区二区三区免费N鬼沢| 伊人激情av一区二区三区| 内射视频福利在线观看| 日本国产精品第一页久久| 国产超高清麻豆精品传媒麻豆精品| 亚洲精品一区二区动漫| 韩国三级网一区二区三区| 国产精品户外野外| 黑人巨大亚洲一区二区久|