LAMP(Linux、Apache HTTP Server、MySQL/Mariadb、PHP/Python)是一種成熟的動態企業網站服務器模式
步驟:
1、快速安裝LAMP平臺組件
yum -y install httpd mariadb-server mariadb php php-mysql

2、確認安裝結果
yum list httpd mariadb-server mariadb php php-mysql

3、啟動LAMP平臺 只需要啟動網站服務、資料庫服務即可 PHP組件由httpd呼叫模塊實作

4、對外開放設定 調整防火墻、SELinux保護策略

[root@localhost ~]# vim /etc/selinux/config

6、測驗安裝結果
在網頁環境下建立PHP環境測驗檔案
[root@localhost ~]# vim /var/www/html/test1.php
<?php
Phpinfo(); #顯示PHP版本資訊
?>
瀏覽器打開地址: http://服務器地址/test.php

轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/235620.html
標籤:其他
上一篇:【centos-硬碟永久掛載】
