"Iptemplate" to the This template.
$template iptemplate, "/var/log/%fromhost-ip%.log" * *
rsyslog Daemon and edited its configuration file, we need to restart the daemon.
$ sudo service rsyslog restart
Rsyslog netstat command.
$ sudo netstat-tulpn | grep rsyslog
The output may look like the following:
TCP 0 0 0.0.0.0:514 0.0.0.0:* LISTEN 3267/rsyslogdTCP6 0 0::: 514:::* LISTEN 3267/RSYSLOGDUDP 0 0 0.0.0.0:514 0.0.0.0:* 3267/rsyslogdUDP6 0 0::: 514
The company is using Ubuntu server, with cacti to do the monitoring, through the SNMPD protocol monitoring, but when looking at the system log, SNMPD generated a lot of logs, sometimes to turn a lot of screen, to see system information, this to every day to see the System log Administrator, It was a nightmare. The following methods allow you to turn off SNMPD to the system log file so that the system log lo
In the company school. There is often a need to set up an Ubuntu source server locally.Can be set by following this simple step.1. server-side configurationHere we use an Ubuntu-equipped PC to do the server.1.1. Installing the appropriate package$ sudo apt-get install apach
Requirement:
Software: Ubuntu ISO image, unetbootin
Hardware: A 4 gb usb stick
1. Download Ubuntu ISO image from thisurl:
Http://mirrors.163.com/ubuntu-releases/10.04/
Select your favorite releaseversion, and download it.
2. Use unetbootin to create a bootable USB stick.
Http://unetbootin.sourceforge.net
3. Install Ubuntu
Requirement: Use the syslog of Ubuntu8.04 server to record juniperisg1000 logs for three months. 1. Allow syslog To record External Log modifications/etc/default/syslogd, change SYSLOGD = "" To SYSLOGD = "-r" 2. Define External Log types and modify juniperisg1000 log definitions, define the generated log as local7 and
Requirements:
The juniper isg1000 log is reco
configured in the NetworkManager graphical interface.2, close NetworkManager, close command: Sudo/etc/init.d/network-manager stop reboot: chkconfig network-manager off restart network:/etc/init.d/ Networking restartModify the/etc/network/interfaces file,System configuration section: Local loopback network.Auto LoIface Lo inet LoopbackWired configuration section:Auto Eth0#iface eth0 inet DHCP # If you do not want to use a fixed IP, it is recommended to use a fixed IP, which eliminates the time r
has changed since Nfs-utils version 1.0.x ... done. * Starting NFS Kernel daemon ... done .You can see that the NFS kernel daemon started successfully. Fail is displayed if it is unsuccessful.5) test Server#showmount-EExport list for hostname:/home/user/nfstest localhostDescription server-side build OK.3. Client Configuration1) Download software#sudo apt-get Install Rpcbind Nfs-common2) Mounting files#
has been marked on it. 6. Enter (/usr/local/nginx/sbin) operation./ngnix 7. Can see the port occupancy, 80,1935 is not listeningNetstat-ltn 8. More Tests 1) send the rtmp stream to the serverRtmp://ip/myapp/testMyApp is set in ngnix.conf application, and stream is test is custom.2) Receive HLS StreamHttp://ip/hls/test.m3u8HLS is the location within the HTTP settings, access to the Linux (/tmp/hls), test is the above rtmp test, if the above is haha, the following is haha.3) Ngnix homepage Htt
The Samba server is built to implement the Linux shared directory, and Windows can access the shared directory directly.Now how to build a Samba service in Ubuntu 16.04 system.1. Installing Samba Servicessudo Install SambaThe following error occurred during the installation process:Error: 1 http://mirrors.aliyun.com/ubuntu xenial-updates/main amd64 samba-libs amd
Article Title: Use syslog in ubuntu to record external device logs. 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.
Requirements:The juniper isg1000 log is recorded using the syslog of ubu
is added to the file vsftpd.chroot_list is not subject to restriction.That is, you can browse the parent directory of its home directory.
Therefore, if you do not want a user to be able to browse the content in the parent directory of their home directory, you can set it up, and then do not add the user in the file vsftpd.chroot_list (at which point the user in the file can browse to a directory other than their home directory).
Or, set the following
Chroot_local_user=noChroot_list_
/lmhosts file with the host's corresponding relationship.(1) Access the Linux shared directory without entering a password in the Windows systemShare a directory in Linux and write the setup information of the established directory to the/etc/smb.conf file. For example, if you are sharing the/home/myth/share directory, to access this shared directory in a Windows system, assume that the IP of the Windows host is the IP of the 192.168.0.11,linux host 1
Tags: code view HTTPS OTA com mail software latest executionGitlab Server Setup1. Installing dependent Packagessudo apt-get install curl openssh-server ca-certificates postfixWhen the execution is complete, the mail configuration appears, select the Internet item (without smarthost)2. Download the latest packageInstalling the GITLAB-CE PackageIn https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/
A syslog server can be used as a log monitoring center in a network, and all the facilities that can send logs over the network (including Linux or Windows servers, routers, switches, and other hosts) can send logs to it. By setting up a syslog server, logs sent by different facilities/hosts can be filtered and merged
... binding ipv4/ipv6 socket ... Failed to bind IPv6 and listen_ipv6=yes about, as for IPv4, it does not seem to affect the use of2. Run sudo service vsftped stop results burst Stop:not instance: In fact your vsftpd has closed, with Ps-ef | grep vsftpd Look3. Sudo vsftpd can also start the VSFTPD service4. How can I not upload or create more can't delete? Please carefully check the permissions of the FTP folder, give a nerve bar of the suggestion: FTP root permissions 755, the rest of the 777,
Before the whole CentOS, the whole Ubuntu only found that Ubuntu is much simpler ~ ~ Do not know how to compare performance.Take Ubtuntu 14.04 as an example to record the construction process.One, SSH serverThe first thing is of course ssh, the default after installation Vi/etc/ssh/sshd_config, modify the configuration file.Modify/etc/host.allowsshd:192.168.1. , 192.168.0. : AllowModify/etc/host.denySshd:al
1. Download softwareInstalling Tftp-serversudo apt-get install TFTPD-HPAsudo apt-get install TFTP-HPA (if the client does not need to be installed)TFTP-HPA is the clientTFTPD-HPA is a server-side2. Configuring the TFTP serversudo vim/etc/default/tftpd-hpaChange the original content to:Tftp_username= "TFTP"Tftp_address= "0.0.0.0:69"tftp_directory= "TFTP root" #服务器目录, you need to set the permission to 777,CHOMD 777Tftp_options= "-l-c-S"3. Restart the TF
---Ubantu does not have openssh-server service installed Apt-get install* Configure Etc/ssh/ssh_config (open service)Build a git server:Server user name, public key, generate certificate Ssh-keygenInitializing the--bare name.git service-side WarehouseCreate Authorized_keys in. ssh/and import the client's public key into the Authorized_keys (import information)*{1, chown-r git:git .... Permissions to git Linux users 2, change permissions for git users
A syslog server can be used as a log monitoring center in a network, and all the facilities that can send logs over the network (including Linux or Windows servers, routers, switches, and other hosts) can send logs to it. By setting up a syslog server, logs sent by different facilities/hosts can be filtered and merged
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.