The Perfect Setup:
Ubuntu Server 8.04.1 LTS Hardy + EngineX (NGINX) Web Server built from sources + MySQL 5 + PHP 5.
(Or LEMP )
测试机器基于256MB VPS slice at SliceHost. Should work for other hardware.
在这机器上安装Ubuntu Server. WordPress 基于 WP Super Cache plugin.
安装 NGinx WEB Server.
这里用户 ‘jsmith’ 替换为你的域名 ‘mydomain.com’.
现在就让我们开始来执行下面的操作!
在服务器Ubuntu Server 要这安装的:
- 登录 root.
- 修改 root password:
#sudo passwd - 添加新用户 yourself:
#adduser jsmith
#visudo - Append this line to end of file (to navigate within ‘vi’ editor to create next line – use these: L, $, a, <ENTER>):
jsmith ALL=(ALL) ALL
保存退出: <ESC>, :wq, <ENTER> - 配置 SSH:
#vi /etc/ssh/sshd_config
修改下面:
Port 22 – 这个设置ssh连接端口,默认值是22.
- Set these to:
PermitRootLogin no 阻止root用户登录
X11Forwarding no
UsePAM no
-设置可以登录的用户:
UseDNS no
AllowUsers jsmith
更多的资料请移到.http://www.mensk.com/webmaster-toolbox/perfect-ubuntu-hardy-nginx-mysql5-php5-wordpress/


