2014年8月

Linux有时会出现“You have new mail in /var/spool/mail/root”,很烦人,如何禁止掉呢?
需要修改系统配置文件,告诉系统不要去检查邮箱
echo "unset MAILCHECK">> /etc/profile
其实就是把unset MAILCHECK加到文件/etc/profile 的尾部即可
然后 # source /etc/profile 就没有这个提醒了。

在CentOS 6.5中执行sysctl -p的时候发现输出出现以下错误
[root@iZ23x5agoaqZ ~]# sysctl -p
net.ipv4.ip_forward = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key
error: "net.bridge.bridge-nf-call-iptables" is an unknown key
error: "net.bridge.bridge-nf-call-arptables" is an unknown key

- 阅读剩余部分 -

cookie用法

setcookie(cookie, "cookievalue", time()+3600, "/forum", ".wzh.pw", 1);
名称,必须 值,必须 保存时间 保存路径 保存域 https

$_COOKIE[cookie];
访问 cookie

setcookie("cookie", "");
setcookie("cookie", "value", time()-1 / time());
删除cookie

- 阅读剩余部分 -