Linux modification time method in the command line input: date display current time FriAug314: 15: 16CST2007date-s in string mode modify time can only modify the date, do not modify the time, input: date-s2007-08-03 only modify time, input: date-s14:
My experience in running Docker on Mesos
My technology Stack
As I wrote in this blog, I want to share with you how to use docker containers in a single cluster to run analysis jobs. In Zions, we are studying Apache Mesos running on the MapR platform
Recently, a cache_put_latency metric was added to the service, which gave a fright. It was found that the data sent to memcachedput was about 10 KB, and latency was about 7 ms, which was hard to understand, so it took some effort to find the cause.
Due to collaborative project development, my colleague sent an SQL file of the project and opened it as a directory, there are hundreds of databases, each database is used as a separate file, and each SQL file contains CREATEDATABASEIFNOTEXISTS
7 methods for generating random numbers in shell instancesI. Problems
A random number is sometimes used in Shell, and the method for generating the random number is summarized here. Computers generate only pseudo-random numbers and do not generate
Issue 1: Batch Create 10 System account UCODE01-UCODE10 and set the password (the password cannot be the same)#!/bin/bashFor N in $ (seq-w 10)DoUseradd ucode-$necho "$n" |passwd--stdin ucode-$nDone[Email protected] scripts]# sh adduser01.shChanging
#!/bin/Bash#author by jackluo# file to filter excludefile=(api.md dev.md. git. Gitignore. htaccess. Project readme.md) #定义要copy的目录new_git_code_dir=/data/projects/your own git repository pathProduction_code_dir=/data/projects/you produce the above
Time zone:
1. Run the following command to configure the time zone on the GUI:
Dpkg-reconfigure tzdataThis operation will modify two files
/Etc/timezone # This text file can be directly modified/etc/localtime # This file can be modified through a
Shell monitors cpu, memory, and load average, records the log, and sends an email to the Administrator when the load is under pressure.
Principle:
1. Obtain the value of cpu, memory, and load average.
2. Determine whether the value exceeds the
Bash shell for concurrent multi-process operationsPrefaceCurrently, I have mastered the basic language, php (most familiar with the code in the project), bash shell (O & M tool), and c (acm dedicated ), it seems that only c can implement
PHP date and time, PHP date and time. PHP date and time, PHP date and time 1, datestringdate (string $ format [, int $ timestamp]) echodate (Y ). br; 2016 echodate (y ). br; 16echo ------ br; echo PHP date and time, PHP date and time
1. date
string
Linux The clock is divided into the system clock and the hardware (Real time clock, or RTC) clock. The system clock is the clock in the current Linux kernel, and the hardware clock is a battery-powered clock on the motherboard that can be set in the
Linux time modification does not restart modify time zoneFirst, check the Linux system time:Date-rSecond, the time to modify LinuxRoot using the date command: date-s1, only modify the date, do not modify the time, enter:Linux Code1. Date-s 2007-08-03
1.10 Get, set date and time delay
Many applications need to print the date in different formats, set the date and time, and perform an action based on the date and time. Latency is typically used to provide a wait time (for example, 1
Date--helpUsage: date [options] ... [+ format]Or: Date [-u|--utc|--universal] [MMDDHHMM[[CC]YY][.SS]]Displays the current time in the given format, or sets the system date.-D,--date= string displays the time described by the specified string, not
First, the shell operation date TimeThe Linux system provides us with a command date that is designed to display or set the date and time of the system.The syntax format is:Date [OPTION] ... [+format] orDate [-u|--utc|--universal] [MMDDHHMM[[CC]YY][.
before writing an article mainly introduces the construction of Zabbix use http://msiyuetian.blog.51cto.com/8637744/1705396This article mainly introduces the script implementation of Zabbix custom monitoring network card trafficPre-preparation
One, time zone
1, view or modify the system time method is as follows:
The code is as follows
Copy Code
#date View System time#date-S modification time, see the following example#date-S 05/16/2010 (set the system date
1 set time to 22 points 54 minutes 54 seconds
Date-s 22:54:54
2 Set Date is December 13, 2015
Date-s 12/13/15
3. Set time zone
Tzselect
Then select Asia Input 5 back to the car
Then choose China 9 return carThen select East China–beijing,
We generally use the "date-s" command to modify the system time. For example, set the system time to the August 19, 2007 command as follows.
#date-S 08/19/2007
The command to set the system time to 11:20 P.M. 0 seconds is as follows.
#date-S 11:20
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.