电信宽带到期后仍然收费
[
2010/06/04 09:12 | by Totti ]

电信宽带到期后一个月,要注销仍然要被收费,于是我把上海电信投诉到了工信部,没想到啊,问题还真解决了,问题解决了啊,胃口就好,身体倍儿棒,吃嘛嘛香!
大家被电信欺负的话,也到工信部网站投诉一下吧:
http://www.chinatcc.gov.cn:8080/cmsadmin/shouli/shensu.jsp
投诉全文:
大家被电信欺负的话,也到工信部网站投诉一下吧:
http://www.chinatcc.gov.cn:8080/cmsadmin/shouli/shensu.jsp
投诉全文:
引用
我09年办理的预付费包年套餐1M,于2010年4月30日到期,5月1日不能上网。
今天6月1日,因近期要离开上海,向上海电信咨询注销事宜,被告知,需要补交5月1日-30日的月租140元,才能申请注销,拆机。
我认为电信预付费套餐一年,那么合同有效期就是一年,到期后,在我没充值的情况下,不能使用宽带,就不会继续产生费用;而且在5月1日-30日,我也没有接到上海电信任何的电话通知,如果我不注销将会产生新的套餐费用。
对上海电信的这种处理方式,我觉得严重违反中华人民共和国合同法中“平等、自愿原则”的原则,因为合同到期后产生的费用,这是被续费,而且我在这个月也没享受到这个宽带使用。
上海电信网上QQ客服工号:工号******
我要求的处理:
办理注销、拆机业务,不需缴纳不合理的合同有效期之外的月租费用(2010年5月)。
希望工信部给我做主,消除中国电信这个不合理的收费项目!
今天6月1日,因近期要离开上海,向上海电信咨询注销事宜,被告知,需要补交5月1日-30日的月租140元,才能申请注销,拆机。
我认为电信预付费套餐一年,那么合同有效期就是一年,到期后,在我没充值的情况下,不能使用宽带,就不会继续产生费用;而且在5月1日-30日,我也没有接到上海电信任何的电话通知,如果我不注销将会产生新的套餐费用。
对上海电信的这种处理方式,我觉得严重违反中华人民共和国合同法中“平等、自愿原则”的原则,因为合同到期后产生的费用,这是被续费,而且我在这个月也没享受到这个宽带使用。
上海电信网上QQ客服工号:工号******
我要求的处理:
办理注销、拆机业务,不需缴纳不合理的合同有效期之外的月租费用(2010年5月)。
希望工信部给我做主,消除中国电信这个不合理的收费项目!
CentOS上安装DirectAdmin
[
2010/05/05 08:49 | by Totti ]

1:安装相关的组件,或者你可以选择面对装了一半之后跳出来这样一个提示:
cd /usr/local/directadmin/custombuild
./build all d
安装CentOS的相关组件的命令如下:
yum update -y
yum install gcc-c++ gcc automake -y
yum install make
yum install flex
2:CentOS是附带了httpd的unix版本,但是因为directadmin的安装需要干净的系统,所以在装之前要反安装httpd,php,mysql这些web组件。
yum remove httpd* php* mysql* -y
安装:
做完了热身运动,现在可以放心地参照官网的步骤进行DirectAdmin的安装了。
运行命令:
wget http://directadmin.com/setup.sh
获取安装文件
chmod +x setup.sh
更改文件权限+x是一种方式,也可以用控制面板里面用的比较多的755。
./setup.sh
运行安装文件,然后在下面填入相关的信息。其中hostname最好和vps里面的名字一样,我开始就用了vps.810081.com和host.810081.com两个名字,结果收到了提示邮件。
DirectAdmin’s setup has a few more things you need to fill:
Please enter your Client ID :
Please enter your License ID :
Please enter your hostname \(server.domain.com\)
It must be a Fully Qualified Domain Name
Do *not* use a domain you plan on using for the hostname:
eg. don’t use domain.com. Use server.domain.com instead.
Do not enter http:// or www
Enter your hostname (FQDN) :
Is this correct? (y,n) :
Is eth0 your network adaptor with the license IP? (y,n) :
Is xx.xx.xx.xx the IP in your license? (y,n) :
DirectAdmin will now be installed on: Enterprise 5
Is this correct? (must match license) (y,n) :
You now have 2 options for your apache/php setup.
1: customapache: older, more tested. Includes Apache 1.3, php 4 and frontpage.
2: custombuild 1.1: newer, less tested. Includes any Apache version, php 4, 5, or both in cli and/or suphp. Frontpage not available with Apache 2.x.
Post any issues with custombuild to the forum: http://www.directadmin.com/forum/forumdisplay.php?f=61
Enter your choice (1 or 2):
针对vps的特殊设置:
经过这些步骤,directAdmin的安装已经完成了,对还差最后一个步骤。在vps上面还要将Ip,硬盘这些进行一个定位,用vi进入/usr/local /directadmin/conf/directadmin.conf这个文件,将其中的ethernet_dev的值改成
ethernet_dev=venet0:0
可以通过/sbin/ifconfig这个命令来查看自己的硬盘。
善后:
如果忘了DirectAdmin的密码用
locate mysql.ini
来定位并翻看这个文件里面存在着DirectAdmin的密码,据说另外一种方式也可以,不过我试了没有成功了,还是照单列出来了,有兴趣的童鞋自己去试
cd /usr/local/directadmin
./directadmin i
./directadmin p
摘自:http://blog.dengruo.com/200909/572
cd /usr/local/directadmin/custombuild
./build all d
安装CentOS的相关组件的命令如下:
yum update -y
yum install gcc-c++ gcc automake -y
yum install make
yum install flex
2:CentOS是附带了httpd的unix版本,但是因为directadmin的安装需要干净的系统,所以在装之前要反安装httpd,php,mysql这些web组件。
yum remove httpd* php* mysql* -y
安装:
做完了热身运动,现在可以放心地参照官网的步骤进行DirectAdmin的安装了。
运行命令:
wget http://directadmin.com/setup.sh
获取安装文件
chmod +x setup.sh
更改文件权限+x是一种方式,也可以用控制面板里面用的比较多的755。
./setup.sh
运行安装文件,然后在下面填入相关的信息。其中hostname最好和vps里面的名字一样,我开始就用了vps.810081.com和host.810081.com两个名字,结果收到了提示邮件。
DirectAdmin’s setup has a few more things you need to fill:
Please enter your Client ID :
Please enter your License ID :
Please enter your hostname \(server.domain.com\)
It must be a Fully Qualified Domain Name
Do *not* use a domain you plan on using for the hostname:
eg. don’t use domain.com. Use server.domain.com instead.
Do not enter http:// or www
Enter your hostname (FQDN) :
Is this correct? (y,n) :
Is eth0 your network adaptor with the license IP? (y,n) :
Is xx.xx.xx.xx the IP in your license? (y,n) :
DirectAdmin will now be installed on: Enterprise 5
Is this correct? (must match license) (y,n) :
You now have 2 options for your apache/php setup.
1: customapache: older, more tested. Includes Apache 1.3, php 4 and frontpage.
2: custombuild 1.1: newer, less tested. Includes any Apache version, php 4, 5, or both in cli and/or suphp. Frontpage not available with Apache 2.x.
Post any issues with custombuild to the forum: http://www.directadmin.com/forum/forumdisplay.php?f=61
Enter your choice (1 or 2):
针对vps的特殊设置:
经过这些步骤,directAdmin的安装已经完成了,对还差最后一个步骤。在vps上面还要将Ip,硬盘这些进行一个定位,用vi进入/usr/local /directadmin/conf/directadmin.conf这个文件,将其中的ethernet_dev的值改成
ethernet_dev=venet0:0
可以通过/sbin/ifconfig这个命令来查看自己的硬盘。
善后:
如果忘了DirectAdmin的密码用
locate mysql.ini
来定位并翻看这个文件里面存在着DirectAdmin的密码,据说另外一种方式也可以,不过我试了没有成功了,还是照单列出来了,有兴趣的童鞋自己去试
cd /usr/local/directadmin
./directadmin i
./directadmin p
摘自:http://blog.dengruo.com/200909/572
Supesite使用CDN后获取真实IP 办法
[
2010/01/23 17:11 | by Totti ]

include/main.inc.php文件,这部分
替换成
if(getenv('HTTP_CLIENT_IP') && strcasecmp(getenv('HTTP_CLIENT_IP'), 'unknown')) {
$_SGLOBAL['onlineip'] = getenv('HTTP_CLIENT_IP');
} elseif(getenv('HTTP_X_FORWARDED_FOR') && strcasecmp(getenv('HTTP_X_FORWARDED_FOR'), 'unknown')) {
$_SGLOBAL['onlineip'] = getenv('HTTP_X_FORWARDED_FOR');
} elseif(getenv('REMOTE_ADDR') && strcasecmp(getenv('REMOTE_ADDR'), 'unknown')) {
$_SGLOBAL['onlineip'] = getenv('REMOTE_ADDR');
} elseif(isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], 'unknown')) {
$_SGLOBAL['onlineip'] = $_SERVER['REMOTE_ADDR'];
}
$_SGLOBAL['onlineip'] = getenv('HTTP_CLIENT_IP');
} elseif(getenv('HTTP_X_FORWARDED_FOR') && strcasecmp(getenv('HTTP_X_FORWARDED_FOR'), 'unknown')) {
$_SGLOBAL['onlineip'] = getenv('HTTP_X_FORWARDED_FOR');
} elseif(getenv('REMOTE_ADDR') && strcasecmp(getenv('REMOTE_ADDR'), 'unknown')) {
$_SGLOBAL['onlineip'] = getenv('REMOTE_ADDR');
} elseif(isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], 'unknown')) {
$_SGLOBAL['onlineip'] = $_SERVER['REMOTE_ADDR'];
}
替换成
function get_real_ip()
{
$ip=false;
if(!empty($_SERVER["HTTP_CLIENT_IP"]))
{
$ip = $_SERVER["HTTP_CLIENT_IP"];
}
if (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
{
$ips = explode (", ", $_SERVER['HTTP_X_FORWARDED_FOR']);
if ($ip)
{
array_unshift($ips, $ip); $ip = FALSE;
}
for ($i = 0; $i < count($ips); $i++)
{
if (!eregi ("^(10|172\.16|192\.168)\.", $ips[$i]))
{
$ip = $ips[$i];
break;
}
}
}
return ($ip ? $ip : $_SERVER['REMOTE_ADDR']);
}
$_SGLOBAL['onlineip'] = get_real_ip();
{
$ip=false;
if(!empty($_SERVER["HTTP_CLIENT_IP"]))
{
$ip = $_SERVER["HTTP_CLIENT_IP"];
}
if (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))
{
$ips = explode (", ", $_SERVER['HTTP_X_FORWARDED_FOR']);
if ($ip)
{
array_unshift($ips, $ip); $ip = FALSE;
}
for ($i = 0; $i < count($ips); $i++)
{
if (!eregi ("^(10|172\.16|192\.168)\.", $ips[$i]))
{
$ip = $ips[$i];
break;
}
}
}
return ($ip ? $ip : $_SERVER['REMOTE_ADDR']);
}
$_SGLOBAL['onlineip'] = get_real_ip();
Weave新版本的Bug-按钮被隐藏
[
2010/01/01 16:23 | by Totti ]

Directadmin安装 Zend Optimizer
[
2009/12/20 11:16 | by Totti ]

第一步:
Edit /usr/local/directadmin/custombuild/options.conf file and change zend=no to zend=yes.
第二步:
cd /usr/local/directadmin/custombuild
./build update
./build zend
Edit /usr/local/directadmin/custombuild/options.conf file and change zend=no to zend=yes.
第二步:
cd /usr/local/directadmin/custombuild
./build update
./build zend
Centos 常用命令收集
[
2009/12/13 18:01 | by Totti ]

一:查看cpu
more /proc/cpuinfo | grep "model name"
grep "model name" /proc/cpuinfo
如果觉得需要看的更加舒服
grep "model name" /proc/cpuinfo | cut -f2 -d:
more /proc/cpuinfo | grep "model name"
grep "model name" /proc/cpuinfo
如果觉得需要看的更加舒服
grep "model name" /proc/cpuinfo | cut -f2 -d: