Qui*_*Par 5 linux centos logwatch perl timezone
我尝试在以下位置运行 logwatch
[root@machine cron.daily]# ./0logwatch
ERROR: Date::Manip unable to determine TimeZone.
Execute the following command in a shell prompt:
perldoc Date::Manip
The section titled TIMEZONES describes valid TimeZones
and where they can be defined.
Run Code Online (Sandbox Code Playgroud)
我的日期如下
root@machine cron.daily]# date
Thu Aug 23 06:25:21 GMT 2012
Run Code Online (Sandbox Code Playgroud)
现在根据各种论坛中的详细信息,我尝试通过设置来解决此问题
/etc/timezone to “+0800”
Run Code Online (Sandbox Code Playgroud)
但它没有用
我的/etc/localtime指向/usr/share/zoneinfo/GMT 并由傀儡管理
我该如何解决这个问题?我仍然希望我所有的机器都在 GMT 时区。
编辑:
可悲的是,
这两个更改都不起作用:
[root@machine cron.daily]# cat /etc/TIMEZONE
UTC
Run Code Online (Sandbox Code Playgroud)
广达的
[root@machine cron.daily]# cat ~/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export TZ=GMT
export PATH
[root@machine cron.daily]# source ~/.bash_profile
[root@machine cron.daily]# ./0logwatch
ERROR: Date::Manip unable to determine TimeZone.
Execute the following command in a shell prompt:
perldoc Date::Manip
The section titled TIMEZONES describes valid TimeZones
and where they can be defined.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2927 次 |
| 最近记录: |