(一)MySQL主從環境搭建

來源:互聯網
上載者:User

標籤:

1.Ubuntu開機直接進入命令列模式  安裝完Ubuntu,因案頭系統太過消耗資源,需要設定其開機自動進入命令列模式  1)sudo gedit/etc/default/grub  2)GRUB_CMDLINE_LINUX_DEFAULT="quiet" ===>GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text"  3)sudo update-grub   4)reboot    附:臨時切換可用       alt+ctrl+f1 切換到命令列模式      alt+ctrl+f7 切換到映像介面/也可以在命令列用startx       2.安裝vim  sudo apt-get install vim3.安裝ssh服務  sudo apt-get install openssh-server  #如果出現can not get lock /...    把lock檔案刪掉即可
 安裝完成後putty無法串連時需檢查:  1)查看/etc/ssh/sshd_config    #主要檢查以下配置    PermitRootLogin yes #prohibit-password 禁止遠程直接用root使用者登陸    PasswordAuthentication yes #設定是否允許口令驗證  2)查看虛擬機器是否跟本機同一個網段,我用的vmnet1,需要自己設定。如果是用的共用主機ip則是同一個網段4.安裝mysql    sudo apt-get install mysql-server mysql-client5.將虛擬機器clone註:1.修改readonly檔案後怎麼儲存?:w !sudo tee %

 

(一)MySQL主從環境搭建

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.