LNMP环境下安装Wordpress
搭好LNMP
cd /usr/local/src
tar zxf latest.gz #解包后会产生 wordpress目录
mv wordpress /usr/local/nginx/html/blog
cd /usr/local/nginx/html/blog
chown -R php-fpm:php-fpm blog
/usr/local/mysql/bin/mysql –uroot #进入mysql命令模式
create database blog; #创建blog数据库
grant all on blog.* to user1@localhost identified by '1222333'; #创建blog数据库的管理用户和密码
在防火墙上添加一条允许本段访问的策略(假设IP段是192.168.1.0/24 主机IP是192.168.1.10)
iptables –I INPUT -s 192.168.1.0/24 --dport 80 -j ACCEPT
在同网段其它机子上访问http://192.168.1.10/blog 根据Wordpress 提示设定相关设置