Linux System log core system log files/var/log/messagesIncludes boot disk at system startup, other state of System runtime, I/O error, network error, etc.When the file is large, it will be cut into several systems;Log Cut profile
First, the system logSystem log is our understanding of the status of the system, service startup situation, learning to read the log is our basic skills to understand the health of the system and management.(a)/var/log/messagesVarious operations in
# # #socket网络编程接口The address of the socket is the structure body sockaddrThe code is as followsstruct sockaddr{sa_family_t sa_family;Char sa_data[14];}The sa_family member is the address family type (sa_family_t) variable.Address Family Typeusually
Standard file library under Linux Query file property header file Function
int stat (const char *filename, struct stat *buf)Get file properties
int fstat (int fd, struct stat *buf)function with stat, but entry is file descriptor
int
Linux file Sync Tool-rsyncInstall packageyum install -y rsyncRsync Common Options
-A: Archive mode, which means to transfer files recursively and maintain all properties;-rlptgod;-r: Synchronize the directory to add, similar to CP when
ACL--The normal permission setting method can only modify the file owner, the group and other people's permissions, if you want to set the file permissions more complex, more detailed words, such as to make each user have different permissions, the
Overview:Linux system default open files number is 1024, sometimes the application will report too many open files error, because the number of open files is not enough. This requires modifying Ulimit and File-max. In particular, to provide a large
The environment used in this practice is CentOS 7.Reference: http://www.xuebuyuan.com/1472808.htmlOpenGL Development Environment Setup:1.OPENGL Library InstallationOpenGL Library using the Mesa library, install the command:Yum Intall mesa*Mesa
Tagged with: c + + int ext does not update source Color-o GPO LibSome time ago, the OPENCV3.4,TX2 update source failed to install the TX2, OPENCV internal many functions have implemented GPU acceleration, but we manually write the function, want to
Mount the previous programCTRL + Z1 jobs view mounted programs without taking any parametersJobs2 jobs kills programs that have been banned in the backgroundKill%numPS View All ProcessesKill NUM kills the background process3 FG Transfer the
The Linux crontab implements the Linux crontab command every second, and the minimum execution time is one minute. If you need to repeat within less than a minute, there are two ways to implement it.1. Use delay to implement every n secondsCreating
newly added a hard disk sdb1, mount it to/mnt/cdrom, in order to automatically mount when starting the server, modify the/etc/fstab file, causing the startup times to mount the error, after entering the repair filesystem mode, want to modify/etc/
many friends in ops often forget The root password of the Linux system, what should I do if the Linux system forgets the root password? Do you want to reinstall the system? Of course not! Go to single-user mode and change the root password. for
Linux Task Scheduler Cron1.crontab Command Task Scheduler configuration file[Email protected] ~]# Cat/etc/crontab shell=/bin/bashpath=/sbin:/bin:/usr/sbin:/usr/binmailto=root# for details see Man 4 crontabs# Example of Job definition:#.--------------
Linux network firewall: Detailed description of iptables configuration, linuxiptables1. Start Configuration Let's configure a filter table firewall. (1) view the settings of IPTABLES on the local machine[Root @ tp ~] # Iptables-L-nChain INPUT
Tomcat domain name configuration in linux, linuxtomcat Domain NameI. configuration of multiple domain names1: Change the default port 8080 to port 80, because port 80 is the default webpage port.
ConnectionTimeout = "20000"
RedirectPort = "8443
What is yum source, how to change yum source, and how to change yum Source
Yum (all called Yellow dog Updater, Modified)
Yum is a Shell front-end Package Manager in Fedora, RedHat, and CentOS. Based on RPM package management, You can automatically
Linux Command sharing: detailed explanation of the netstat command and the netstat command
The netstat command is used to display statistics related to IP, TCP, UDP, and ICMP protocols. It is generally used to check the network connection of each
Linux implements nat forwarding and internal port ing, linuxnatNat forwarding and internal port ing in linux
Dual NIC:
Host
Eth0: 114.114.114.114 (public ip) eth1: 192.168.1.1 (intranet ip)
Pc1
Eth0: 192.168.1.2 (intranet ip) eth1 (dialup
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service