一、思路以及摘要
思路
二、网络aliyun设置
略(参考前面基础知识)
三、下载四个安装包和一个压缩文件并且解压
[root@redhat yum.repos.d]# yum install -y httpd php php-mysql mariadb-server #下载四个安装包
[root@redhat ~]# curl -O https://cn.wordpress.org/wordpress-4.8-zh_CN.tar.gz # 退回root路径,下载wordoress,
[root@redhat ~]# tar -zxvf wordpress-4.8-zh_CN.tar.gz -C /var/www/html #把他解压放到html路径,
[root@redhat ~]# ll /var/www/html # 查看解压结果
total 4
drwxr-xr-x 5 nobody nfsnobody 4096 Jul 23 2017 wordpress
四、给权限并且设置服务自启动
[root@redhat ~]# chmod 777 /var/www/html/wordpress #权限放开
[root@redhat ~]# ll /var/www/html
total 4
drwxrwxrwx 5 nobody nfsnobody 4096 Jul 23 2017 wordpress
[root@redhat ~]# systemctl start mariadb #启动服务
[root@redhat ~]# systemctl enable mariadb #设置开机自启
[root@redhat ~]# systemctl start httpd #启动服务
[root@redhat ~]# systemctl enable httpd #设置开机自启
五、mysql的远程二设置(端口放行,本地修改访问权限)
[root@redhat ~]# mysql #进入mysql
MariaDB [(none)]> create database wordpress; #创建新数据库
MariaDB [(none)]> grant all on wordpress.* to root@'%'; #开启远程访问权限