clear run history in gnome panel
run "gconf-editor" and find "gnome-panel", modify "history-gnome-run".
run "gconf-editor" and find "gnome-panel", modify "history-gnome-run".
发表者
俞 伟军
位置在:
7/02/2011 03:31:00 PM
0
评论
标签: gconf-editor , gnome-panel , Ubuntu
ntpdate在XEN虚拟机上执行后,不能更新当前时间。
修复方法:
将下面的指令加入/etc/rc.local文件后重启机器就可以,不重启的话手动在命令行中运行此命令。
发表者
俞 伟军
位置在:
7/02/2011 03:26:00 PM
0
评论
rewrite
syntax: rewrite regex replacement flag
default: none
context: server, location, if
This directive changes URI in accordance with the regular expression and the replacement string. Directives are carried out in order of appearance in the configuration file.
Flags make it possible to end the execution of rewrite directives.
If the replacement string begins with http:// then the client will be redirected, and any further rewrite directives are terminated.
Flags can be any of the following:
last - completes processing of rewrite directives, after which searches for corresponding URI and location
break - completes processing of rewrite directives
redirect - returns temporary redirect with code 302; it is used if the substituting line begins with http://
permanent - returns permanent redirect with code 301
Note that if a redirect is relative (has no host part), then when redirecting Nginx uses the "Host" header if the header match name of server_name directive or the first name of server_name directive, if the header does not match or is absent. If no server_name is set, then the local hostname is used. If you want Nginx to always use the "Host" header, you can use a wildcard "*" server_name (but see the restrictions on doing so). Example:
发表者
俞 伟军
位置在:
7/02/2011 03:16:00 PM
0
评论