LAMP搭建
2018-09-13 18:28
190 查看
命令代码(附加两张截图)
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
在浏览器输入 IP地址 打开
安装成功
登录
结束
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
在浏览器输入 IP地址 打开
安装成功
登录
结束
相关文章推荐
- linux搭建LAMP
- LAMP环境搭建+iTop安装(实测使用centos7更方便)
- 如何搭建lamp(CentOS7+Apache+MySQL+PHP)环境
- Linux环境配置之LAMP搭建(源码安装)
- 基于fedora16的nagios环境搭建--个人日记(2)--搭建lamp环境
- centos7下lamp环境搭建
- lamp平台搭建
- linux之LAMP架构搭建
- Centos 搭建LAMP
- •搭建LAMP环境及快速部署双网站并实现基于域名的虚拟主机
- Ubuntu下LAMP环境的搭建以及远程连接MySQL数据库
- Fedora下搭建LAMP开发环境
- LAMP 搭建和压力测试
- centos7之lamp环境搭建
- LAMP环境搭建博客
- ubuntun 下面lamp 环境的搭建
- CentOS LAMP环境搭建和测试php与mysql的连接
- LAMP环境搭建实现网站动静分离
- Linux 下 LAMP 环境搭建
- UBUNTU下的LAMP搭建、配置、管理