Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ CentOS 6.5 makes the LAN http source     - J2EE Example of Filter (Programming)

- The practical application of Oracle synonyms + dblink (Database)

- Hadoop 2.6.0 standalone configuration and pseudo-distributed configuration under Ubuntu 14.04 (Server)

- Linux dd command make U disk boot disk (Linux)

- CentOS installation Docker series (Linux)

- Install Oracle database error process of [INS-35172] (Database)

- Build a super simple "hardware" firewall router (Linux)

- The next key to install Linux bash script PowerShell (Linux)

- Linux_Logo - output color ANSI Linux distributions logo command-line tool (Linux)

- Linux Log Clear (Linux)

- What Java 8 fastest garbage collector (Programming)

- Install Rubinius testing Ubuntu 14.04 native threads (Linux)

- Installation through the network Debian 7 (Wheezy) (Linux)

- APT-GET commonly used Linux command (Linux)

- Ubuntu install code editor Sublime Text 3 (Linux)

- Sshuttle A VPN-based transparent proxy that uses ssh (Server)

- CentOS 6 compiling httpd-2.4.10 (Server)

- AngularJS - Custom instructions (Programming)

- Bubble Sort Algorithms (Programming)

- Use SecureCRT to transfer files between Linux and Windows (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.
- Java Annotation Comments (Programming)
- Security Configuration SQL Server 2000 database tutorial (Linux)
- VMware installed Linux system and JDK deployment (Linux)
- Use Nginx as a load balancer (Server)
- Some problems and countermeasures Linux system calls exist (Linux)
- Terminal multiplexing tool tmux use (Linux)
- Docker: installation under Ubuntu (Server)
- Vi editor Introduction (Linux)
- Testing Oracle 11g RMAN replicate database (Database)
- Java logging performance of those things (Programming)
- Using Vagrant to build multi-platform environment (Server)
- Depth understanding of the use of Spring Redis (Programming)
- RVM installation instructions (Linux)
- Teach you how to protect the Linux operating system security tips (Linux)
- RedHat Linux 6.5 Enterprise Edition installation Redis 3.0.3 (Database)
- MySQL main and backup replication structures (using mysqld_multi) (Database)
- Linux installation JDK1.6 rpm.bin assembly (Linux)
- Redis application of Sina Weibo (Database)
- In-depth understanding of PHP ini configuration (Server)
- Android float ball and boot from the start (Programming)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.