Add a variable to the/etc/profile file "for all users (permanent)"
Using VI to add a variable to the file/etc/profile file, the variable will be valid for all users under Linux and is "permanent".
To make the changes immediately effective, you
Introduced
The number of concurrent connections refers to the ability of a firewall or proxy server to handle its business information flow, is the maximum number of point-to-point connections that a firewall can handle at the same time, reflecting
To modify the number of file handles under Linux, we use the ulimit-n command to see the maximum number of file handles that a single process can open (the socket connection is also included). The system defaults to 1024.
For general applications
---View the default maximum number of file handles for the system, which defaults to 1024
# Ulimit-n
1024
----See how many handles are open for the current process
# Lsof-n|awk ' {print $} ' |sort|uniq-c|sort-nr|more
131 24204
57 24244
57 2423
Linux partitions, formatted, mounted commands
Although Linux has been playing, but the hard drive is not very familiar with the operation, today is free, on the collation of the next.
1, zoning
Fdisk-l
You can see the hard drive information,
1. Man provides help for commands you are familiar with or unfamiliar with. Eg:man LS allows you to view LS-related usage
2. LS View directory or file
3. CP Copy File
4. RM Delete files and directories
5. MV Remove the catalogue or change
The/etc/passwd file is a plain text file with the same format for each line:
Name:password:uid:gid:comment:home:shell
They have the following meanings:
Domain
Description
Name
User Login Name
1, first switch to: CD usr/local/tomcat5/logs
2, Tail-f Catalina.out
3, this operation can be real-time view of the running log
CTRL + C is the exit Tail command.
By the way, Linux tail commands
The tail command writes the file to the standard
Recently in the free time to learn the Linux environment in the installation and configuration of various services, are entry-level, where all the learning process recorded, and share with everyone.
My Computer system is win7, so I need to install
This article describes the Linux memory cleanup/release commands, as follows:
1. Memory usage before cleaning
Free-m
2. Start cleaning up
Echo 1 >/proc/sys/vm/drop_caches
3. Memory usage after cleaning
Free-m
4
In the lamp environment, testing a simple php file upload function, found in the/var/log/apache2/error.log the following PHP warning:
1. [Tue 09:40:27] [ERROR] [client 127.0.0.1] PHP warning:move_uploaded_file (/home/leotody/32883679.jpeg): FAI Led
QCOW2 and Row Difference
In a KVM virtual machine, you need to select a format for the disk image, usually with two options, one in raw mirror format and one in QCOW2 format.
RAW format is the original image , will be directly as a block device to
One: View file system block size
Note that the system may have multiple disk multiple file systems and can be viewed through the DF command
The number units are bytes, such as the illustration:
Second: View the memory page size
1. Linux Installation Node.js
Ubuntu:
sudo apt-get install Nodejs NPM
Centos:
Yum Install Nodejs NPM
More detailed installation See: https://github.com/joyent/node/wiki/InstallationNPM is a package manager similar to
First, the Installation plan task
This program may not be pre-installed on some systems, and you will need to perform the following command to install it.
Yum Install-y Vixie-cron
Then start the service
Service Crond Start
Second, set up
The backed-up data, if not particularly large, is not recommended for compression, preventing the possibility of corrupted files that have been compressed several times.
The way to back up the database is to back up the data directory after the
First into the Linux program staff, often get garbled greetings. "Toss". Because of garbled, and finally gave up Linux is not a minority. OK, go to the matter, first see how all kinds of garbled is formed.
Chinese character garbled
This situation
Linux file and Directory permissions interpretation
How to set permissions for Linxu files and directories
Character notation
1) Ls-l: View permissions for all files in the directory
2 chmod u=r File: Assign the current (user user)
This example for you to share the Jalinux configuration remote SSH password-free login method for your reference, the specific contents are as follows
System: CentOS 6.8Host 1:192.168.0.177Host 2:192.168.0.178Tools Introduction:Ssh-keygen: Creating
The main use of Nginx and vsftpd.Installation can be directly from the Nginx official online download, or ...
Copy Code code as follows:
Yum Install Nginx
If you do not have a Yum source, you need to add install.
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