linux系统时间的设置
[
2010/11/13 20:44 | by admin ]
2010/11/13 20:44 | by admin ]
linux系统时间的设置
一、设置时区
命令 tzselect
选择 5) Asia
选择 9) China
选择1) east China - Beijing, Guangdong, Shanghai, etc.
选择1) Yes
以上如果不通过tzselect,也可以直接修改
/etc/sysconfig/clock
内容为
ZONE="Asia/Shanghai"
UTC=true
ARC=false
保存即可
二、设置时间自动更新
安装ntpdate,ntpdate使用UDP协议
yum install netdate
加入计划任务
crontab -e
00 */3 * * * ntpdate 210.72.145.44
每3小时更新一次,210.72.145.44 为中国国家时间检验中心IP
如果系统上层UDP协议被封,那么可以使用rdate命令来更新时间,格式如下:
00 */3 * * * rdate -s time-b.nist.gov
一、设置时区
命令 tzselect
选择 5) Asia
选择 9) China
选择1) east China - Beijing, Guangdong, Shanghai, etc.
选择1) Yes
以上如果不通过tzselect,也可以直接修改
/etc/sysconfig/clock
内容为
ZONE="Asia/Shanghai"
UTC=true
ARC=false
保存即可
二、设置时间自动更新
安装ntpdate,ntpdate使用UDP协议
yum install netdate
加入计划任务
crontab -e
00 */3 * * * ntpdate 210.72.145.44
每3小时更新一次,210.72.145.44 为中国国家时间检验中心IP
如果系统上层UDP协议被封,那么可以使用rdate命令来更新时间,格式如下:
00 */3 * * * rdate -s time-b.nist.gov
Centos下安装TWiki教程
[
2010/11/09 19:17 | by admin ]
2010/11/09 19:17 | by admin ]
本内容为原创内容,转载请注明:
本文来自http://blog.gsywx.com
默认约定:服务器环境centos5.5 32位,为了省时间环境使用yum安装
1、首先配置服务器环境,使用yum -y install httpd rcs
2、打开/etc/httpd/conf/httpd.con
查找 AddDefaultCharset UTF-8 改成AddDefaultCharset GB2312
查找:AddHandler cgi-script .cgi 前面的#去掉
Options Indexes FollowSymLinks 修改为Options ExecCGI
AllowOverride None修改为AllowOverride All
重启httpd,service httpd restart
3、下载Twiki
下载地址为:http://twiki.org/ 或http://down.zzbaike.com/download/TWiki-476.html
4、上传解压出来的程序,给网站目录当前用户的可执行权限。
/bin/LocalLib.cfg.txt 改名为/bin/LocalLib.cfg,修改$twikiLibPath = "/absolute/path/to/your/lib";为$twikiLibPath = "/var/www/html/lib";
修改/bin/.htaccess.txt 为/bin/.htaccess
修改root-htaccess.txt为.htaccess
修改/bin/configure为/bin/configure.cgi
5、运行配置文件 http://192.168.0.2/bin/configure.cgi进行安装
如果要支持中文,配置的时候做如下设置:在configure中的Localisation设置需要特别注意,需要选中 {UserInterfaceInternationalisation}、{Languages}{'zh-cn'}{Enabled}、{UseLocale}这几项设置的复选框,并设置{Site}{Locale}为zh_CN.UTF-8,设置{Site} {CharSet}为UTF-8,{Site}{Lang}和{Site}{FullLang}为zh-CN,这样保存设置之后,打开Wiki就会是中文,并且能够正常的使用和编辑中文了。
6、设置好之后,通过bin目录下的view打开Wiki,例如http://192.168.0.2/bin/view
本文来自http://blog.gsywx.com
默认约定:服务器环境centos5.5 32位,为了省时间环境使用yum安装
1、首先配置服务器环境,使用yum -y install httpd rcs
2、打开/etc/httpd/conf/httpd.con
查找 AddDefaultCharset UTF-8 改成AddDefaultCharset GB2312
查找:AddHandler cgi-script .cgi 前面的#去掉
Options Indexes FollowSymLinks 修改为Options ExecCGI
AllowOverride None修改为AllowOverride All
重启httpd,service httpd restart
3、下载Twiki
下载地址为:http://twiki.org/ 或http://down.zzbaike.com/download/TWiki-476.html
4、上传解压出来的程序,给网站目录当前用户的可执行权限。
/bin/LocalLib.cfg.txt 改名为/bin/LocalLib.cfg,修改$twikiLibPath = "/absolute/path/to/your/lib";为$twikiLibPath = "/var/www/html/lib";
修改/bin/.htaccess.txt 为/bin/.htaccess
修改root-htaccess.txt为.htaccess
修改/bin/configure为/bin/configure.cgi
5、运行配置文件 http://192.168.0.2/bin/configure.cgi进行安装
如果要支持中文,配置的时候做如下设置:在configure中的Localisation设置需要特别注意,需要选中 {UserInterfaceInternationalisation}、{Languages}{'zh-cn'}{Enabled}、{UseLocale}这几项设置的复选框,并设置{Site}{Locale}为zh_CN.UTF-8,设置{Site} {CharSet}为UTF-8,{Site}{Lang}和{Site}{FullLang}为zh-CN,这样保存设置之后,打开Wiki就会是中文,并且能够正常的使用和编辑中文了。
6、设置好之后,通过bin目录下的view打开Wiki,例如http://192.168.0.2/bin/view
MSN2009无法在win2003上安装的解决方法
[
2010/11/08 08:58 | by admin ]
2010/11/08 08:58 | by admin ]
去MSN官方下载MSN2009,(这是个在线安装版)下载地址为:
http://www.windowslive.cn/get/
从网上下载ResHacker
用ResHacker 打开MSN9的安装文件,修改 CONFIG 下的 CONFIG0 下的 0
把<os productType="workstation" />改为<os productType="server" />
在"<os version="vista" condition="greaterthanorequal" /></group>",后面插入以下代码"<group logic="and" name="server"><os version="server2003sp2" condition="greaterthanorequal" /></group>" 然后点编译脚本,保存
或者可以直接复制下面的代码覆盖原来的代码编译脚本后保存
<?xml version="1.0" encoding="utf-8"?><installerConfig version="1"><setting name="language">zh-chs</setting><setting name="buildtype">ship</setting><setting name="CeipDefault">false</setting><setting name="HomepageDefault">true</setting><setting name="SearchDefault">true</setting><setting name="ToolbarDefault">true</setting><setting name="SearchFormCode">IEFM1</setting><setting name="paralleltasks">0</setting><setting name="sku">wlsetup-web.exe</setting><applications><application id="messenger"><launch>true</launch></application><application id="familysafety"><launch>true</launch></application></applications><ui><level>standard</level></ui><rule name="IsValidOs" logic="or"><group logic="and" name="vista+"><os version="vista" condition="greaterthanorequal" /></group><group logic="and" name="server"><os version="server2003sp2" condition="greaterthanorequal" /></group><group logic="and" name="xpsp2"><os version="xp" servicePack="2" condition="greaterthanorequal" /><os version="vista" condition="lessthan" /><os productType="server" /><os cpu="i386" /></group></rule><rule name="IsValidMsi" logic="or"><group logic="and" name="vista"><os version="vista" condition="greaterthanorequal" /><true /></group><group logic="and" name="xpsp2"><os version="xp" servicePack="2" condition="greaterthanorequal" /><fileVersion path="CSIDL_SYSTEM" file="msi.dll" version="3.1.0.0" condition="greaterthanorequal" /></group></rule></installerConfig>
http://www.windowslive.cn/get/
从网上下载ResHacker
用ResHacker 打开MSN9的安装文件,修改 CONFIG 下的 CONFIG0 下的 0
把<os productType="workstation" />改为<os productType="server" />
在"<os version="vista" condition="greaterthanorequal" /></group>",后面插入以下代码"<group logic="and" name="server"><os version="server2003sp2" condition="greaterthanorequal" /></group>" 然后点编译脚本,保存
或者可以直接复制下面的代码覆盖原来的代码编译脚本后保存
<?xml version="1.0" encoding="utf-8"?><installerConfig version="1"><setting name="language">zh-chs</setting><setting name="buildtype">ship</setting><setting name="CeipDefault">false</setting><setting name="HomepageDefault">true</setting><setting name="SearchDefault">true</setting><setting name="ToolbarDefault">true</setting><setting name="SearchFormCode">IEFM1</setting><setting name="paralleltasks">0</setting><setting name="sku">wlsetup-web.exe</setting><applications><application id="messenger"><launch>true</launch></application><application id="familysafety"><launch>true</launch></application></applications><ui><level>standard</level></ui><rule name="IsValidOs" logic="or"><group logic="and" name="vista+"><os version="vista" condition="greaterthanorequal" /></group><group logic="and" name="server"><os version="server2003sp2" condition="greaterthanorequal" /></group><group logic="and" name="xpsp2"><os version="xp" servicePack="2" condition="greaterthanorequal" /><os version="vista" condition="lessthan" /><os productType="server" /><os cpu="i386" /></group></rule><rule name="IsValidMsi" logic="or"><group logic="and" name="vista"><os version="vista" condition="greaterthanorequal" /><true /></group><group logic="and" name="xpsp2"><os version="xp" servicePack="2" condition="greaterthanorequal" /><fileVersion path="CSIDL_SYSTEM" file="msi.dll" version="3.1.0.0" condition="greaterthanorequal" /></group></rule></installerConfig>



