linux-wordpress搭建
linux-wordpress搭建
只要尝试,学习,非常容易,你可以的:centos 7.yum 安装
- #yum install -y unzip zip
- #yum install -y httpd php php-fpm mariadb-server php-mysql php-gd
- #service httpd start
- #service mariadb start
- #service php-fpm start
- # systemctl enable httpd.service
- # systemctl enable mariadb.service
- # systemctl enable php-fpm.service
- wget http://worpress.org/latest.zip
- unzip latest.zip
- yes|cp -rf wordpress/* /var/www/html/
- chown -R apache:apache /var/www/html
- service httpd restart
- find / -name httpd.conf
- vi /etc/httpd/conf/httpd.conf
- :wq :q!
常见问题:
*无法联网的明显表现会有:
1、yum install出现 Error: cannot find a valid baseurl or repo:base
2、ping host会提示unknown host
方法二、
1、打开 vi /etc/resolv.conf,增加 nameserver 8.8.8.8
最后增加2行:
DNS1=8.8.8.8
DNS2=4.2.2.2
2、重启网络: service network restart
方法一、 如果/etc/resolv.conf 为空,使用改方法
1、打开 vi /etc/sysconfig/network-scripts/ifcfg-eth0(每个机子都可能不一样,但格式会是“ifcfg-eth数字”),
把ONBOOT=no,改为ONBOOT=yes
2、重启网络:service network restart
转载请注明来源:linux-wordpress搭建