After startup Centos with root, key in
setup
to start the setup utility
User the network setting to key in all the network info your server required and save it.
After that, edit /etc/sysconfig/network-scripts/ifcfg-eth0.
Find ONBOOT="no"
Change it into ONBOOT="yes"
If you user network manager then chkconfig NetworkManager on or
you use old network service then chkconfig network on
------------------------------------------------------------------------
Install SSH
yum -y install openssh*
after installation complete. start the service
service sshd start
------------------------------------------------------------------------
Install LAMP
yum -y install httpd php php-mysql mysql mysql-server
Set MYSQL start when boot and start now
chkconfig mysqld on
/etc/init.d/mysqld start
Set Apache start when boot and start now
chkconfig httpd on
/etc/init.d/httpd start
After that , double check the firewall setting to make sure ports are opened correctly.
Edit use this command
vi /etc/sysconfig/iptables
After edit , please restart the service again
/etc/init.d/iptables restart
Double check the firewall status
/sbin/iptables -L -n
---------------------------------------------------------
Download Webmin & install (Remarks, please install & start all service for LAMP before install webmin)
wget http://prdownloads.sourceforge.net/webadmin/webmin-1.831-1.noarch.rpm
then install optional dependencies with :
yum -y install perl perl-Net-SSLeay openssl perl-IO-Tty
and then run the command :
rpm -U webmin-1.831-1.noarch.rpm
more details can be find at :
http://www.webmin.com/rpm.html
訂閱:
發佈留言 (Atom)
沒有留言:
發佈留言