程序员反映在sun.xmnn.cn(192.168.96.55)不能利用PHP的mail()函数发送邮件。已解决。

设置步骤如下,

Read the rest of this entry

, ,

故障现象

访问页面出现(502)bad gateway,或者(403)Access Forbid错误.

部分错误日志

Apr 15 00:30:41 sqweb2 kernel: lockd: server 192.168.96.50 not responding, timed out

Apr 15 00:31:21 sqweb2 last message repeated 10 times

Apr 15 00:32:31 sqweb2 last message repeated 21 times

Apr 15 00:33:41 sqweb2 last message repeated 17 times

主交换 CPU在10%左右,MEM在20-30%之间波动

Read the rest of this entry

,

1.IIS7.5启用目录列表

常用于FTP站点,范例:http://ftp.99dev.net

Scenario:  Let’s say I want to enable directory browsing for a special directory on my site, how do I enable that?  It’s as easy as:

1) create (or edit) the web.config file in your site’s home directory

2) edit it as follows:

Read the rest of this entry

一些LAMP论坛,经常遇到这样的问题,页面显示时间和本地实际时间相差8小时或者更多

1.修改系统市区设置

cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

2.使用ntpdate同步服务器时间

ntpdate time.api.bz

Read the rest of this entry

1.系统环境配置

配置中文支持
rpm -ivh fonts-chinese-3.02-12.el5.noarch.rpm
rpm -ivh fonts-ISO8859-2-75dpi-1.0-17.1.noarch.rpm

修改Hostname
1文件中的HOSTNAME,改为你希望的名字
2,/etc/hosts文件中,把所有原来机器名修改为新的机器名

清除原服务组件

Read the rest of this entry

, , ,

l WordPress的固定链接设置

eg:http://99dev.net/archives/775

修改nginx的Server Section部分如下

location /
    {
    index index.php index.html;
    if (!-e $request_filename)
    {
    rewrite "^/archives/(.+)$" /index.php?p=$1 last;
    }
    }

修改“WordPress控制面板-设置-固定链接-自定义结构”,如下

/archives/%post_id%

关键字:wordpress nginx rewrite 固定链接 PermaLink

 

|nginx 目录列表配置

location  /  {

    autoindex  on;

}

Read the rest of this entry

1.www目录备份
分别进各个站点的后台,关闭站点,不要再有数据写入。

打包www目录,下载到本机备用。

2.数据库备份

Read the rest of this entry

从风之翼那里得到Vdoing的邀请,把统计代码加到页面了。刚看了统计报告,对于UV会大于IP的结果很疑惑。在DNSpod群里问了达人,解释得很清楚。

PV(访问量):即Page View,即页面浏览量或点击量,用户每次刷新即被计算一次
UV(独立访客):即Unique Visitor,访问您网站的一台电脑客户端为一个访客
IP(指独立IP数):不包含10.0.0.0、172.16.0.0、192.168.0.0三个私有地址段

Read the rest of this entry