8 个解决方案
#1
是什么系统 如果是Ubuntu的话 好像变成rsyslog.conf了
https://wiki.ubuntu.com/KarmicKoala/ReleaseNotes
https://wiki.ubuntu.com/KarmicKoala/ReleaseNotes
#2
[root@localhost mysql]# rpm -qf /etc/syslog.conf
sysklogd-1.4.1-44.el5
sysklogd-1.4.1-44.el5
#3
不是Ubuntu呢,也没有rsyslog.conf文件。用的是自己编译的kernel和busybox。
在网上找了个syslog.conf文件例子,手动放到etc下面,修改了log的输出路径为/dev/console,在串口也没有看到log信息,好像没有作用哎。
在网上找了个syslog.conf文件例子,手动放到etc下面,修改了log的输出路径为/dev/console,在串口也没有看到log信息,好像没有作用哎。
#4
例出你的syslog.conf的内容来看一下。 另外syslog这个进程在跑吗?
#5
这是在网上找到的一个例子了。syslogd在跑的,ps中有看到。
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console
# Log anything (except mail) of level info or higher.
# Don’t log private authentication messages!
*.info;mail.none;authpriv.none;cron.none /var/log/messages
# The authpriv file has restricted access.
authpriv.* /var/log/secure
# Log all the mail messages in one place.
mail.* /var/log/maillog
# Log cron stuff
cron.* /var/log/cron
# Everybody gets emergency messages
*.emerg *
# Save news errors of level crit and higher in a special file.
uucp,news.crit /var/log/spooler
# Save boot messages also to boot.log
local7.* /var/log/boot.log
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console
# Log anything (except mail) of level info or higher.
# Don’t log private authentication messages!
*.info;mail.none;authpriv.none;cron.none /var/log/messages
# The authpriv file has restricted access.
authpriv.* /var/log/secure
# Log all the mail messages in one place.
mail.* /var/log/maillog
# Log cron stuff
cron.* /var/log/cron
# Everybody gets emergency messages
*.emerg *
# Save news errors of level crit and higher in a special file.
uucp,news.crit /var/log/spooler
# Save boot messages also to boot.log
local7.* /var/log/boot.log
#6
/var/log/ 路径下只有messages文件,其他的/var/log/secure,/var/log/maillog,/var/log/cron等都不存在
#7
请问楼主此问题解决了吗?
#8
这可能与你安装的syslogd版本有关,有的是通过命令行配置而非配置文件,我的嵌入式设备就是这样,
#syslogd --help
看看你的
#syslogd --help
看看你的
#1
是什么系统 如果是Ubuntu的话 好像变成rsyslog.conf了
https://wiki.ubuntu.com/KarmicKoala/ReleaseNotes
https://wiki.ubuntu.com/KarmicKoala/ReleaseNotes
#2
[root@localhost mysql]# rpm -qf /etc/syslog.conf
sysklogd-1.4.1-44.el5
sysklogd-1.4.1-44.el5
#3
不是Ubuntu呢,也没有rsyslog.conf文件。用的是自己编译的kernel和busybox。
在网上找了个syslog.conf文件例子,手动放到etc下面,修改了log的输出路径为/dev/console,在串口也没有看到log信息,好像没有作用哎。
在网上找了个syslog.conf文件例子,手动放到etc下面,修改了log的输出路径为/dev/console,在串口也没有看到log信息,好像没有作用哎。
#4
例出你的syslog.conf的内容来看一下。 另外syslog这个进程在跑吗?
#5
这是在网上找到的一个例子了。syslogd在跑的,ps中有看到。
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console
# Log anything (except mail) of level info or higher.
# Don’t log private authentication messages!
*.info;mail.none;authpriv.none;cron.none /var/log/messages
# The authpriv file has restricted access.
authpriv.* /var/log/secure
# Log all the mail messages in one place.
mail.* /var/log/maillog
# Log cron stuff
cron.* /var/log/cron
# Everybody gets emergency messages
*.emerg *
# Save news errors of level crit and higher in a special file.
uucp,news.crit /var/log/spooler
# Save boot messages also to boot.log
local7.* /var/log/boot.log
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console
# Log anything (except mail) of level info or higher.
# Don’t log private authentication messages!
*.info;mail.none;authpriv.none;cron.none /var/log/messages
# The authpriv file has restricted access.
authpriv.* /var/log/secure
# Log all the mail messages in one place.
mail.* /var/log/maillog
# Log cron stuff
cron.* /var/log/cron
# Everybody gets emergency messages
*.emerg *
# Save news errors of level crit and higher in a special file.
uucp,news.crit /var/log/spooler
# Save boot messages also to boot.log
local7.* /var/log/boot.log
#6
/var/log/ 路径下只有messages文件,其他的/var/log/secure,/var/log/maillog,/var/log/cron等都不存在
#7
请问楼主此问题解决了吗?
#8
这可能与你安装的syslogd版本有关,有的是通过命令行配置而非配置文件,我的嵌入式设备就是这样,
#syslogd --help
看看你的
#syslogd --help
看看你的