first, the daily basic commands1, date display dates2. Cal Calendar3. BC Calculator4, CTRL + C interrupt the current operation5. Ctrl+d End Input6.WC lists the number of file bytes, similar to the one contained in the TXT document of Microsoft, and then the properties are the same.This content: 3x (8+1) = 27 bytes, enter 3 bytes, so a total of 30 bytes Note: Byte in English: Byte7.hostname View computer name, modify computer name8.uname viewing System
Ubuntu15.10's first daily build image is now available for download. Werewolf's daily build includes ISO images, regular (using Unity) and Community styles (using tumate and Xubuntu ). The daily build versions will be released in the next six months. These images will be released as Alpha, beta, or RC versions. Ubuntu15.10 is currently released on July 10, Octobe
Connection and difference between daily build and continuous integration
1) continuous integration emphasizes a fast feedback.For example, when I check in the code, I immediately integrate it and give me a feedback. I want to know if my code has destroyed the build.Continuous integration is combined with unit testing. That is to say, unit testing is usually required for continuous integration. However, continuous integration cannot include more things
The connection and difference between building and Continuous Integration on a daily basis 1) Continuous Integration (Continuous Integration) emphasizes a fast feedback. For example, when I check in the code, I immediately integrate it and give me a feedback. I want to know if my code has destroyed the build. Continuous integration is combined with unit testing. That is to say, unit testing is usually required for continuous integration. However, cont
It is inevitable that the test link will be released to the production environment. Generally, this is to avoid risks through some testing check tools to check the link, below we will briefly describe the general implementation ideas. Many Internet companies may encounter tests, prerelease, and online environments, to isolate the test from the formal online environment. In this case, the test link is released to the production environment, generally, some testing tools are used to check links to
Linux version number: 14.04.1-ubuntu x86_64
Backup server address is: 172.29.71.59, backup root path is/home/backup
1.git Code warehouse automatic daily backup:
Server address: 172.29.71.111,git specified directory: 00.apps, Backup path is:/home/backup/codeserver_111
Step One:
cd/home/backup/codeserver_111
git clone--mirror Git@172.29.71.111:00.appsgit clone--mirror copies a git library that contains the latest remote branch as well as a history sub
Exercise 7.3: Implement a String method for the *tree type in Gopl.io/ch4/treesort (§4.4) to show a sequence of values for the tree type.Package Mainimport ("FMT" "bytes") Func main () {//definition array arr:=[...] int{6,2,1,3,4,5} var t *tree for I:=0;i Daily Go Language Bible-Interface Conventions Exercise 2
Exercise 8.8: Use Select to transform the Echo Server in section 8.3 to increase the timeout so that the server can automatically disconnect when there is no shouting in the client for 10 seconds.Reverb3.goPackage Mainimport ("Bufio" "FMT" "Log" "NET" "Strings" "Sync" "Time") Fu NC Main () {listener, err: = Net. Listen ("TCP", ": 8040") if err! = Nil {log. Fatal (Err)} for {conn, err: = Listener. Accept () if err! = Nil {log. Print (ERR)//e.g., connection aborted continue} go handleconn (conn)
problem solving report1:intLargestrectanglearea ( vectorint>h) {2: Stackint>S; 3: H.push_back (0); 4:intsum =0; 5: for(inti =0; I ) { 6:if(S.empty () | | h[i] >h[s.top ()]) S.push (i); 7:Else { 8:intTMP =S.top (); 9: S.pop (); Ten: sum = max (sum, h[tmp]* (S.empty ()? I:i-s.top ()-1)); One: i--; A: } -: } -:returnsum; the: }The biggest highlight of this solution is(1) The stack is index, the width of the calculation area using the difference of index, so although the
Exercise 8.3: In the NETCAT3 example, Conn is a interface-type value, but its underlying true type is *net. Tcpconn, which represents a TCP connection. A TCP connection has read and write two parts, and you can use the Closeread and Closewrite methods to close them separately. Modify the main goroutine code of the NETCAT3, just close the part written in the network connection, so that the background goroutine can continue printing the data returned from the REVERB1 server after the standard inpu
card traffic2) sar-n DEV 1 5 real-time View network card traffic650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/8B/01/wKiom1hBCILDYoUrAAD5PbqIhT8865.jpg "title=" Sar.jpg "alt=" Wkiom1hbcildyouraad5pbqiht8865.jpg "/>IFACE Device NameRXPCK/S number of packets per second enteredTXPCK/S the number of packets sent out per secondrxbyt/s amount of data received per second (Byte)txbyt/s amount of data sent per secondThe managed server drops are very serious, see the network card traffic is a
0.0.0.0/04 728 ACCEPT TCP--* * 0.0.0.0/0 0.0.0.0/0 State NEW TCP dpt:22Can be deleted by the number on the leftIptables-d INPUT 2Task SchedulerCrontab-l See what tasks are scheduled[Email protected] ~]# Cat/etc/crontabShell=/bin/bashPath=/sbin:/bin:/usr/sbin:/usr/binMailto=roothome=/# for details see Mans 4 Crontabs# Example of Job definition:#.----------------Minute (0-59)# | .-------------Hour (0-23)# | | .----------Day of Month (1-31)# | | | .-------month (1-12) OR jan,feb,mar,apr ...# | | |
The following is a list of common parameters(Options)righteousness: NBSP; --help , -h Display Help information NBSP; --version , -v display version information NBSP; -v tedious mode ( Show command complete execution procedure ) NBSP; -i conversational mode ( Specify interface ) NBSP; -l long list output format NBSP; -q , -s Quiet mode ( Span style= "color: #010101; font-family: "times New roman"; Font-size:small ">) NBSP; -r recursiv
Linux depth Introduction First, from the introduction of Linux system installation, the Linux system management and server configuration of the two parts of knowledge. System management aspects include Linux system introduction and installation, Linux character interface, directory and file management, Linux common commands, shell programming, user and group account management, permissions, owner and ACL, archive, compression and backup, package management, disk and file system management, logic
, example: * * * * command, that is, 12 points per day per month to execute commands
Second, the closure and start of serviceNtsysvChkconfig--list Chkconfig--level 2 ATD off/on Chkconfig ATD on Chkconfig--add to add a script Third, the system log/etc/rsyslog.conf /var/log/messages /var/log/secure /var/log/maillog To view sent messages: Cat/var/log/maillog/var/log/cron /var/log/spooler /var/log/boot.log /var/log/wtmp /var/log/btmp /VAR/LOG/DM
install the SAR: Yum install-y sysstatSar-n DEV View network card trafficSar-n DEV 1 Real-time monitoring network card traffic, 1 seconds to refresh once, press CTRL + C exit;Sar-n DEV 1 10 View network card traffic, 1 seconds to refresh once, view 10 times;Sar-n dev-f/var/log/sa/sa16 Check the system log to save the network card traffic information, according to the date of the day named;View Historical Load Sar-qView disk read-write Sar-b7. Check the network status netstatNETSTAT-LNP View cur
changes the destination address of the locally generated package. The postrouting chain changes its source address before the package leaves the firewall.The mangle is primarily used to modify the TOS (type Ofservice, service type), TTL (Time tolive, lifetime) value of the packet, and to set the mark mark for the packet to implement QoS (Quality of service,Service quality) tuning and Policy Routing applications are not widely available due to the need for appropriate routing device support. Fiv
)# || .----------Day (1-31)# ||| .-------Month (1-12)# |||| .----Week (0-6) (Sunday =0 or 7)# |||| |# * * * * * * user-name command to be executedCron is also a service, so you need to start the service to be effective: service Crond start; Service Crond StatusTask Schedule Exercises:Clear/var/log/slow.log This file every 1:20 A.M.Execute "/bin/sh/usr/local/sbin/backup.sh" every Sunday 3 o'clock14th # 4:10 per month to execute "/bin/sh/usr/local/sbin/backup_month.sh"Perform "Ntpdate time.windows
not need to enter the passwordThe content format of the password file/etc/rsyncd.passwd is: Username:password, the permission is The command to start the service is: Rsync–daemonDefault to use/etc/rsyncd.conf This configuration file, you can also specify the configuration file rsync--daemon--config=/etc/rsyncd2.confThe available options are: Rsync–daemon--help rsync ip::test:/directory 1/directory 2: Synchronizing data using the test moduleRsync-av--password-file=filename/Directory/directory:
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.