LAMP搭建

命令代碼(附加兩張截圖)
1 cd /etc/yum.repos.d
2 vi dvd.repo
3 cat /etc/hosts
4 cat /etc/hostname
5 vi /etc/hostname
6 hostname
7 login
8 vi /etc/hosts
9 ping pai
10 ls /opt
11 mkdir /opt/dvd
12 ls /opt
13 mount /dev/sr0 /opt/dvd
14 ls /opt/dvd
15 cd /etc/yum.repos.d
16 vi dvd.repo
17 yum clean all
18 yum list
19 iptables -F
20 iptables -X
21 iptables -L
22 setenforce 0
23 cd
24 yum install httpd httpd-devel mariadb-server mariadb-devel php php-mysql php-devel
25 systemctl restart {httpd,mariadb}
26 systemctl status httpd
27 systemctl status mariadb
28 mysqladmin -u root password 000000
29 mysql -uroot -p000000
30 ss -tnmlp | grep mysql
31 uname -r
32 ss -tnmlp | grep httpd
33 cd var/wwww/html/
34 cd var/www/html/
35 cd /var/www/html/
36 pwd
37 ls
38 mv /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/welcome.confbak
39 ll /etc/httpd/conf.d
40 cd /var/www/html/
41 ls
42 cat /etc/httpd/conf/httpd.conf
43 pwd
44 vi index.php
45 mv /var/www/html/index.php /mnt/
46 ls /var/www/html/
47 cd
48 ls
49 yum install unzip
50 unzip Discuz-X3.1-SC-UTF8.zip -d /var/www/html/
51 unzip Discuz_X3.1_SC_UTF8.zip -d /var/www/html/
52 cd /var/www/html/
53 ls
54 cd upload
55 cp -rf /var/www/html
56 cp -rf
/var/www/html
57 cd /var/www/html/
58 ls
59 mysql -uroot -p
60 chown -R apache.apache /var/www/html

LAMP搭建
LAMP搭建
在瀏覽器輸入 IP地址 打開
LAMP搭建
安裝成功

登錄

LAMP搭建
結束

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章