标签:.gz 密码 near border 站点 min 0.00 text systemctl
1 [root@imxhy ~]# cp /usr/share/doc/httpd-2.4.6/httpd-vhosts.conf /etc/httpd/conf.d/vhosts.conf 2 [root@imxhy conf.d]# vi vhosts.conf 3 <VirtualHost *:80> 4 ServerAdmin x120952576@126.com #管理者邮箱 5 DocumentRoot "/var/www/html/wordpress" #主目录 6 ServerName imxhy.cn #域名 7 ServerAlias www.imxhy.com 8 ErrorLog "/var/log/httpd/imxhy_error" 9 CustomLog "/var/log/httpd/imxhy_access" common 10 </VirtualHost>
1 [root@imxhy conf.d]# mysql_secure_installation #建议设置相关安全性 2 MariaDB [(none)]> create databases wordpress; 3 ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ‘databases wordpress‘ at line 1 4 MariaDB [(none)]> 5 MariaDB [(none)]> 6 MariaDB [(none)]> create database wordpress; #创建一个新的数据库WordPress 7 Query OK, 1 row affected (0.00 sec) 8 MariaDB [(none)]> grant all privileges on *.* to mysql@‘localhost‘ identified by ‘x7374521*‘; #新建最高权限的管理账户mysql 9 Query OK, 0 rows affected (0.00 sec) 10 MariaDB [(none)]> grant all privileges on wordpress.* to xhy@‘localhost‘ identified by ‘x120952576‘; #新建对WordPress具有所有权限的账户xhy 11 Query OK, 0 rows affected (0.00 sec) 12 MariaDB [(none)]> flush privileges; #刷新权限 13 Query OK, 0 rows affected (0.00 sec)
1 [root@imxhy ~]# chown -R apache /var/www/html/wordpress/ 2 [root@imxhy ~]# systemctl restart httpd.service
标签:.gz 密码 near border 站点 min 0.00 text systemctl
原文地址:https://www.cnblogs.com/itzgr/p/9962540.html