php项目安装器,php服务器环境安装及项目搭建
2安裝運行環境及搭建項目
2.1安裝apache及測試
1)安裝apache
yum install httpd
啟動apache
systemctl start httpd.service
查看運行狀態
systemctl status httpd.service
2)編輯測試頁面
echo “xingming”>/var/www/html/index.html
3)打開瀏覽器輸入公網ip地址,結果如下
2.2安裝MySQL
1)安裝mysql
yum install mariadb-server mariadb
systemctl start mariadb???? //運行
systemctl status mariadb??? //查看運行狀態
#?mysql -u root -p????? //登錄mysql
Enter password: 【輸入原來的密碼】 ??//密碼默認為空
mysql>usemysql;
2)修改密碼
mysql>?update user setpassword=passworD("test") where user=‘root‘;
mysql>?flush privileges;
mysql>?exit;
3)通過sql語句創建數據庫,創建表,插入數據
2.3安裝php環境
安裝php
yum install php php-mysql
重新啟動apache
systemctl restart httpd.service
3項目上傳
將開發的項目傳到服務器上
創建并修改《項目名》權限寫的權限
chmod -R 777 項目名
運行結果
原文:https://www.cnblogs.com/youqc/p/10277148.html
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的php项目安装器,php服务器环境安装及项目搭建的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 如何 循环 字母 php,PHP-ph
- 下一篇: php .htaccess 的作用,ph