Modify the swap size in CentOS (it will take effect if it is not shut down)

Free-m check whether swap is larger than memory size, otherwise, expand swapswapoff-acd/logs =/dev/zeroof = swapfilebs = 1 Mcount = 4096 mkswapswapfile # activate the swap file swaponswapfilefree-m and directly copy the following command: -----------

Configure rdate server in CentOS

: 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

View apache, php, and mysql versions in CentOS

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

CentOS6.3 configure local source

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

The correct method for disabling ping and iptables configuration on the centosvps server

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,

Add user operation logs to CentOS

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 =

CentOS system backup script

#! /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

Automatic log cutting generated by nginx on the CentOS server

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 users with the same permissions as root in three steps in CentOS

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

Search for bots on the CentOS server

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

CentOS can end all processes of a user.

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

Essential for beginners of CentOS: Linuxvi command

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

Free command in CentOS

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 ).

CentOS common mounting commands

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,

Find and delete large files on the hard disk in CentOS

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

Centos desktop environment installation

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

Disk cache in Linux

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

CentOS boot service and chkconfig usage.

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

Configure the centOS network for virtualbox virtual machine

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

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:

Total Pages: 2732 1 .... 2612 2613 2614 2615 2616 .... 2732 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.