修改主机名
Hostname openstack-001
Hostname
Login
修改本地域名解析
Vi /etc/hosts
最后一行添加
192.168.1.56 openstack-001
Clear
Ping openstack-001
Ls /opt/
查看
配置文件
Vi dvd.repo
列出仓库内容
关闭防火墙
Iptables -F
Iptables -X
Iptables -L查看
修改SELINUX
修改SELINUX
修改enforcing改为disabled
# yum install httpd httpd-devel mariadb-server mariadb-devel php php-mysql php-devel -y
# systemctl start {httpd,mariadb}
# systemctl status {httpd,mariadb}
[root@chandao ~]# systemctl start {httpd,mariadb}
[root@chandao ~]#
[root@chandao ~]# systemctl status {httpd,mariadb}
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled)
Active: active (running) since Mon -- :: CST; 2min 13s ago
Docs: man:httpd()
man:apachectl()
Main PID: (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
├─ /usr/sbin/httpd -DFOREGROUND
└─ /usr/sbin/httpd -DFOREGROUND Jul :: chandao systemd[]: Starting The Apache HTTP Server...
Jul :: chandao httpd[]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.2.228. Set the 'ServerName' directive globally to suppress this message
Jul :: chandao systemd[]: Started The Apache HTTP Server. ● mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled)
Active: active (running) since Mon -- :: CST; 2min 9s ago
Process: ExecStartPost=/usr/libexec/mariadb-wait-ready $MAINPID (code=exited, status=/SUCCESS)
Process: ExecStartPre=/usr/libexec/mariadb-prepare-db-dir %n (code=exited, status=/SUCCESS)
Main PID: (mysqld_safe)
CGroup: /system.slice/mariadb.service
├─ /bin/sh /usr/bin/mysqld_safe --basedir=/usr
└─ /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --log-error=/var/log/mariadb/mariadb.log --pid-file=/var/run/mariadb/mariadb.pid --socket=/va... Jul :: chandao mariadb-prepare-db-dir[]: MySQL manual for more instructions.
Jul :: chandao mariadb-prepare-db-dir[]: Please report any problems at http://mariadb.org/jira
Jul :: chandao mariadb-prepare-db-dir[]: The latest information about MariaDB is available at http://mariadb.org/.
Jul :: chandao mariadb-prepare-db-dir[]: You can find additional information about the MySQL part at:
Jul :: chandao mariadb-prepare-db-dir[]: http://dev.mysql.com
Jul :: chandao mariadb-prepare-db-dir[]: Consider joining MariaDB's strong and vibrant community:
Jul :: chandao mariadb-prepare-db-dir[]: https://mariadb.org/get-involved/
Jul :: chandao mysqld_safe[]: :: mysqld_safe Logging to '/var/log/mariadb/mariadb.log'.
Jul :: chandao mysqld_safe[]: :: mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
Jul :: chandao systemd[]: Started MariaDB database server.
[root@chandao ~]#
设置MySQL密码
登录
Exit退出
查看MySQL的端口号
# ss -tnmlp | grep mysql
查看httpd端口
# ss -tnmlp | grep httpd
# mv /etc/httpd/conf.d/welcome.conf /etc/httpd/conf.d/welcome.conf.bak
http只能传输文体字段,text,视频或者支持远程
查看是否支持以PHP的后缀名
上传文件
安装unzip(有就不用安)
解压
查看
cp -rfv
查看确认
进入MySQL
必须以分号结尾
创建数据库
查看
修改设置discuz数据库
刷新一下
Exit退出
再次进入数据库
查看一下数据库
Show databases;
改权限
进入MySQL查看一下