: Xiao Cheng was released on: 2013-10-811: 31 classification: when the operating system configures multiple servers, it is often necessary to synchronize the time between each server. if the server has an Internet environment, the update time can be
There are three common methods to view the linux kernel version and system information: uname-a; more/etc/issue; cat/proc/version; 2. view apache version information. if the version is installed through yum or rpm, you can use rpm-qa | gerphttpd to
I. mount the local disc mkdir/mnt/cdrom # Create a Mount directory mount-tiso9660/dev/cdrom/mnt/cdrom # mount the disc to the/mnt/cdrom directory ls/mnt/cdrom of course you also you can copy the mounted files to a directory that you think is
Introduction: centos generally has an iptables firewall. because the VPS of the centos system in hyper-v architecture adopts the IPTABLES setting method widely circulated on the Internet, port 22 of ssh cannot be modified, if you modify the ssh port,
1. put the following content to the end of/etc/profile (some systems such as CentOS5.5 may need to end with/etc/bashrc) HISTFILESIZE = 2000 HISTSIZE = 2000 exportHISTTIMEFORMAT = "% Y % m % d-% H % M % S:" exportPROMPT_COMMAND = '{command =
#! /Bin/sh # set the variable bak_path =/root/bak_linuxdate = $ (date + % Y % m % d) log_file = $ bak_path/$ date # log. log # write the execution result to the log: exec1 & gt; $ log_file2 & gt; & amp; 1 # package the directory to be backed up in
1. edit the shell program for log cutting. set the directory to [plain] viewplaincopy # vi/data/nginx/cut_nginx_log.sh and enter the code: [python] viewplaincopy #! /Bin/bash # Thisscriptrunat00: 00 functioncutAccess () {di
1. edit the shell program
Create a user in three steps so that the user has the same permissions as the root user. 1. create an app under root [root @ daddylinux ~] # Useraddapp [root @ daddylinux ~] # Passwdapp2. restrict the app to use the root privilege. edit the mongodo
When I log on to the server through ssh, frequent delays may occur. when I log on to the firewall, I find that the external network port of the firewall has reached 800 M/s. after checking, I find that the traffic on one server is very high. The
In linux system management, we sometimes need to end all processes of a user. Beginners usually first query all the user's PIDs, and then kill them one by one, or write a script. In fact, there are many methods to end. the bloggers summarize the
In the current text editor era, the default Linux editor is still vi or vim. The Linuxvi command discussed in this article will help novice administrators better use vi. This cannot be separated from Linuxvi or its updated version vim. Why? Because
Explain the output of the free command on Linux. The following is the free running result. There are 4 rows in total. For convenience, I added the column number. In this way, we can regard the free output as a two-dimensional array FO (FreeOutput ).
Attach a disk named hda2 to ount/dev/hda2/mnt/hda2-confirm the Directory & #39;/mnt/hda2 & #39; an existing umount/dev/hda2 detach a disk named hda2-first from the Mount point & #39;/mnt/hda2 & #39; exit fuser-km/mnt/hda2 when the device is busy,
Overview when linux has been running for a long time and some partitions do not have available space, you need to delete some files. of course, you are preferred to delete large files. Check the usage of df-lh to find the large file that is larger
By default, the installation is minimized, or, as required, the desktop is not installed when the system is installed. to install the desktop environment, use centos6 as an example, which is slightly different, for other systems, refer to
Some time ago, when developing a system that uses SSD for caching, a large number of disk caches may occur during high-speed data writing. If too many disk caches are not written to the disk in time, it is very dangerous when the machine encounters
In a linux operating system, you often need to create some services. these services are made into shell scripts. these services need to be automatically started when the system starts and closed. In the/etc/rc. d/init. d Directory of the script to
Recently, hadoop was developed on Linux, so I installed a virtualbox virtual machine and installed a centOS system on the virtual machine. Linux is installed, but network configuration is another headache. I mainly want to allow the host machine and
Linux command abbreviations ls: list (list directory content) cd: ChangeDirectory (change directory) su: switchuser switch user rpm: redhatpackagemanager Red Hat packaging tube Linux command abbreviations
Ls: list (list directory content)
Cd:
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.