represents a long pointer this is for compatibility with 16-bit operating systems such as Windows 3.1, and in Win32 and other 32-bit operating systems, long pointers and near pointers and far modifiers are all for compatibility purposes. No practical significance. P indicates that this is a pointer c representation is a constant t representation in the Win32 environment, there is a _t macro str that the variable is a string
Second, the main points
1, char*: Pointer to an ANSI character arra
Monitoring is typically implemented through scripting, and regular detection is performed using timed tasks.1. PortsLocal: Ss,netstat,lsofRemote: TELNET,NAMP,NC2. Number of local processesFor example:Lsof-i:80|wc-lPs-ef|grep nginx|wc-lNmap 192.168.220.139-p 80|grep open|wc-l3. View HTTP return codesReturn 200 is normal.[[email protected] ~]# Curl-i-S-w"%{http_code}" -o/dev/null127.00.1 $4. How to impersonate a userWget,curl commandUse short program d
/emptydir # now the actual transferrsync $ OPTS $ BDIR $ BSERVER: $ USER/current 2. Back up to an idle hard disk #! /Bin/sh export PATH =/usr/local/bin:/usr/bin:/bin LIST = "rootfs usr data data2" for d in $ LIST; domount/backup/$ drsync-ax -- exclude fstab -- delete/$ d // backup/$ d/umount/backup/$ ddone DAY = 'date "+ % A" 'rsync -a -- delete/usr/local/apache/data2/backups/$ DAYrsync-a -- delete/data/solid/data2/backups/$ DAY 3. perform operations on the cvs tree of vger.rutgers.edu. image #!
[] and those method calls is a meaningless overhead.If you want to learn more about Stringbundler, you can view Liferay's Jira connection,http://support.liferay.com/browse/LPS-6072Well, that's enough explaining, it's time to look at the performance test results, and these test results will show you how much stringbundler can improve your performance!We're going to compare String.Concat (), Stringbuffer,stringbuilder, using Stringbundler with the defau
the nextN Find Previous
Exit VI
Q Exit VIQ! Do not save exitWq Save exitE! Do not save the modified fileW Save! Coercion, followed by an exclamation mark, indicates coercion.Uname–a Viewing the system versionDF–LH show how big the hard drive isNetstat-nlpt|grep 80 Check Port number is not occupied|wc–lPs-ef|grep MySQL finds all processes, finds MySQL in the results, and displays a grep process if no MySQLPs-ef|grep Mysql–v Prep This rul
runtime.Command: What is the actual command for this process?Ps-la Show all processes in the same way as the output of ps-lPS AXJF lists programs similar to the process tree display:Top: Changes in the dynamic Observer program[[email protected] ~]# Top [-D number] | Top [-BNP] options and Parameters:-D : The number of seconds to follow can be followed, that is, the entire process screen upgrade seconds. The default is 5 seconds;-B : Run top in batc
[$NF]} END {for (w in y) Print W, y[w]} ' #统计httpd协议连接数进程数ps-ef|grep httpd|wc-lps aux|grep httpd|wc-l# handle number L Sof-n|awk ' {print $} ' |sort|uniq-c|sort-nr|more #查看进程占用内存ps aux |awk ' ($ ~apache) ($6>50) {print $} '22. Three ways to view threads in Linux1, top-h Manual said:-h:threads Toggle plus this option to start a top,top line to display a thread. Otherwise, it displays a process one line. 2, PS XH Manual said: H Show threads as if they
"(2) If the first and last elements of X are not the same, then F "I,j" =max (f "i+1,j", F "i,j-1")2, construct a land-return solutionF "I,j" =f "I+1,j-1" when X[i] =x "J"F "I, J" =max (F[i+1,j],f[i,j-1]) when X "I"! = X "J"3, calculate the optimal solution#include #includestring.h>using namespacestd;//finding the longest palindrome subsequenceintLspChar*a,intN) { intDp[n][n]; inttem; inti,j; Memset (DP,0,sizeof(DP));//assigning initial values to all DP elements 0 for(i=0; i) Dp[i][i]=1;
Parameter function: Copy all content on the first partition of the first hard drive to the first partition on the second hard drive, do not ask, and exit ghost after completion.
5. Back up the contents of the partition into an image file
Graphical interface: Partition to Image
parameter example: GHOST-CLONE,MODE=PDUMP,SRC=1:1,DST=D:\WIN98SYS.GHO-Z9-SURE-FX
Parameter function: Backup first hard disk first partition to D:\Win98sys.gho, use the highest compression rate, do not need to ask, co
}: $ORACLE _home/lib: $ORACLE _home/ctx/lib Export oracle_owner=oracle Export Spfile_ Path= $ORACLE _home/dbs Export ora_nls10= $ORACLE _home/nls/data Configuring the network silently$ORACLE _HOME/BIN/NETCA/SILENT/RESPONSEFILE/HOME/ORACLE/ETC/NETCA.RSPInstalling the database silentlyModify the response file that installs only the database/HOME/ORACLE/ETC/DBCA.RSPGdbname= the name of the Orcl.java-linux-test//78 row global database =sid+ host domain nameSid= "ORCL"//149 line SIDcharacterset= "
the public IP, to be within the IP add}Track_script {Chk_nginx #加载脚本}}3) Edit the monitoring script in master:128,vim/usr/local/sbin/check_ng.shContent from Https://coding.net/u/aminglinux/p/aminglinux-book/git/blob/master/D21Z/master_checkng.sh Get#!/bin/bash#时间变量, for loggingD= ' Date--date today +%y%m%d%h:%m:%sPs-c Nginx--no-heading|wc-lPs-c nginx--no-heading|wc-l 'If [$n 2-eq "0"]; Thenecho "$d Nginx down,keepalived'll Stop" >>/var/log/check_ng.l
/dbca. rsp GDBNAME = "orcl. java-linux-test "// The Name Of the 78-row global database = SID + host Domain SID =" orcl "// 149-row SIDCHARACTERSET =" AL32UTF8 "// NATIONALCHARACTERSET = "UTF8" // perform silent Installation of database $ ORACLE_HOME/bin/dbca-silent-response File/home/oracle/dbca. check the instance ps-ef | grep ora _ | grep-v grep | wc-lps-ef | grep ora _ | grep-v grep after the rsp database is created the following error is lsnrctl:
Killing processes in batches is a must. Sometimes, thousands of processes may come out on linux servers. We can see them through the ps command and make statistics, but it is still difficult to kill them. Old method: ps-ef | grep process_name | wc-lps-ef | grep process_name> 123.txtbeibeibei123.txt content to the Ultraedit software, which is organized into thousands of lines of commands similar to the following format, then copy it to the command line
lv. After adding the number, you can see that the lv is increased, but the flashdg1 is not increased. The entire process is described below. ----- This is an unconventional solution. The conventional solution is to increase the flashdg size by adding disk after creating a lv.
After the system administrator adds the fsflashdglv size: root @ seven1 :/. root> lsvg-l datavgdatavg: lv name type LPs PPs PVs lv state mount POINTfsoraapplv jfs2 280 280 1 ope
= "-- force -- ignore-errors -- delete-excluded -- exclude-from = $ excludes
-- Delete -- backup-dir =/$ backupdir-"
Export path = $ path:/bin:/usr/local/bin
# The following line clears the last weeks incremental directory
[-D $ home/emptydir] | mkdir $ home/emptydir
Rsync -- delete-a $ home/emptydir/$ bserver: $ user/$ backupdir/
Rmdir $ home/emptydir
# Now the actual transfer
Rsync $ opts $ bdir $ bserver: $ user/current
2. Back up data to an idle Hard Disk
#! /Bin/sh
Export path =/usr/
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.