1. 程式人生 > >Redhat7.0搭建LAMP個人論壇

Redhat7.0搭建LAMP個人論壇

ima 安裝包 mark 圖片 51cto ice 文件 cfb secure

搭建LAMP

步驟1:
安裝mariadb技術分享圖片技術分享圖片技術分享圖片
systemctl start mariadb.service #啟動MariaDB
systemctl stop mariadb.service #停止MariaDB
systemctl restart mariadb.service #重啟MariaDB
systemctl enable mariadb.service #設置開機啟動
為root賬戶設置密碼
mysql_secure_installation
回車,根據提示輸入Y
輸入2次密碼,回車
根據提示一路輸入Y
最後出現:Thanks for using MySQL!
MySql密碼設置完成,重新啟動 MySQL:

systemctl restart mariadb.service #重啟MariaDB
創建數據庫
技術分享圖片
步驟2:
安裝Apache
技術分享圖片
systemctl start httpd.service #啟動apache
systemctl stop httpd.service #停止apache
systemctl restart httpd.service #重啟apache
systemctl enable httpd.service #設置apache開機啟動
技術分享圖片
步驟3:
安裝PHP
技術分享圖片
安裝PHP組件,使PHP支持 MariaDB
技術分享圖片
systemctl restart mariadb.service #重啟MariaDB
systemctl restart httpd.service #重啟apache
技術分享圖片
測試
技術分享圖片
技術分享圖片
傳入安裝包並解壓
技術分享圖片
修改文件權限
技術分享圖片
成功
技術分享圖片技術分享圖片技術分享圖片技術分享圖片技術分享圖片

Redhat7.0搭建LAMP個人論壇