How to Use Xshell to view tomcat real-time logs with Chinese garbled characters in linux
When you use Xshell to view tomcat real-time logs, Chinese characters are garbled, but the Chinese characters in the log files are not garbled. There may be two reasons. The i18n of the system may not support Chinese characters, or the Xshell encoding format does not support
Remote Log Configuration1. Service-side(1) Edit log file vim/etc/rsyslog.confRestart Log service/etc/init.d/rsyslog restart(2) Recursively search for all files containing fromhost information under/usr/share/doc/rsyslog-5.8.10/Grep-r fromhost/usr/share/doc/rsyslog-5.8.10/(3) Create a name in the directory where you stored your log files and copy the path IP pasted over vim/etc/rsyslog.d/feiyu.conf(If you are managing multiple server logs, you can cont
CatTail-fLog file description /var/log/message system startup information and error logs are one of the most commonly used logs in red Hat Linux/var/log/secure Security-related log information/var/log/maillog message-related log information/var/log /cron log information related to timed tasks/var/log/spooler log messages related to UUCP and news devices/var/log/b
CatTail-fLog file description1 /var/log/message and error log after system startup is one of the most commonly used logs in red Hat Linux 2 /var/ log/Secure Security-related log information 3 /var/log/maillog Message-related log information 4 / var/log/cron log information related to timed tasks 5 /var/log/Spooler Log information related to UUCP and news devices 6 /varSystem:1 # uname-a # view kernel/
Log file description
/var/log/message information and error logs after system startup is one of the most commonly used logs in red Hat Linux
/var/log/secure Security-related log information
/var/log/maillogMail-related log information/var/log/cron log information related to
scheduled Tasks
/var/log/spooler log information related to UUCP and news devices
/va
Linux Oracle deletes archive logs, and linuxoracle
Oracle reported this error today: ORA-00257
Check that the archive logs of Oracle are full. Solution: Two
1. Increase the archive log size. 2. Delete useless archive logs. (select this solution)
In Linux:
Delete archive
Linux application Summary (1): automatically delete logs n days ago linux is a system that can automatically generate files, logs, emails, backups, and so on. Although hard disks are cheap now, we can have a lot of hard disk space to waste these files, so that the system can clean up unnecessary files at regular interv
systems. It is capable of receiving log records from remote systems, processing records containing multiple systems in a single log, and filing them as files. You can view all the records in one place without having to connect to multiple systems at the same time. Syslog uses UDP as the transport protocol, through the destination port 514, all the router's log management configuration to the server installed Syslog software system, the SYSLOG server automatically receive log data and write to t
Article title: Putty automatically logs on to a remote Linux host. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Due to work requirements, it is often difficult to access remote U
Some training logs for Linux-Linux Enterprise Application-Linux server application information. For more information, see below. 1. view the shares on the server,
Showmount-e 192.168.0.254 or smbclient-L 192.168.0.254
2. Mount the sharing on the server to the local device.
Mount-t nfs 192.168.0.254:/var/ftp/pub/mnt/
Logtamper-v1.0 tool to modify linux logs-Linux Enterprise Application-Linux server application information, the following is read details. Put it out, so that you don't have to ask me for it. The function should be better than the log clearing tool on the Internet. It is modified, not purely deleted or cleared Based on
Article Title: newbie School: preparation of vsftpd in Linux system logs. Linux is a technology channel of the IT lab in China. Some basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open-source systems/etc/ftpusers are set to restrict certain users on the sy
time.Oracle Orainventory[[email protected]app]# DateFri Jul 15:40:39 CST 2014[email protected] ~]# #到了时间 look at it already.Liuhezi Oracle Orainventory[email protected] ~]# ATQ #查看at工作调度1 2014-07-26 15:19 a root[email protected] ~]# ATRM 1 #删除at工作调度[email protected] ~]# ATQ(2) TheBatch command makes the system empty when the background task, he will be the CPU workload is less than 0.8, only when you want to perform your work tasks. usage is similar to at user. yesterday crontab in the synchron
How to view online logs in Linux generally, most linux servers are remotely logged on and managed through the ssh client. After logging on to the linux host through ssh,How can we quickly interact with files on the local machine, that is, uploading and downloading files to the server and the local machine;Two commands
In the actual O M environment, operating system OS maintenance is required. The application system is a whole, not only the application itself and the database server running on the application server, but also the operating system, network, storage and even hardware. Only by ensuring the overall monitoring of the application system can the most stable operation performance be achieved.In most cases, the operating system in our environment can run continuously without causing major problems. On
/nginx.pid 'Endscript}Template three (we want to have the old log file named after the creation date, which can be achieved by adding Dateext Changshu. )/var/log/log-file {MonthlyRotate 5DateextCreate 644 root rootPostrotate/usr/bin/killall-hup RSYSLOGDEndscriptDescriptionNotifempty: If it is an empty file, do not dump it.Daily: Log files are dumped once a day.Rotate 5; The dump file is divided into 5 parts.Postrotate/endscript: script executed after the log dump. This is used to let Nginx regen
Linux proftpd log query and analysis company uses FTP to receive the customer's EDI order. Recently, the customer said that the order has been sent to us through FTP a long time ago. Why has it not been delivered yet, however, after repeated checks, I did not find the order on FTP, but the customer insisted that the order had been uploaded. It seems that to solve the dispute, only the operation logs on FTP
For Linux user operation records, the command history is generally used to view historical records. However, if important data is deleted due to misoperations, The history Command will not be useful. So how should we implement the historical operation records? In fact, we can log on to the IP address to record the historical operations of all user logon operations! The specific operation is to add the following script code at the end of the/etc/profil
The shell version is troublesome. I am not familiar with the PHP version for linux conversion:
The code is as follows:
/**
* Delete logs 7 days ago
* @ Param $ logPath
*/
Function del7daysAgoLog ($ logPath ){
If (empty ($ logPath) return;
$ Handle = opendir ($ logPath );
While ($ file = readdir ($ handle ))! = False ){
$ Pos = strpos ($ file, '. log ');
If ($ pos! = False (strtotime ("-1 week
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.