Ubuntu9.04+Nginx+MySQL5+PHP5+Wordress

The Perfect Setup:

Ubuntu Server 8.04.1 LTS Hardy + EngineX () Web Server built from sources + 5 + 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/

原创文章,转载请注明: 转载自PT Ubuntu Blog

本文链接地址: http://www.ptubuntu.com/2009/04/2168.html

Share

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Verify Code   If you cannot see the CheckCode image,please refresh the page again!