Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ CentOS 6.5 makes the LAN http source     - Linux system commands to view hardware information (Linux)

- Oracle index visible and hidden (visible / invisible) (Database)

- Oracle RAC upgrade to problems encountered (Database)

- Three minutes to teach you to easily grasp the grep command regular expression (Linux)

- CentOS7 install and configure Nagios (Server)

- Automatic batch resolve dependencies problem locally installed rpm package (Linux)

- Android determine the device network connection status, and determine the connection (Programming)

- How to use tmpfs in RHEL / CentOS 7.0 (Linux)

- Acting on JavaScript events (Programming)

- DOM event handlers add notes (Programming)

- Java Prototype Pattern (Programming)

- A key installation Gitlab 7 on RHEL6.4 and Setup Mail TX (Linux)

- Linux Apache server security (Linux)

- How do I delete a NEEDS RECOVERY rollback state of undo tablespace (Database)

- Linux FAQ - How to fix tar:Exitingwith failure status due to previous errors (Linux)

- Using IntelliJ IDEA 13 integrated development environment to build Android (Linux)

- What is Java EE (Programming)

- CentOS 7 repair MBR and GRUB (Linux)

- SME Linux network security policy server security (Linux)

- SSH configuration under Linux (Linux)

  CentOS 6.5 makes the LAN http source
  Add Date : 2018-11-21      
  Required Components: VM, CentOS-6.5-x86_64-minimal.iso, CentOS-6.5-x86_64-bin-DVD1.iso.

1. First use minimal to install the virtual machine, to minimize the installation;

2. Then carry out some basic configuration;

2.1 virtual machine using NAT mode networking, and find the gateway ip, here is, record the gateway ip;

2.2 Configuring Static IP and Machine Name:

Static ip: (/ etc / sysconfig / network-scripts / ifcfg-eth0) Only the allocation IPADDR, netmask, gateway, dns can be amended ipv6init no

DEVICE = "eth0"
BOOTPROTO = "static"
DNS1 = ""
HWADDR = "00: 0C: 29: 5E: 9D: 9E"
IPV6INIT = "no"

ONBOOT = "yes"
TYPE = "Ethernet"
UUID = "83afb8fd-3d1b-4ab5-bcd1-a1c4493d57b1"

Machine name: (/ etc / sysconfig / network), machine name is set to vm1


Configure the ip map: (/ etc / hosts), vm2 and vm3 belong to a cluster, so do the Hadoop cluster to build the back. vm1 vm2 vm3 vm1
:: 1 localhost localhost.localdomain localhost6 localhost6.localdomain6

Restart the virtual machine (if you just modify the ip, then do not restart can be, but here we change the machine name, so restart a good point).

3. In the terminal, enter ping www.baidu.com test whether there is a network connection, there is description of the network configuration ok.

4. Configure the local source:

4.1 modify the iso file in the virtual machine for the DVD version

4.2 Mount the iso file to the / media / cdrom folder: mkdir / media / cdrom; mount / dev / cdrom / media / cdrom;

4.3 into / etc / yum.repos.d folder you can see:

CentOS-Debuginfo.repo CentOS-Vault.repo
CentOS-Base.repo CentOS-Media.repo

CentOS-D * and CentOS-B * renamed to be followed by a. Bak can, modify the CentOS-Media.repo file:

Name = CentOS- $ releasever - Media
Baseurl = file: /// media / cdrom /
Gpgcheck = 0
Enabled = 1

Gpgkey = file: /// etc / pki / rpm-gpg / RPM-GPG-KEY-CentOS-6

Run yum clean all, yum install vim, if vim successfully installed, then the local yum source configuration is successful.

5. Configure the http source:

5.1 Installing httpd: yum install httpd;

5.2 Shut down the firewall: service iptables stop; chkconfig iptables off; setenforce 0;

Modify SELINUX = "" in the / etc / selinux / config file to disabled.
5.3 re-mount iso to / media / cdrom, copy: cp-R / media / cdrom / Packages / var / www / html / rhel

5.4 Installing createrepo, yum install createrepo *

5.5 Generate the repodata folder, createrepo / var / www / html / rhel;

5.6 modify /etc/httpd/conf/httpd.conf: ServerAdmin root @ vm1 ServerName: vm1: 80;

5.7 Add a myiso.repo file in the /etc/yum.repo.d folder, as follows:

Name = myiso repo
Baseurl = http: // vm1 / rhel
Gpgcheck = 0
Enabled = 1

Gpgkey = file: /// etc / pki / rpm-gpg / RPM-GPG-KEY-CentOS-6

Also rename CentOS-M * to .bak;

5.8 Start httpd: httpd -k start; chkconfig httpd on

Yum install vim If the prompt has been installed, then http http http source configuration is successful;

6. Other machines in the LAN use this http source:

In the case of a consistent network environment:

In / etc / yum.repo.d folder below the new myiso.repo copy to this, while renaming other files (followed by. Bak) can be.

Use yum clean all; yum install vim to test.
- RT-11SJ run at ambient PDP-11 MACRO-11 assembly (Programming)
- Delay for the specified IP port analog network to send and receive packets on Linux (Linux)
- Smack 4.1.x Upgrade Guide (Linux)
- Linux System Getting Started Learning: Using yum to download the RPM package without installing (Linux)
- Linux, set and view environment variables (Linux)
- JBoss7 configuration - Supports IPv4 and IPv6 dual-stack environment (Server)
- SA weak password security system of the security risks posed (Linux)
- Use Observium to monitor your network and servers (Server)
- Linux non-graphical interface to install Oracle Database (Database)
- Linux GCC 5.1.0 compiler installation (Linux)
- Linux disk quota-related instruction (Linux)
- Oracle 11g RAC automatically play GI PSU patch ( (Database)
- Ubuntu install perfectly handsome terminal Guake 0.8.1 (Linux)
- Writing Better Bash build script 8 (Programming)
- Improve the Ubuntu SSH login authentication approach speed (Linux)
- Ubuntu 14.04 and derivative version of the user on how to install cURL 7.37.1 (Linux)
- crontab cause CPU exception Analysis and Processing (Linux)
- How to manage the time and date at systemd Linux systems (Linux)
- System Security: Build Linux with LIDS steel castle (Linux)
- Linux ps command (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.