时间:2023-05-31 22:57:02 | 来源:网站运营
时间:2023-05-31 22:57:02 来源:网站运营
LAMP平台的搭建详解:一、LAMP的定义cat /etc/redhat-release apachectl -v 3.检查是否安装过mysqlservice mydqld start yum remove mysql rm -f /etc/my.cnf 卸载apacherpm -qa|grep httpd 如果是新的系统或从未安装过,则省略yum -y install httpd systemctl start httpd.service (c)设置apache服务开机启动systemctl enable httpd.service (d)检测是否安装成功yum -y install php systemctl restart httpd 或者 systemctl res (c)检测是否安装成功cd /var/www/html touch phpinfo-test.php vi phpinfo-test.php 在编辑中输入代码<?php echo "<title>Phpinfo Test.php</title>"; phpinfo() ?> 在linux中浏览器中输入http://localhost/phpinfo-test.phpyum -y install mariadb-service mariadb yum install mariadb-server.x86_64 -y (b)开启MySQL服务systemctl start mariadb.service (c)设置开机启动MySQL服务systemctl enable mariadb.service (d)设置root帐户的密码mysql_secure_installation 输入后按Enter键后输入新的密码,再按y和Enter一直往下就可以了mysql -uroot -p 4.安装mysql和PHP的连接工具yum -y install php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc php-devel systemctl restart httpd.service 这样LAMP平台就搭建好啦!关键词:平台