Syslog is the default log daemon in a Linux system, and the default syslog configuration file is the/etc/syslog.conf file. The program, daemon, and kernel provide log information for accessing the system. Any program that wants to generate log information can generate this information to a syslog interface call.Almost
Logger is used to write logs to the system, he provides a shell command interface to the Syslog system module, and can write a line of information directly to the system log file from the command line, and the default log is saved in/var/log/messages. Logger syntaxlogger [options] [messages]**options (option): * * -d,--udp using datagrams (UDP) instead o
Note that if the user's shell is/bin/sh, it needs to be modified to/bin/bash!! Usermod-s/bin/bash User NameKali Linux System corresponding configuration file is/ETC/BASH.BASHRC, different release version may be differentStep one: VI/ETC/BASHRC added as follows:histfilesize=2000histsize=2000histtimeformat= "%y%m%d-%h%m%s:"Export Histtimeformat#export prompt_command= ' {command=$ (History 1 | {read x y; echo $y;});
Linux remote log rsyslog server and client Installation
The reason for using Rsyslog:1. Prevent system crashes unable to get system log share crash reason, with Rsyslog can transfer log to remote log server2. Using the Rsyslog log can reduce system pressure because using Rsyslog can effectively reduce the system's disk IO3.rsyslog using TCP transmission is very r
Linux Remote Connection Tool-OpenSSH
During our daily server management and maintenance processes, we all need to use the remote connection tool. Today we will summarize the commonly used secure remote connection tool OpenSSH in Linux.
R
Use VNC to implement remote control between LINUX and windows. 1. check whether VNC is installed in linux. by default, the RedHatEnterpriseLinux installer installs the VNC service on the system. [Root @ localhost ~] # Rpm-qa | grepvncvnc-server-4.1.2-9...
Use VNC to implement remote control between
How to configure Nagios Remote Plugin Executor (NRPE) in Linux)
Nagios is one of the most powerful tools for network management. Nagios can monitor the accessibility of remote hosts and the status of running services. But what if we want to monitor anything other than the network service in the remote host? For example
How to configure Nagios Remote Plugin Executor (NRPE) in Linux (1)
Nagios is one of the most powerful tools for network management. Nagios can monitor the accessibility of remote hosts and the status of running services. But what if we want to monitor anything other than the network service in the remote host? For exa
Wu-ftpd is easy to install. In most versions of Linux, the rpm package of wu-ftpd is included. You can specify the mount when installing Linux. If you want to compile the source code on your own, you can also go to the ftp://ftp.wu-ftpd.org to download the latest version of the source code package.
After installation, run the ckconfig command to check whether the installation is correct. You can specify the
Article Title: Use Windows to log on to the remote desktop of a Linux server. 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.
Experiment environment: Redflag
Use JSCH in Java to connect to a remote server and execute linux commands
Sometimes you may need to use code to control the execution of linux commands to implement some functions.
JSCH can be used to solve such problems. The specific code is as follows:
Public class CogradientImgFileManager {private static final Logger
file in Filename2 is the same as the time created in Filename1,It retains the same symbolic link, permission, time stamp, user name, and group name.3. Synchronizing files from the local to the remote server$rsync-avz filename1 [email protected]:/home/ubuntu/filename2The above command synchronizes the local filename1 to the remote 192.168.0.1 host.Note: If the port of the
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
Sometimes you might want to use code to control the execution of Linux commands to implement certain functions.
For this type of problem can be implemented using Jsch, the specific code is as follows:
public class cogradientimgfilemanager{private static final Logger log = Loggerfactory.getlogger (
Cogradientimgfilemanager.class);
private static channelexec channelexec;
private static Session session =
Rg.apache.hadoop.util.NativeCrc32.nativeComputeChunkedSumsByteArray (ii[bi[biiljava/lang/string; JZ) VThis is due to the Hadoop.dll version issue , 2.2 before and after the need for a differentNeed to select the correct version and replace it on Hadoop/bin and C:\windows\system32Question 5Exception in thread "main" JAVA.LANG.UNSATISFIEDLINKERROR:ORG.APACHE.HADOOP.IO.NATIVEIO.NATIVEIO$WINDOWS.ACCESS0 ( Ljava/lang/string;i) ZAtorg.apache.hadoop.io.nativeio.nativeio$windows.access0 (Native Method)
-->
Use software such as x-win32 exceed to display remote Linux desktop settings Test passed on RED HAT 9.0.One server-side setup1 Modify the/etc/x11/xdm/xaccess file, find the line below, and remove the annotation number.# * #any host can get a login windows "2/etc/x11/xdm/xdm-config file, comment on the line below"Display Manager. Requestport 0 "3/etc/x11/gdm/gdm.conf file, in the [XDMCP] section,Change t
Tags: art init com CLI mkdir load input src remoteLog logs are an important part of an indispensable system, and problems with log resolution are a very effective method, and if you can collect logs on a designated server, it is important for the production environment. This article is mainly about remote collection of logs.Prepare the lab environment (turn off selinux and firewalls)——————————————————————————————————Client:[Email protected] ~]# hostna
starts automatically after booting rsync Service 650) this.width=650; "title=" 9.png "src=" Http://s3.51cto.com/wyfs02/M01/70/23/wKioL1WyWlCx8lq_AAA4jgszfZY960.jpg " alt= "Wkiol1wywlcx8lq_aaa4jgszfzy960.jpg"/>Downlink Synchronization test:650) this.width=650; "title=" 10.png "src=" http://s3.51cto.com/wyfs02/M01/70/26/wKiom1WyWLjyDTzgAADFFSvZryE364.jpg "alt=" Wkiom1wywljydtzgaadffsvzrye364.jpg "/>For security reasons, it is best to allow only read-only downstream synchronization for rsync back
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.