use the UTC clock configuration file/etc/localtime the time profile on the local side, the timezone specified in the clock will be/usr/share/zoneinfo/Copy the time profile in the/etc/localtimeCommon directives:/bin/date for the modification and display of Linux software time/sbin/hwclock is used to modify and display the BIOS time, usually after modifying the system time with date, and then using Hwclock to synchronize to the BIOS./usr/sbin/ntpdate C
Time synchronization is achieved through the NTP service.1: First build local Yum source URL (http://www.cnblogs.com/zxbdbk/p/6020679.html)2: First install NTP service[email protected] ~]# Yum install ntp-y3: Modify the NTP configuration file[Email protected] ~]# vi/etc/ntp.conf# For more information on this file, see
NTP server is used for LAN time synchronization. You can ensure that all servers in the LAN are synchronized with the time server. Some applications require a higher time-to-live nature. Requirements must be unified time, so the configuration of the time server is important.The internet has a lot of time servers. For example, there is a free
There are tow pen source software related to the NTP in Linux, the first is ntpdate, the second is ntpd. you can install them as following:
Apt-Get installl NTP; Apt-Get install openntpd;
Or emerge NTP; emerge openntpd.
NtpdateCan be run manually as necessary to set the host clock, or it can be run from the host START
Background:When the server is more, the time is accurate or not, the consistency is a problem. So it is necessary to unify the time.Here's how to configure a Linux time server within a LAN.Configuration environment and requirements:1. Assume that the Linux machine with IP 192.168.1.201 is the time server in the 192.168.1.0 network segment.2.192.168.1.201 server can Sisu network, can be synchronized with the
One. Time Synchronization serverYou can use the database server as a synchronization serverNtp.conf remains unchangedStart the serviceService NTPD StartSet NTPD service self-bootChkconfig ntpd onCheckChkconfig--list ntpdTwo. Client Configuration1. Modify the server configuration entry for the ntp.conf.Comment out any pre-defined server-time-synchronization servers address configurations, such as #server 0.r
Automatically synchronize the date and time of a linux host through network ntp
If you only need to synchronize data once, run the following command:
Rdate-s time.nist.gov
WhereTime.nist.govIs a time server, of course, you can also use another time server.
If the time of multiple servers needs to be fully synchronized, it is best to configure a unified automa
How to make Linux servers more secure and linux servers more secureI run several Linux servers. I have one at home, serving as a file server, and three active servers used as my Site Se
Multiple linux servers ssh have no password for each other, and multiple linux servers ssh
Server A: 10.1.11.82
Server B: 10.1.11.210
Objective: to allow server A to access server B without A password
Operation logic: to allow server A to access server B without A password, you only needGenerate A key pair on server,U
, unable to pass the directory, to pass the directory can be used PSFTPCan open remote host, CD change remote directory, LCD change local directory, ls view remote file list, put upload file, get download file and other commandsTo upload files from Windows to a Linux server using the Psftp method:Of course, you can also use the Putty installation package with the Psftp.exe tool, the primary usage is the sam
Use PSSH to batch operate Linux servers and psshlinux serversIntroduction
When there are more servers, one problem is how to quickly operate multiple servers in batches. I found the PSSH tool on the Internet. I tried it and found it useful. I recommend it to you.
Pssh is a lightweight management tool written in python
"‘(51) Delete a scheduled taskansible web_server -m cron -a ‘name="a job for reboot" state=absent‘(52) Mount Partitionansible web_server -m mount -a ‘name=/data src=/dev/sdb1 fstype=ext4 opts=rw state=mounted‘(53) Unmount partitionansible web_server -m mount -a ‘name=/data state=unmounted‘(54) Ensure that a partition is mounted and mounted if it is notansible web_server -m mount -a ‘name=/data src=/dev/sdb1 fstype=ext4 state=present‘For more information on playbook, please continue to follow my
/limit.conf, add in the last line
* Soft Nofile 60000
* Hard Nofile 65535
It is worth noting that through the command ulimit-shn is not changing the maximum number of File open Linux system, write into the/etc/rc.d/rc.local is not.Related reading:ulimit system CommandsSix, only to open the necessary servicesOnly the required services are turned on, and others can be turned off. The following services can be turned on:CrondIrqbal
1) Delete local time and set time zone to ShanghaiRm-rf/etc/localtimeLn-s/usr/share/zoneinfo/asia/shanghai/etc/localtime2) Set Timing timing synchronizationA. Yum-y install ntpdate NTP #安装ntpB. Setting a scheduled synchronization schedule taskXX * * * * ntpdate ntp.sjtu.edu.cn #上海交通大学网络中心NTP服务器地址PS: Common time synchronization server reference http://www.minunix.com/2013/03/ntpserver/Crotab the log file loc
BKJIA exclusive Article] how to optimize your Linux production server? Based on practical experience, this article summarizes nine key points for optimizing Linux production servers. If you have not used some methods, try again.
I. Time Synchronization
The time requirements of servers in the production environment are
Analyzes the attack on Linux servers-Linux Enterprise applications-Linux server applications. The following is a detailed description. With the expansion of Linux enterprise applications, a large number of network servers use the
can the Samba server be ready;
The following are common basic knowledge. We can find corresponding explanations in the list below for all the content involved in this article;
0.1 tools for viewing the file content and editing the file;
Introduction to Linux File Content viewing toolsFile editor vi
0.2 related to files and directories;Linux File Types and file e
Article Title: describes four intrusion levels for Linux servers. 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.
With the expansion of Linux
Connection between WinNT, Linux, Unix, and other servers-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Since Novell NetWare uses the IPX/SPX protocol, access to NetWare resources in Windows NT is converted through the Protocol. The Windows NT Server prov
The mail system is an important part of Linux network applications. The complete mail system includes the underlying operating system, the Mail sending proxy MTA, the mail distribution proxy MDA, and the Mail User proxy MUA. Currently, the main danger facing the Linux email system is spam, Linux virus, and DoS attacks. This article focuses on
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.