時(shí)間:2023-05-31 22:57:02 | 來源:網(wǎng)站運(yùn)營(yíng)
時(shí)間:2023-05-31 22:57:02 來源:網(wǎng)站運(yùn)營(yíng)
LAMP平臺(tái)的搭建詳解:一、LAMP的定義cat /etc/redhat-release
apachectl -v
3.檢查是否安裝過mysqlservice mydqld start
yum remove mysql rm -f /etc/my.cnf
卸載apacherpm -qa|grep httpd
如果是新的系統(tǒng)或從未安裝過,則省略yum -y install httpd
systemctl start httpd.service
(c)設(shè)置apache服務(wù)開機(jī)啟動(dòng)systemctl enable httpd.service
(d)檢測(cè)是否安裝成功yum -y install php
systemctl restart httpd 或者 systemctl res
(c)檢測(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服務(wù)systemctl start mariadb.service
(c)設(shè)置開機(jī)啟動(dòng)MySQL服務(wù)systemctl enable mariadb.service
(d)設(shè)置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平臺(tái)就搭建好啦!關(guān)鍵詞:平臺(tái)
客戶&案例
營(yíng)銷資訊
關(guān)于我們
客戶&案例
營(yíng)銷資訊
關(guān)于我們
微信公眾號(hào)
版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。