2017年2月2日 星期四

CentOS 6 Linux 安裝

2016年12月16日星期五
  • 下載原版網路安裝光碟,作成 cdrw 光碟 或作成 USB 開機
  • 安裝系統,並加入 https,PHP,mysql,samba,ftp 等常用服務。
  • 安裝 webmin , 設定防火牆 (iptables,ip6tables)讓相關服務可以連線
  • 更新系統

  1. Centos Mirrors
    https://www.centos.org/download/mirrors/
  2. 台中市教育網路中心FTP
    http://ftp.tc.edu.tw/Linux/CentOS/
  3. 如何通過 USB 設備來安裝 CentOS
    https://wiki.centos.org/zh-tw/HowTos/InstallFromUSBkey
  4. 已確定能正確運作的有 Rufus、Fedora LiveUSB Creator
    https://rufus.akeo.ie/
    https://fedorahosted.org/liveusb-creator/
 2-1 正體中文安裝, 使用全部硬碟空間, 系統自動切割硬碟, 選擇套件
  1. Web 伺服器,
  2. CIFS, VsFTP
  3. MySQL 伺服器, MySQL 用戶端
  4. php , php-mysql
 3-1 安裝 webmin :
  1. Using the Webmin YUM repository  http://www.webmin.com/rpm.html
3-2 設定防火牆可通過的 port, 及啟用的服務
  1.  setup : 防火牆設定, 增加 webmin 使用的 tcp/10000
  2.  /etc/init.d/iptables (指令檔) => /etc/sysconfig/iptables (設定檔)
  3.  /etc/init.d/ip6tables (指令檔) => /etc/sysconfig/ip6tables (設定檔)
 4-1 yum , /etc/yum.conf , /etc/yum.repos.d
  1. yum -y update  (更新)
  2. yum -y clean all (清除快取)
  3. yum -y install XXX (安裝 XXX 套件)
  4. yum list  (列出可用套件)
  5. 在 /etc/yum.conf 加入一行 " assumeyes=1 " , 代表 -y
  6. /etc/yum.repos.d/ 中存放 yum 更新的套件來源設定檔.

沒有留言:

張貼留言