1. Use logger to send system notification logs,
[root@Infor-test01 ~]# logger cccccccaaaaaaaadddddddd
The error message is also written to the log,
Modify the type, and modify the permission 777. :
The most important one is the type tag of the file. For example, the httpd process can only run in httpd_t, and /etc/passwd only has type
It can only work for passwd_file_t. If the /var/log/messages file is not of type var_log_t, it will not be able to record logs, etc.
In the SELinux security policy, the type type is modified, which may cause the file to fail to be used normally .
Read More:
- [Solved] Jmeter Error: Error loading results file – see file log
- [Solved] error c101008d: Failed to write the updated manifest to the resource of file
- Cli Write Error: This is related to npm not being able to find a file. [Solved]
- [Solved] Adb Shell Monkey Warning: can‘t create log.txt, Read-only file system
- Cmake Compile opencv error: The system is: Windows – 10.0.19042 – AMD64 (Log File)
- [Solved] Spark Error: ERROR StatusLogger No log4j2 configuration file found
- log4j Error: Please initialize the log4j system properly [How to Solve]
- [Solved] kafka Startup Error: ERROR Shutdown broker because all log dirs in /…/kafka/logs have failed (kafka.log.LogManager)
- [Solved] Kafka Start Log Error: WARN Found a corrupted index file due to requirement failed: Corrupt index found
- Log separation using tool cronlog
- [Solved] Errors encountered when using VS to write opengl code
- Error 1406.Setup cannot write the value Microsoft
- log4j:WARN No appenders could be found for logger (freemarker.cache)
- [Solved] logback log format adjustment error: Failed to create converter for [%M] keyword
- [Solved] Junit.test use error: log4j:WARN No appenders could be found for logger
- Memory write error at 0x100000. MMU section translation fault [How to Solve]
- [Gradle is Stucked in Building Runing] log Error: Timeout waiting to lock journal cache
- MAC-XXL_JOB Error: Failed to create parent directories for [/data/applogs/xxl-job/xxl-job-admin.log
- Buffer I/O Error in /var/log/messages
- [Solved] matlab error: try to write SCRIPT vl_sift is executed as a function