New centos installation steps, U disk installation greater than 4G system solution

Source: Internet
Author: User
Tags install perl openldap

New install centos (mini)


1. No Internet access

1. VI/etc/resolv. conf

Nameserver 8.8.8.8

2. Initial files in the VM

VI/etc/sysconfig/network-scripts/ifcfg-eth0

Device = eth0

Hwaddr = 00: 0C: 29: 25: AC: 36

Type = Ethernet

UUID = ec37da45-eaca-4b61-baf6-a755ee277faa

Onboot = No // change "yes" to enable the network.

Nm_controlled = Yes

Bootproto = DHCP

// Possible configurations of a single server

Deivce = eth0

Bootproto = none

Onboot = Yes

127.0.0.1

Type = Ethernet

Hwaddr = 00: 11: 44: BD: RG: 5E

Ipaddr = 192.168.1.141

Netmask = 255.255.255.0

Network = 192.168.1.0

Gateway = 192.168.1.1

3. Modify the hostname

Enter the hostname directly, or CAT/proc/sys/kernel/hostname to view the hostname of the local machine;

Modify the hostname of the Linux system at runtime without restarting the system.

# Hostname newname // The modification is lost after restart

# Vi/etc/sysconfig/Network

Hostname = newname // It takes effect permanently and changes after restart. The current shell remains unchanged [email protected]

Ii. Yum Source

1. Yum install

Wget // download an object

Curl curl-dev // For git networking

Perl // install VM tools

// Install MySQL dependent libraries and development tools

Yum-y install GCC gcc-C ++ Autoconf libjpeg-devel libpng-devel FreeType-devel libxml2 libxml2-devel zlib-devel glibc-devel glib2 glib2-devel Bzip2 bzip2-devel ncurses- devel curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn-devel OpenSSL-devel OpenLDAP openldap-devel nss_ldap openldap-clients openldap-servers

// Install nginx

Yum-y install PCRE-devel zlib-devel

// Install PHP

Yum-y install Gd-devel libjpeg-devel libpng-devel FreeType-devel libxml2-devel curl-devel FreeType-devel

2. Change the domestic source

CD/etc/yum. Repos. d

MV CentOS-Base.repo CentOS-Base.repo.bak

Wget http://mirrors.163.com/.help/CentOS6-Base-163.repo

MV CentOS6-Base-163.repo CentOS-Base.repo

Yum clean all

3. Install the desktop environment

1. Yum groupinstall "X Window System" "desktop"

// The online saying "GNOME desktop environment" is an old version

2. Set startup Desktop

VI/etc/inittab

ID: 5: initdefault

Changed:

ID: 3: initdefault

3. desktop settings

Applications --> System Tools --> right-click Terminal and send it to the desktop or upper-side taskbar;

System --> preferences --> File Management --> behavior check always open in browser windows, just like accessing the file system in windows.

4. Resolution Adjustment

4. 1. Install VM tools

VM --> install VM tools (you need to drag the file out and decompress it. The default desktop)

Tar-zxvf vmwaretools

CD vmware-tools-distrib

Yum install Perl

/Vmware-install.pl

4. Install Chinese support

1. Yum install "@ Chinese support ";

2. System --> preferences --> Input Method Add PinYin Input Method to the list and log on again.


New install centos (BIN)

Ii. centos System for http://www.jspxcms.com/knowledge/140.html U Disk

1. Prepare a USB flash drive larger than 8 GB.

 

2. mount a USB flash drive to a VM.

 

3. Check the current disk status

Fdisk-l

// The USB flash drive is usually/dev/sdb.

 

4. There are two zones, the first FAT32, about 250 m. The rest is ext3.

Fdisk/dev/SDB

// Delete all partitions. Repeat multiple times until all partitions are deleted.

// No partition is defined yet!

D

// Create a partition

N

P

1

<Enter>

+ 250 m

// Modify the partition type to w95 FAT32

T

B

// Create the second partition

N

P

2

<Enter>

<Enter>

// Start zone flag

A

1

W

 

5. Format

// Download the formatting Tool

Yum install dosfstools

Mkfs. vfat-N boot/dev/sdb1

Mkfs. ext3-M 0-B 4096-l data/dev/sdb2

 

6. Re-plugging the USB flash drive

 

7. mount a USB flash drive

Mkdir/Media/boot

Mount/dev/sdb1/Media/boot

Mkdir/Media/Data

Mount/dev/sdb2/Media/Data

 

8. Mount centos dvd1

// Go to the installation CD directory, and/mnt/HGFS/centos is the directory on the author's machine. The reader can adjust the directory based on the actual situation.

CD/mnt/HGFS/centos

Mkdir/mnt/tmp

Mount-T iso9660 CentOS-6.4-x86_64-bin-DVD1.iso/mnt/tmp-o loop, Ro

 

9. Copy the isolinux and images files to the USB flash drive boot partition.

CP-r/mnt/tmp/isolinux/Media/boot/

CD/Media/boot/

MV isolinux syslinux

MV syslinux/isolinux. cfg syslinux/syslinux. cfg

CP-r/mnt/tmp/images/Media/boot/

 

10. Install syslinux

Yum install syslinux

Syslinux/dev/sdb1

 

11. copy images, dvd1, and dvd2 to the USB flash drive data partition.

CP-Pr/mnt/tmp/images/Media/data/

CD/mnt/HGFS/centos/

For I in 1 2; do CP-V CentOS-6.4-x86_64-bin-DVD $ {I}. ISO/Media/data/; sync; done

 

12. unmount the USB flash drive

Umount/mnt/tmp

Umount/Media/boot

Umount/Media/Data

Install software

1. Install mysql5.5

1. Delete the original MySQL Source

Rpm-Qa | grep-I MySQL

Rpm-e-nodeps MySQL _*

Delete the source using Yum remove MySQL _*

Copy the file to/usr/local/src

Rpm-IVH MySQL _*

Yum install MySQL

2. source code compilation and Installation

// Dependent libraries and development tools

Yum-y install GCC gcc-C ++ Autoconf libjpeg-devel libpng-devel FreeType-devel libxml2 libxml2-devel zlib-devel glibc-devel glib2 glib2-devel Bzip2 bzip2-devel ncurses- devel curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn-devel OpenSSL-devel OpenLDAP openldap-devel nss_ldap openldap-clients openldap-servers

// Install MySQL

Yum-y install bison GCC gcc-C ++ Autoconf automake zlib * libxml * ncurses-devel libtool-ltdl-devel * mysql-devel

3. After mysql5.5, do not use configure for installation, use cmake

Wget http://www.cmake.org/files/v2.8/cmake-2.8.6.tar.gz

Tar-zxvf cmake-2.8.6.tar.gz

CD cmake-2.8.6/

./Configure

Make & make install

4. MySQL configuration user

Groupadd MySQL

Useradd-r-g MySQL

CD/usr/local

Tar-zxvf/usr/local/src/mysql-VERSION-OS.tar.gz

Ln-s full-path-tomysql-version-OS MySQL

CD MySQL

Chown-r MySQL.

Chgrp-r MySQL.

Scripts/mysql_install_db -- user = MySQL

Chown-r root.

Chown-r Mysql Data

// My-medium,-large, and so on are determined by the memory of the test machine.

CP support-files/my-huge.cnf/etc/My. CNF

Bin/mysqld_safe -- user = MySQL &

CP support-files/MySQL. Server/etc/init. d/MySQL. Server

Ii. Install nginx

Yum-y install PCRE-devel zlib-devel

3. install PHP

Yum-y install Gd-devel libjpeg-devel libpng-devel FreeType-devel libxml2-devel curl-devel FreeType-devel


This article is from the "Blood Java" blog, please be sure to keep this source http://sunrain990.blog.51cto.com/3700585/1550505

New centos installation steps, U disk installation greater than 4G system solution

Related Article

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.