Restart command:1. Reboot2. shutdown-R now restarts immediately (used by the root user)3. shutdown-r restarts automatically after 5 minutes (used by root users)4. shutdown-r restart at (for root users)If you use the shutdown command to set the
Perform the following operations as root:
1. Add a new partition (from the original hard disk, or add a new hard disk and partition fdisk)Format it to ext3 (mkfs. ext3/dev/sdb1, assuming/dev/sdb1)
2. Mount the new partition to a temporary
Change
Linux
Method of server host name or machine name
IP
The host name or machine name can be dynamically changed using the command hostname, or the hostname environment variable in/etc/sysconfig/Network/can be changed permanently.
Http://www.cnblogs.com/magicbox/archive/2012/02/01/2363880.html ========================================================== ========================
I. Basic concepts of Message QueueMessage Queue (also called Message Queue) is one of the three inter-
Because the maximum memory usage of a single process in a 32-bit operating system cannot exceed 2 GB, memcached often requires a larger memory space. Therefore, it is necessary to select a 64-bit Linux version, the 64-bit OS's memcached installation
As mentioned above, there are so many common commands that we often use, which are timer and calendar. They are generally run through crontab; crontab specifies to execute specific scripts at a fixed time or interval. Common crontab parameters
This article focuses on the use of three common tools:Find, Vi, SCP;
Find commandIs a very effective tool that can traverse the current directory or even the entire file system to find some files or directories.The common form of the find command is:
Http://www.dbanotes.net/arch/unix_linux_load.html
Almost every engineer who has access to Unix-like operating systems knows how to view system loads. However, the working mechanism of this item may not be clear enough. I compared some related
Users in Linux are divided into three categories:
-Super User: Root, with all permissions. Super Users can be used only during system maintenance or other necessary circumstances to avoid system security problems.
-System users: the built-in
I have referenced several articles and summarized the problems I encountered as follows:
References:
Http://www.yoyotown.com /? P = 422
Http://blog.zjol.com.cn /? Uid-1222-action-viewspace-itemid-599186
The following operations are performed as
In the running environment UNIX and Linux systems, Chinese characters are garbled and it is inconvenient to view the background running logs. Therefore, you can view the solution on the Internet and solve the problem through the following content.
I. Usage of SSH tools
SSH (secureshellclient) is installed on windows. In Linux, a service called sshd occupies port 22, which is started by default. However, port 22 is not trusted by default and must be set manually. This explains the problems
To work on Linux, you often need to use the kill command to stop the process. In general, you can use the ps command to find the process ID to be aborted and directly use "kill PID. However, this command occasionally becomes invalid and the process
When I use VI in Linux to open the test. Java file
[Root @ localhost TMP] # VI test. Java
The following information is displayed:
DOS code
E325: Attention
Found a swap file by the name ". Test. java. SWP"
Owned by: Root dated: Wed dec 7 13:52
Date + % Y % m % d-date = "-1 day"
Date usage: Date [Option]… [+ Format]Date [-u | -- UTC | -- Universal] [mmddhhmm [[CC] YY] [. SS]Date can be used to display or set the date and time of the system.1. In terms of display, users can set the format
1. The computer reads the BIOS to load hardware information and complete the hardware self-check. Then, it reads the first device that can be started with BIOS settings.
2. read and execute the Boot Loader (grub, Lilo, spfdisk, and other boot
1 bus
A bus is a channel between a processor and one or more devices. In the Linux device model, all devices are connected through the bus, or even the internal virtual "Platform" bus. Use the bus_type structure to describe.
Struct bus_type {const
3. ktype & kset
3.1 ktype
L is used to describe the common features of a group of kobject, expressed by structkobj_type struct.
Struct kobj_type {
Void (* release) (struct kobject * kobj );
Const struct sysfs_ops * sysfs_ops;
Struct attribute **
Error capture in Linux: Use of errno and strerror
Some errors often occur when calling Linux system APIs. For example, functions such as open () write () creat () will return-1 in some cases, that is, call failure, at this time, you often need to
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