VMware安裝CentOS

來源:互聯網
上載者:User

具體教程網上已經很多,不細講了,這裡只列出一些注意事項。

1、安裝VMware Tools。

參考: Installing VMware Tools on CentOS Server

如果安裝CentOS時選擇了Base Server,則不過需要build the kernel modules

其它步驟:

#mount /dev/cdrom /mnt/
#tar -C /tmp -zxvf /mnt/VMwareTools-2.0.0-122956.tar.gz
#umount /mnt
#cd /tmp/vmware-tools-distrib
#./vmware-install.pl

然後一路斷行符號,就安裝好了。

2、配置網卡。

參考:centos5.3 配置網卡

安裝過程中如果沒有選擇自訂配置,可能安裝後eth0網卡沒有啟動,可以參考上面的文章進行配置。

#ifconfig     //查看當前已啟用的網卡

#ifconfig -a //查看當前所有網卡,包括沒有啟用的。

# vi /etc/sysconfig/network-scripts/ifcfg-eth0  //如果eth0沒有啟用,編輯些檔案

添加如下配置:
ONBOOT="yes"
BOOTPROTO="dhcp"

#/etc/init.d/network restart  //重新啟用網路設定。 

以上步驟應該可以讓eth0通過Net上網。

如果在安裝過程配置過網卡,則安裝後自動設定。

3、開放80, 3306, 22等連接埠。

#service iptables stop
#/sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT
#/sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT
#/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
#/etc/rc.d/init.d/iptables save
#service iptables restart

4、安裝vsftpd。

Ubuntu安裝參看 ubuntu 10.10 ftp 配置  ubuntu 10.10 安裝vsftpd  等文章,這裡要注意的是

#cat /etc/vsftpd.conf 
可能會提示listen_address=127.0.0.1 需要把地址改為eth0的地址。

#sudo /etc/init.d/vsftpd restart //重啟服務

5、處理亂碼問題。

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.