查看系统环境
#lsb_release -a LSB Version::base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch Distributor ID:CentOS Description:CentOS release 6.5 (Final) Release:6.5 Codename:Final #uname -r 2.6.32-431.el6.x86_64 #python -V Python 2.6.6
关闭防火墙和SELinux
#/etc/init.d/iptables stop #setenforce 0
1、YUM安装LAMP架构
#yum install httpd httpd-devel mysql-server mysql-devel mysql-libs mysql php php-devel php-mysql
2、下载wordpress网站源码
#wget https://cn.wordpress.org/wordpress-4.5.3-zh_CN.tar.gz
3、复制wordpress网站源码到网站发布目录
#tar xf wordpress-4.5.3-zh_CN.tar.gz #cd wordpress #cp -arf * /var/www/html/ #/etc/init.d/httpd restart
4、创建数据库及授权用户
#mysql mysql> create database wordpress; mysql> grant all on wordpress.* to ‘wps‘@‘localhost‘ identified by ‘sa123456‘; mysql> flush privileges;
5、网页安装向导
#firefox http://172.16.30.1 &
图1.1
图1.2
图1.3
图1.4
注:这里的用户名、密码用于管理网站后台
图1.5
注:登录网站后台的用户名和密码
时间: 2024-10-27 11:33:16