Overview
Epoll is Linux provides a multiplexing technology, similar to each platform to support the Select, but only epoll in the implementation of the kernel to do more optimization, can support more than select File descriptor, of course, also
Introduction of Epoll Series functions
#include
int epoll_create (int size);
int epoll_create1 (int flags);
int epoll_ctl (int epfd, int op, int fd, struct epoll_event *event);
int epoll_wait (int epfd, struct epoll_event *events, int
Keeping track of issues, challenges, and revisions can be a tricky task for those responsible for support, but there is a perfect open source solution to this requirement: Bugzilla. After you install it, you can easily track bugs and be notified
At present, the common platform for the set socket (socket) connection Timeout method is:
Creates a socket and sets it to a non-blocking state.
Call connect to the end of the host, if it fails, determine if the errno is einprogress, that is,
One, install POSTFIX,CYRUS-SASL,CYRUS-IMAPD
If the YUM hint cannot find the package, please change the source, please refer to CentOS 6 recommended to use Epel source
The code is as follows:
[Root@localhost ~]# Yum install postfix
Basic commands
Uname-a-S
Hostname Display host name
To be permanently effective, edit the following file
#vim/etc/sysconfig/network
SSH remote Login
#ssh 10.1.1.54 (logged in as root)
#ssh tom@10.1.1.54 (log in as Tom)
#ssh-y 10.1.1.54
Tape Drive Operation Command:
Tar command:
Use the tar command to copy a file or directory tree to a single tape.
Note: Special files such as empty directories or device files cannot be copied and cannot be used to create multiple tape volumes.
1
Here to introduce you to the Linux in the SVN submitted files automatically synchronized updates to the Site Directory I hope this article will help you.
Sometimes it can be cumbersome to upload to a server for multiple files, but if you use the SVN
1. sh File contents
The file name in this article is example.sh, which reads as follows:
#!/bin/bash
function Init ()
{
If [-F "Example.sql"]
Then
echo "Example.sql is exits and is deleting it,then recreate it"
Rm-fexample.sql
Else
echo
Attack One,
When you install a Linux system on a PC, you have a powerful, advanced, multitasking network operating system. But the system is a little too powerful. Some release versions default to start many services (such as: Rlogind, inetd, httpd,
The SCP is based on SSH logons.
Copy the root folder test.tar.gz file to the remote host root directory, as follows:
Scp/root/test.tar.gz Root@172.19.2.75:/root
You will be prompted to enter the root user login password for the 172.19.2.75 host
Departmental machine upgrades, the elimination of a number of older machines, including the Ultra series of SPARC models, 64M memory, 2.1G hard disk, Solaris 9 has indicated that it does not support 64m memory, installed Solaris 8 and really lazy to
Review
In recent years, with the widespread use of Linux, time programming has put forward higher requirements. Real-time applications, multimedia software for the clock and timer precision requirements, in the early Linux kernel, the timer can
When Ubuntu Linux uses the Encrypting File system, the security of the data is well protected. In this case, even if we send the machine to the hacker, as long as they do not have the key, the hacker can see the data will be a bunch of garbled, no
Rsync sometimes because the server time is wrong, you need to change the time of the file modification, you can use the Touch command to modify the file's modified time:
1 touch-c-m-t 201101110000 teadme.txt
Modified Readme.txt to January 11, 2011:00
Deadlock (deadlock) Refers to two or more than two processes in the execution process, because of the contention for resources caused by a mutual waiting phenomenon, if there is no external force, they will not be able to proceed. At this point the
Because the RM command deleted files will not be put into the garbage bin, so can not be restored, the following small series to introduce a method, by replacing the Linux RM command method, so that the RM command deleted files into the garbage
Case study of docker swarm construction and cross-host network interconnection, dockerswarm
1. Open relevant ports
firewall-cmd --zone=public --add-port=2377/tcp --permanentfirewall-cmd --zone=public --add-port=7946/tcp --permanentfirewall-cmd
Ubuntu16.04 Development Environment configuration and common software installation after installation, ubuntu16.04 after installation
Ubuntu16.04 after installation 1. install common software sogou input method + Editor Atom + browser Chome + Video
Install KVM in CentOS 7
KVM is short for Kernel Based Virtual Machine. It can use Virtual Hardware extension to provide virtualization software for multiple operating systems. KVM can be managed in two ways, one is command line, the other is a
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