• Automatic backup of Linux/Unix server data


    primabackup.sh documentationVersion: 2.0.1Tool download address:http://swsoft.com.cn/downloads/Prima/Tools/primabackup-2.0.2.tar.gz0. Version update * 2006-11-23 SWsoft.com.cn v2.0.2– [fix] Fix resin path * 2005-03-28 ValueOf.com v2.0.1– [fix] Backup resin and tomcat configuration– [fix] Fix config backup subdirectory location1 OverviewThe primabackup.sh script can be used to back up data. 2. InstallUnzip: tar zxf primabackup.tar.gz3. Configurationrequired settings3.1 Backup to that directoryBACKUP_BASE_DIR="/backup" The root directory […]

  • IE Conditional Comments for XHTML


    Conditional comments are a unique feature of IE, which can process separate XHTML code for IE series products. Note that it is mainly for XHTML, not CSS.Conditional annotations are very powerful and can perform true and false judgments, for example:code<!–[if IE]>此内容只有IE可见<![endif]–><!–[if IE 6.0]>此内容只有IE6.0可见<![endif]–>Conditional comments can be judged by IE what version of the browser it […]

  • Start and stop of MySQL server under Linux


    1、 Running MySQL server as an unprivileged user Before discussing how to start the MySQL server, let’s consider what user should be running the MySQL server as.serviceThe actuator can be started manually or automatically. If you start it manually,serviceThe device starts as the user who logs in to UNIX (Linux), that is, if you log […]

  • Solution of rhythmbox garbled code


    First, you need a software package mid3iconv. If yoursystemNot ininstallIt can be used automatically through the following codeinstall:sudo apt-get install python-mutagen Then go to your MP3 directory and execute the conversion with the full command: mid3iconv – e GBK * mp3 If you need to include subdirectories, you can change the suffix to the following […]

  • Introduction to the difference between if and elif in Python


    Multiple if statements are judged separately each time For example: Example 1 ? 1 2 3 4 5 6 7 a = 5 if a < 6:      #Condition 1     print(1) if a < 7:      #Condition 2     print(2) else:     print(3) Condition 1 and condition 2 are independent. In the first judgment, the value of a is […]

  • Installation and configuration of shorewall firewall under Linux


    Environment Description: This machine has only one network card and uses static IP to surf the Internet   Command: apt get install shorewall Ubuntu will automatically give youinstallOK, but shorewall is not configured or started   【1】 First, CP / usr / share / Doc / shorewall / examples / one interface / * / […]

  • HTML tutorial: abbreviation of DOCTYPE


    When writing HTML code, DOCTYPE should be written in the first line. DOCTYPE is usually very long and we are too lazy to remember, so we basically copy what we have written before. But today I learned an abbreviation of DOCTYPE, if your DOCTYPE is like thisWhen writing HTML code, DOCTYPE should be written in […]

  • SQLite implements operations of if not exist and similar functions


    Need to achieve: if not exists(select * from ErrorConfig where Type=’RetryWaitSeconds’) begin insert into ErrorConfig(Type,Value1) values(‘RetryWaitSeconds’,’3′) end Only use: insert into ErrorConfig(Type,Value1) select ‘RetryWaitSeconds’,’3′ where not exists(select * from ErrorConfig where Type=’RetryWaitSeconds’) Because SP is not supported in SQLite Supplement: not in in SQLite3 is not easy to use When I was familiar with SQL […]

  • VBS tutorial: VBScript statement – if Then… Else statement


    If… Then… Else statement Conditionally executes a set of statements based on the value of an expression. If condition Then statements [Else elsestatements ] Alternatively, use block syntax: If condition Then[statements][ElseIf condition-n Then[elseifstatements]] . . .[Else[elsestatements]]End If parametercondition One or more of the following two types of expressions: A numeric or string expression that evaluates […]

  • Analysis of Linux vmstat output method


    Vmstat procs ———–memory———- —swap– —–io—- –system– —-cpu—- r b swpd free buff cache si so bi bo in cs us sy id wa 0 0 100152 2436 97200 289740 0 1 34 45 99 33 0 0 99 0 procs Column r indicates the number of processes running and waiting for CPU time slice. If […]

  • Basic syntax and common judgment usage of if in shell


    If, for and while are the keywords of almost all programming languages, and are no exception in shell programming. If is the most frequently used. Since there is no concept of object in shell programming, the comparison and judgment of if is mainly based on the values of string and number: I Basic syntax of […]

  • Go language basic if conditional statement usage and example explanation


    catalogue summary grammar Format Rules summary Conditional statements require developers to specify one or more conditionsAnd determine whether to execute the specified statement by testing whether the condition is trueAnd execute another statement when the condition is false. grammar ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 […]