标签:平台 hosts list 家目录 目录 password file 软件 emctl
LAMP:搭建一个网站平台 cd /etc/yum.repos.d/
vi dvd.repo
[dvd=
name=dvd
baseurl=file:///opt/dvd/
gpgkey=0
yum clean all
yum list
4.主机修改
(1) vi /etc/hostname (login:退出连接工具 重新连接 主机名就更改过来了)
(2)DNS域名修改:vi /etc/hosts
ip地址 主机名
cat /etc/hosts(查看域名修改)
(3) ping 主机名
5.防火墙关闭
iptables -F
iptables -X
setenforce 0
6.安装软件包
yum install httpd httpd-devel mariadb-server mariadb-devel php php-mysql php-devel
systemctl status mariadb
13.ss -tnmlp | grep mysql
ss -tnmlp | grep httpd
14.mv /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/welcome.confbak
15.cd /var/www/html
16.vi index.php
<?php
phpinfo()
?>
ls
把discuz的论坛上传到xshll连接工具上
cd:先切换到家目录下
17.mv /var/www/html/index.php /mnt
18.yum install unzip
unzip Discuz_X3.1_SC_UTF8.zip -d /var/www/html
22.cd upload/
23.ls
24.cp -rf* /varwww/html/
25.cd /var/www/html
26.ls
27.mysql -uroot -p
show databases;
create database discuz;
show databases;
greant all on discuz.* to discuz@‘localhost‘ identified by "000000";
flush privileges;
exit
28. mysql -uroot -p
show databases;
use discuz;
show tab;
exit
29.chown apache.apache /var/www/html
30.mysql -uroot -p
show databases:
use discuz;
how tables:
标签:平台 hosts list 家目录 目录 password file 软件 emctl
原文地址:http://blog.51cto.com/13957986/2174956