CentOS7.1 KVM virtualization environment preparation

  A, basic platform   1. a computer with VMware Windows systems (networking)   2.CentOS7.1 64bit mirrors Second, minimizing a CentOS installation 7.1 VMware virtual machine system “CentOS KVM01“   Requirements: 4G, hard 100G, CPU memory 8 cores (tick in theVirtualization engine: Virtualize Intel VT-x/EPT or AMD-V/RVI, ordoes not support virtualized configurations), minimal installation,turn off […]

View the CPU CentOS physical number, audit, the

Number one, first and foremost a physical CPU, the concept of audit, the number of logical CPU 1. physical CPU count: actual number insert the CPU on the motherboard, unique physical ID number can have several (physical ID) 2.CPU: single CPU can handle data the number of chipsets, such as dual-core, quad-core (CPU cores)

CentOS – add user to sudoers

After installing your system, CentOS default regular users are unable to use the sudo command, then we need to join the logged in user in the/etc/sudoers file Assume that the user name is Tom Switch to super user: $ Su– Open/etc/sudoers file: $/sudoers Modify the file contents: Find the root ALL= (ALL) ALL line Insert […]

Autostart applications in CentOS

Autostart applications in CentOS In CentOS to add services (applications) in startup chkconfig service exists. Provided that these services are installed from the repository with the command yum. To enable AutoStart, i.e. for an application to run at startup of the server (operating system), you must run the following command: # chkconfig service_name on However, […]

How to Uninstall rpm package without uninstalling dependent

First  rpm -q < keyword > can query the RPM package name And then call rpm -e < package name > delete particular rpm package If you experience depend on cannot be deleted using rpm -e –nodeps  < package name > checks not rely on directly remove RPM package If you have more than one package […]

Prohibited ipv6 module on centos

Follow the steps below to disable the ipv6 module: #chkconfig ip6tables off #vim /etc/modprobe.d/dist.conf The last to join, pay attention to the format alias net-pf-10 off options ipv6 disable = 1 #vim / etc / hosts # :: 1 localhost localhost6 localhost6.localdomain6 The final restart to take effect Then look no ipv6 is not #lsmod […]

study file system type under CentOS

1, with superuser privileges landing Linux, enter /lib/modules/2.6.32–504.el6.x86_64/kernel/fs directory ls command (different Linux distributions Fs directory you can find some different FS folder The way to find it). As shown below: Here we are at the development of the advantages and disadvantages of the most common file system for a few details: ext, ext2, ext3, […]

Incremental backup system file shell script

Today to write a shell script using an incremental backup system files, incidentally review the relevant shell script commands, the script according to their different needs to back up files or folders, complete and incremental backups. Direct the script as follows: #!/bin/sh #Automatic Backup Linux System Files #Author wugk 2013-11-22 #Define Variable SOURCE_DIR=(     $* ) TARGET_DIR=/data/backup/ […]

mysql database backup script

#!/bin/bash DBName=myql DBUser=root DBPasswd=123456 BackupPath=/root/ LogFile=/root/db.log DBPath=/var/lib/mysql/ NewFile=”$BackupPath”db$(date + %Y%m%d).tgz DumpFile=”$BackupPath”db(date + %Y%m%d) OldFile=”$BackupPath”db(date +%Y%m%d –date=’5 days ago’).tgz echo “——————————————-” >> $LogFile echo $(date +”%y-%m-%d %H:%M:%S”) >> $LogFile echo “————————–” >> $LogFile if [ -f $OldFile ] then rm -rf $OldFile >>$LogFile 2>&1 echo “[$OldFile]Delete Old File Success!” >> $LogFile else echo “[$OldFile]No Old Backup […]

CentOS key configure shell script rsync Server

1, save the following code to a file, upload it to the server, the name rsync.sh) #!/bin/bash #rsync Written by zhumaohai #For more information please visit http://www.centos.bz echo “Please input the rsync username:” read username echo “Please input the rsync username password:” read password echo “Please input the allow ip address:” read allowip echo “Please […]