Linux下用rpm包搭建Lamp及网页管理mysql
Lamp(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 #分页查看端口
(编辑:佛山站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |