Lamp (RPM) Installation:
One: Edit local yum for installing packages:
[Root@localhost ~]# cd/mnt/cdrom/
[Root@localhost ~]# mount/dev/cdrom/mnt/cdrom/
[Root@localhost ~]# cd/mnt/cdrom/server/
[Root@localhost server]# Vim/etc/yum.repos.d/rhel-debuginfo.repo #编辑本地yum
Two: Install HTTP server:
[Root@localhost server]# yum install httpd-y #使用yum安 Install HTTP service,-y indicates canceling interaction
[root@localhost server]# Service httpd start #启动 http
[Root@localhost server]# chkconfig httpd on #开机自动启动http
Third: Install MySQL database:
[Root@localhost server]# yum list all |grep MySQL #查看与mysql相关的安装包
[Root@localhost server]# yum install mysql-y #安装mysql工具包
[Root@localhost server]# yum install mysql-server-y #安装mysql-server Server
[root@localhost server]# service mysqld start #启动mysql服务
[Root@localhost server]# chkconfig mysqld on #开机 start MySQL automatically
[Root@localhost server]# NETSTAT-TUPLN |less #分页查看端口