wordpress的安装与使用

一、配置nginx环境

1.安装wget

#yum -y install wget
#mkdir /nginx
#cd /nginx
#wget http://nginx.org/download/nginx-1.11.6.tar.gz
#tar -zxvf nginx-1.11.6.tar.gz
#cd nginx-1.11.6
#yum -y install openssl openssl-devel
#yum install gcc-c++ -y
#./configure
#make &&make install
#cd /usr/local/nginx/sbin
#./nginx
如果出现如下错误,修改nginx.conf的端口号为7788
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
#cd ..
#cd conf
vi nginx.conf
image.png
#cd ..
#cd sbin
#./nginx

你可能感兴趣的:(wordpress的安装与使用)