centos怎样使用yum安装lamp
[root@8ca0f44c4202 ~]# yum install httpd-devel httpd mairadb mariadb-devel mariadb-server php php-devel php-mysql -y
[root@8ca0f44c4202 ~]# yum -y install curl curl-devel net-snmp net-snmp-devel perl-DBI mariadb-devel mysql-deve
启动服务
[root@8ca0f44c4202 /]# systemctl start httpd [root@8ca0f44c4202 /]# systemctl start mariadb
测试
[root@8ca0f44c4202 ~]# vi /var/www/html/index.php <?php phpinfo(); ?>
打开页面测试

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。