Tags: Local installation country Write ALS one task/dev/null ShanghaiThere are two Linux times. One is the system time, one is the hardware time!When synchronizing national time, there will be an error: No server suitable for synchronization foundNow the state authorized 210.72.145.44 is temporarily unable to useThis article is mainly about Ntpdate:Installation of NTP yum install ntp-ySecond, change the time zoneCp-y/usr/share/zoneinfo/asia/shanghai/e
server
Set up scheduled tasks that are synchronized once per hour:
vi/etc/cron.hourly/ntpdatehourly.sh
Add the following content:
#!/bin/sh
Ntpdate 192.168.1.100
Stop NTPD Services: Service NTPD stop
Manual synchronization time, performed on each node: ntpdate 192.168.1.100
To set up an interval at any time on the basis of synchronization method:
Vi/etc/cront
There are 2 of times in Linux:
Hardware time
System time
These 2 times are not synchronous! If one day you find the system time is wrong, you can look at these 2 times. Hardware time written in the BIOS, the system time is the computer display time.sudo Hwclock-r2014 December 31 Wednesday 08:46 37 seconds -0.214486 secondsThis displays the time of the hardware.You can write time to the BIOS after you use Ntpdate to synchronize net
Samba allows linux to read files in the windows shared folder. first, a software directory is shared on a Windows machine and the access permission of the directory is set. The IP address of the local Windows machine is 192.168.10.58, and then runs the following command on linux: mount-tsmbfs n, the Linux code, reads files in the windows shared folder through sa
Spin lock and Mutex function, the only one by one points is different is the mutex block after sleep out of the CPU, and the spin lock will notgive up the CPU, will be busy waiting until the lock!!!Spin lock in the user state use less, in the kernel used more! Spin Lock usage Scenario: Lock holding time is relatively short, or less than 2 times the context switch.Spin lock in the user-state function interface and mutex, the Pthread_mutex_xxx () in the mutex replaced spin, such as: Pthread_spin_i
Linux synchronization time, at least two ways: rdate,ntpdate two kinds ofFirst detect if the system is installed with these two commandsRpm-qa |grep RdateRpm-qa |grep NtpdateIf you install something, you can use Yum-y install Rdate/ntpdateRdateFeature Description: Displays the date and time of the other host.syntax:rdate [-ps][host name or IP address ...]Additional instructions: execute the rdate instruction, ask the other host for the system time and
July 26, 2014 kernel preemption and kernel control path designA definition of kernel preemption: If a process is executing kernel functions in the kernel state, a kernel switchover is allowed (that is, the process being replaced is the process in which the kernel function resides), and the kernel is preempted.The Linux kernel provides the ability to turn on and off kernel preemption, and the kernel cannot preempt when the Current_thread_info preempt_c
directory# MV/OPT/TEST1/TEST2123/SOFT/OPT/TEST1/TEST2123/ABC3. Use the MV command to cut folders and filesCut the folders and files under the/opt/test1/test2123/photo/to the/OPT/TEST1/TEST2123/ABC directory# mv/opt/test1/test2123/photo/*/OPT/TEST1/TEST2123/ABCIv. Directory renamingUnder Linux, moving files and renaming is the same command, MV (meaning of Move)Co
/WWWROOT/SINOZZZ123/ABC 2. Use the MV command to cut the folder. Cut the/home/wwwroot/sinozzz123/soft folder into the/HOME/WWWROOT/SINOZZZ123/ABC directory # MV/HOME/WWWROOT/SINOZZZ123/SOFT/HOME/WWWROOT/SINOZZZ123/ABC 3. Use the MV command to cut folders and files Cut the folders and files under the/home/wwwroot/sinozzz123/photo/to the/HOME/WWWROOT/SINOZZZ123/ABC directory # mv/home/wwwroot/sinozzz123/photo
How Linux servers remove garbled files and foldershome page into the folder where garbled filesBecause of the general trend of PHP, there are more and more opportunities to access Linux servers. Unlike Windows servers, Linux servers only support characters such as numbers, English, etc., and do not recognize the Chinese character. So that caused us to pack the up
Create, copy, cut, rename, clear, and delete folders in linux
There is the wwwroot directory under the home directory, and the sinozzz directory under the wwwroot directory, that is,/home/wwwroot/sinozzz
I. Create a directory
Create a folder named sinozzz123 in the/home/wwwroot directory.
Mkdir/home/wwwroot/sinozzz123
Ii. Directory Replication
1. Copy files and folders
How to delete garbled files and folders on a Linux Server
Due to the trend of php, there are more and more opportunities to access Linux servers. Different from Windows servers, Linux servers only support numbers, English letters, and other characters, and cannot recognize Chinese characters. Therefore, Chinese garble
We can use the Find command on a Linux or Unix system to query all (all) hidden filesThe basic syntax is as follows:[[email protected] ~] #find/To find the article/Piece/clip/-name ". *"-printExplanation:1. ". *" indicates the name of the file to find. Because Linux/unix's hidden files and folder names are in "." Start with. The * indicates a wildcard, meaning to find all file names and folder names, to "."
/SINOZZZ123/ABC2. Use the MV command to cut the folder.Cut the/home/wwwroot/sinozzz123/soft folder into the/HOME/WWWROOT/SINOZZZ123/ABC directory# MV/HOME/WWWROOT/SINOZZZ123/SOFT/HOME/WWWROOT/SINOZZZ123/ABC3. Use the MV command to cut folders and filesCut the folders and files under the/home/wwwroot/sinozzz123/photo/to the/HOME/WWWROOT/SINOZZZ123/ABC directory# mv/home/wwwroot/sinozzz123/photo/*/HOME/WWWROO
/SINOZZZ123/ABC2. Use the MV command to cut the folder.Cut the/home/wwwroot/sinozzz123/soft folder into the/HOME/WWWROOT/SINOZZZ123/ABC directory# MV/HOME/WWWROOT/SINOZZZ123/SOFT/HOME/WWWROOT/SINOZZZ123/ABC3. Use the MV command to cut folders and filesCut the folders and files under the/home/wwwroot/sinozzz123/photo/to the/HOME/WWWROOT/SINOZZZ123/ABC directory# mv/home/wwwroot/sinozzz123/photo/*/HOME/WWWROO
?pretty '// index have new?? Curl-xget ' Http://localhost:9200/test/ffcs/_search?pretty '// fetch display Data Query by various criteria Curl ' localhost:9200/test/ffcs/_search?pretty '-d ' { "Filter": {"term": {"name": "John"}} }‘ Curl ' localhost:9200/test/ffcs/_search?pretty '-d ' { "Filter": {"term": {"id": "5"}} }‘ The above can be explained that you are done oh ~ ~ I've tried the elasticsearch-1.7.1 version before, and I'm having an error. [ERROR] [Importer.jdbc.source.standard] [Poo
Meaning of linux folders (the most complete version)/bin: where binary programs live. /boot: the special programs that start the system when you turn the machine on. /dev: aaaaaalll the "device" listings for hardware of every concievable flavor, along with some "imaginary" devices, lile/dev/null and/dev/zero. when you get a random number it usually comes from/dev/random. /etc: configuration files. /home: th
1. BackgroundTypically there are scenarios where developers write code in Windows and then compile in the Linux environment, and we can use the Mount command to hook code directly into a Linux environment so that shared folders on Windows are like a folder in a Linux environment.2. Sharing
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.