Linux下用rpm包搭建Lamp及网页管理mysql2013-07-01Lamp(rpm)安装:一:编辑本地yum用于安装软件包:[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

二:安装http服务器:[root@localhost Server]# yum install httpd -y #使用yum安装http服务,-y表示取消交互[root@localhost Server]# service httpd start #启动http[root@localhost Server]# chkconfig httpd on #开机自动启动http三:安装mysql数据库:[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服务器[root@localhost Server]# service mysqld start #启动mysql服务[root@localhost Server]# chkconfig mysqld on #开机自动启动mysql[root@localhost Server]# netstat -tupln |less #分页查看端口