請選擇 進入手機版 | 繼續訪問電腦版

施勢帆老師的教學網站

 找回密碼
 註冊
搜索
熱搜: 活动 交友 discuz
查看: 105|回復: 0

LAMP

[複製鏈接]
shie 發表於 2020-12-8 14:33:36 | 顯示全部樓層 |閱讀模式
ftp://120.96.56.3

root / 123456

ifconfig ens33 192.168.3.xx

route   add  -net  192.168.3.0  netmask  255.255.255.0  ens33
route  add  default  gw  192.168.3.254
ping www.hinet.net



https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-centos-7

systemctl stop firewalld.service

systemctl disable firewalld.service

yum -y install httpd

systemctl start httpd.service

systemctl enable httpd.service

yum -y install mariadb-server mariadb

systemctl start mariadb

mysql_secure_installation

systemctl enable mariadb.service

yum -y install php php-mysql

systemctl restart httpd.service

https://www.opencli.com/linux/centos-7-install-phpmyadmin

yum install epel-release

yum -y install phpmyadmin

vi /etc/httpd/conf.d/phpMyAdmin.conf
裡面會找到 “Require ip” 及 “Allow from” 的設定,將 127.0.0.1 改成你的 ip,然後重新啟動 Apache:

systemctl restart httpd

cd

wget ftp://120.96.56.3/wordpress-5.5.3-zh_TW.zip

unzip wordpress-5.5.3-zh_TW.zip

mysql -u root -p

create database wordpress;

exit

setenforce 0

mv wordpress /var/www/html

http://192.168.3.xx/wordpress

https://computingforgeeks.com/how-to-install-php-7-3-on-centos-7-fedora/


yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm

yum -y install epel-release yum-utils

yum-config-manager --disable remi-php54

yum-config-manager --enable remi-php73

yum -y install php php-cli php-fpm php-mysqlnd php-zip php-devel php-gd php-mcrypt php-mbstring php-curl php-xml php-pear php-bcmath php-json

php -v

yum install php-mysql

yum install php-mysqlnd

chown -R apache.apache /var/www/html

systemctl restart httpd.service

http://192.168.3.xx/wordpress














您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

小黑屋|手机版|Archiver|施勢帆老師的教學網站  

GMT+8, 2021-2-26 17:46 , Processed in 0.078206 second(s), 17 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表