准备
- 主机:阿里云国际轻量硅谷
- 系统:CentOS 7.3
- 环境:lnmp1.5(Nginx 1.15.12+MySQL 5.5.60+PHP 7.2.18)
服务器安装bbrplus
在vps里依次输入下列代码进行安装
1 2 3 | wget https://github.com/cx9208/bbrplus/raw/master/ok_bbrplus_centos.sh chmod +x ok_bbrplus_centos.sh ./ok_bbrplus_centos.sh |
安装后,执行uname -r,显示4.14.89则切换内核成功,执行lsmod | grep bbr,显示有bbrplus则开启成功。
服务器安装lnmp
在vps中依次输入下列代码安装
1 2 3 4 5 6 | screen -S lnmp #如果提示screen: command not found 命令不存在可以执行:yum install screen 或 apt-get install screen安装 wget http://soft.vpser.net/lnmp/lnmp1.5.tar.gz -cO lnmp1.5.tar.gz tar zxf lnmp1.5.tar.gz cd lnmp1.5 ./install.sh lnmp |
创建站点,上传wordpress程序
- 在vps中输入lnmp vhost add,然后按提示添加站点。
- 进入网站根目录,下载wordpress程序。
1wget https://cn.wordpress.org/latest-zh_CN.zip
- 下载完成后,输入unzip latest-zh_CN.zip解压,得到wordpress文件夹。
- 修改wordpress文件权限为www。
1chown -R www:www /home/wwwroot/网站/wordpress
- 在网站二级目录wordpress文件夹内输入mv * ../,将该目录内所有文件全部移动至上级目录。
- 在网站根目录内输入ls -al查看网站程序文件权限是否为www。
至此,wp博客创建完成。
Comments | NOTHING