Linux下用rpm包搭建Lamp及网页管理mysql
作者:Aliot
发布时间:2017-07-02
评论:0
阅读:0
Linux下用rpm包搭建Lamp及网页管理mysql
时间:2013-07-01
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 #分页查看端口
![]()