When I first started to learn git, I never understood why to have git add this command, feel git submitted to troubleI need
git add xxx.mdgit commit-m "Add xxx"Git push Origin MasterTo submit a file to the far end, I miss the SVN I have been using,
"/" is the VI Editor's Mode search command. When you type/, a line appears at the bottom of the screen, and a diagonal shoulder appears at the beginning of the bottom line, and the cursor is placed after the tilt. At this point, you can type the
:
1. Inserting (INSERT) command
VI provided two INSERT commands: I and I.
(1). The I command inserts text from the position before the cursor, and you can use the key to delete the wrong input during the insert process. At this time VI is in the
Linux grep is a command that matches and searches on text and content based on rows.
The grep command syntax and common option are as follows:Usage: grep [options] ... pattern [FILE] ...Find pattern in each FILE or standard input.The default
The general format for this command is:
ping [options] [Host name/IP address]
More details
Ping [-dfnqrrv][-c][-i][-I][-l][-p][-s ][-t][host name or IP address]
The common parameters for Ping are as follows:
-c number stops after sending a
NetstatThe syntax for the netstat command is:
netstat [options]
The common parameters of netstat are as follows:
-a displays all sockets including those that are listening
-C is displayed again every 1 seconds until the user interrupts it
-I
First, view the process with PS by using the following method:
$ ps-ef ... smx 1822 1 0 11:38? 00:00:49 gnome-terminal smx 1823 1822 0 11:38? 00:00:00 gnome-pty-helper smx 1824 1822 0 11:38 pts/0
Problem description
Solving method
Analyze the reason, maybe because I have a problem with my platform migration, we have permission to convert.
1 conversion under Windows:
Use tools such as UltraEdit or editplus to convert scripts to code and
Common commands for viewing Linux system InformationOne system:# uname-a # View kernel/operating system/CPU information# cat/etc/issue# cat/etc/redhat-release # View operating system version# cat/proc/cpuinfo # View CPU Information# hostname # View
It is possible that we installed the Linux system for a long time, perhaps through a number of user handover, to our hands when we do not know what this VPS is installed system, if the system is not clear to use the command, etc. are not the same.
The pressure measurement involves the port limit, the system defaults to the limit, use the following command to view:
Cat/proc/sys/net/ipv4/ip_local_port_range
The result is: 32768 61000, then 32768 to 61000 ports are available, so you need
First, edit the httpd.conf file
A-In the etc/httpd/conf/directory of the httpd.conf file, find:
LoadModule Rewrite_module modules/mod_rewrite.so
If there is a # before the cancellation, if not on the default do not modify.B-Set AllowOverride
In order to facilitate the small edit found a nginx log cutting script, the following code
The code is as follows
Copy Code
#!/bin/bash#function: Cut nginx log files for Lnmp v0.5 and v0.6#author: Http://www.111cn.net
First, we can use the top command to see whether the server currently has a zombie process, in the following figure can see the number of zombie processes, if the number is greater than 0, it means that the server currently has a zombie process
Queues are a commonly used data structure. In this data structure of the queue, the first inserted element will be first taken out, whereas the last inserted element will be finally taken out, so the queue is also known as the "FIFO" (Fifo:first
One: Platform
1:HP Server
Cpu:inter (R) Xeon (r) E5606 2.13G
Disk: Local Disk plus storage
2: Operating system
Redhet 5.4 64-bit
Kernel: 2.6.18-194.1.ax53
3: Database
db2_v9.7 x86_64
Two: Install the operating system
Put the Redhat 5.4
Find large files
The code is as follows
Copy Code
Find/dir-size +100m-exec LS-LH {}\;
If you want to delete files larger than 50M directly, use the command
The code is as follows
Copy Code
Linux scheduling Task Cron is a timed mode, for example, we can back up the system at least when the system is used, but it is impossible for an administrator to come to work in the middle of the night, so you can use the Linux program task Cron,
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service