Linux memory uses the flat model of protected mode, which bypasses Intel's segment memory management, as the segment selector for all processes points to GDT, and only four of the GDT are useful:
The code is as follows
Copy Code
The system has a sda2 is the Linux LVM format, corresponding to an LVM logical volume, how to implement sda2 corresponding to two or more logical volumes, the detailed operation process is as follows:The previous two articles, also about LVM, each
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
Loop statement:The Bash shell mainly provides three loops: for, while, and until.For Loop declaration format:
The code is as follows
Copy Code
For variable in word_listTodoCommandDone
See the following sample
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
If you google yourself, you may find a keyword Uwsgi, he is the protagonist of this article.
noun explanation
Web Server Gateway Interface (Interface, abbreviated as WSGI.Uwsgi, like Wsgi, is a communication protocol.Uwsgi, a server that
DNS binding A Record #
First, a record is created on DNS, and the domain name is bound to the corresponding IP.Create a Site Directory #
On the server, add the/srv/www/vhosts/www.111cn.net directory and create a index.html file in the directory –
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
Today in the Linux operation, to the VSFTPD service to restart, using service vsftpd restart, at this time, reported a difficult to believe the error:
Bash:service:command not found
So I went to the internet to search a bit, the solution is quite
Nginx reboot Command
The code is as follows
Copy Code
Sudo/etc/init.d/nginx Usage:/etc/init.d/nginx {Start|stop|status|restart|condrestart|try-restart|reload|force-reload|configtest}
With root permissions
Ways to modify Ip_local_port_rangeReference[Configure boot Auto start Nginx + PHP + MySQL]
The code is as follows
Copy Code
# vi/etc/rc.local
Add the following at the end:
The code is as follows
The chmod command can change permissions for all subdirectories:
To change the permissions of a file:
The code is as follows
Copy Code
chmod mode File|dir
To change permissions for all subdirectories:
First type:01 If you want to change the Linux SSH default port (22), then you only have to modify:/etc/ssh/sshd_config Port 22, here 22 into their own to set the port on the line, but do not set and now have the same port, in case of unknown
1. Download and install Oracle 8i for linux.Complete Installation. Do not only install the clientDownload location: chat.hn.cninfo.net/soft's hotdownload2. Download the PHP3 or PHP4 source codeDownload location: www.php.net www.phpuser.com
The free command displays the memory usage, including the physical memory, virtual swap file memory, shared memory segments, and the system core buffer.SyntaxFree [-bkmotV] [-s ]Parameter description: -B displays memory usage in bytes. -K
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