08host 发表于 2010-12-9 21:51:48

===SP服务器discuz安装好登陆用户自动变为游客的解决办法.....

今天客户的服务器碰到一个问题,discuz安装好能用,可是当登陆admin帐号后却自动又变回未登陆状态了,跟客户一起找出了问题所在,原来是服务器的时间与正常时间相差太大,
于是根据网上的教程把系统时间和硬件时间改了下 就解决了,这里post出具体方法供大家参考。
1.先查看系统时间date#看下是不是跟正常时间差别很大
2.设置系统时间date --set=“12/09/2010 10:19:01"#(月/日/年 时:分:秒)
3.同步硬件时间hwclock --systohc4.时区的设置# tzselect

Please identify a location so that time zone rules can be set correctly.

Please select a continent or ocean.

1) Africa

2) Americas

3) Antarctica

4) Arctic Ocean

5) Asia

6) Atlantic Ocean

7) Australia

8) Europe

9) Indian Ocean

10) Pacific Ocean

11) none - I want to specify the time zone using the Posix TZ format.

#? 输入5,亚洲
Please select a country.

1) Afghanistan 18) Israel 35) Palestine

2) armenia 19) Japan 36) Philippines

3) Azerbaijan 20) Jordan 37) Qatar

4) Bahrain 21) Kazakhstan 38) Russia

5) Bangladesh 22) Korea (North) 39) Saudi Arabia

6) Bhutan 23) Korea (South) 40) Singapore

7) Brunei 24) Kuwait 41) Sri Lanka

8) Cambodia 25) Kyrgyzstan 42) Syria

9) China 26) Laos 43) Taiwan

10) Cyprus 27) Lebanon 44) Tajikistan

11) East Timor 28) Macau 45) Thailand

12) Georgia 29) Malaysia 46) Turkmenistan

13) Hong Kong 30) Mongolia 47) United Arab Emirates

14) India 31) Myanmar (Burma) 48) Uzbekistan

15) Indonesia 32) Nepal 49) Vietnam

16) Iran 33) Oman 50) Yemen

17) Iraq 34) Pakistan

#? 输入9,中国

Please select one of the following time zone regions.

1) east China - Beijing, Guangdong, Shanghai, etc.

2) Heilongjiang

3) central China - Gansu, Guizhou, Sichuan, Yunnan, etc.

4) Tibet &most of Xinjiang Uyghur

5) southwest Xinjiang Uyghur

#? 输入1,北京时间

The following information has been given:

China

east China - Beijing, Guangdong, Shanghai, etc.

Therefore TZ='Asia/Shanghai' will be used.

Local time is now: Fri Jul 7 10:32:18 CST 2006.

Universal Time is now: Fri Jul 7 02:32:18 UTC 2006.

Is the above information OK?

1) Yes

2) No

#? 输入1,确认如果不用tzselect命令,可以修改文件变更时区。# vi /etc/sysconfig/clock

ZONE=Asia/Shanghai(查/usr/share/zoneinfo下面的文件)

UTC=false

ARC=false

# rm /etc/localtime

# ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime重新启动即可。

不知道有没有错,感谢国家感谢党 感谢百度 感谢网友!

serverpoint 发表于 2010-12-10 13:16:30

polar 发表于 2010-12-10 22:16:29

直接 ntpdate us.pool.ntp.org更方便

serverpoint 发表于 2010-12-20 12:26:46

08host 发表于 2010-12-20 15:47:29

回复 3# 的帖子

没试过。。

okyok 发表于 2010-12-22 19:57:51

我的怎么不会

Host.HowPick 发表于 2010-12-23 18:28:49

你感谢了很多八杆子打不到的人啊。
C大呢?
页: [1]
查看完整版本: ===SP服务器discuz安装好登陆用户自动变为游客的解决办法.....