Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ CentOS 6.5 makes the LAN http source     - See how --nand flash timing diagram of a read operation Comments (Programming)

- After you change the GRUB boot disk partition repair (Linux)

- CentOS 6.0 system security level (Linux)

- Swift acquaintance of values and references, the circular reference, Agent Precautions (Programming)

- Binding unofficial Google Drive and Ubuntu 14.04 LTS (Linux)

- Ubuntu 14.04 LTS next upgrade gcc to gcc-4.9, gcc-5 version (Linux)

- Compile and install Redis and register as a system service under RedHat5.8 environment (Database)

- How to contribute code on GitHub uploads (Linux)

- Oracle 11g RMAN virtual private directory (Database)

- in no backup ex: error: Xin Tourou ah backup child process has Singles DAT / US person / bin / in no backup ex (Database)

- Java Concurrency - multiple threads of HelloWorld (Programming)

- Linux installation Jetty deployment under RedHat5 8 (Linux)

- HBase Application Development Review and Summary of Series (Database)

- Depth understanding of JavaScript new mechanism (Programming)

- CentOS 6.5 configuration SSDB 1.8.0 (Server)

- Ubuntu How to install screen recording tool Simple Screen Recorder 0.3.1 (Linux)

- Linux - EXT2 file system is described in detail (Linux)

- A deep understanding of Java enum (Programming)

- Binder began to talk about inter-process communication mechanism from Android AIDL (Programming)

- MySQL stored procedures execute dynamic sql statement (Database)

  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.
- Oracle11g Trigger Debugging Record Error: PLS-00201: identifier SYS.DBMS_SYSTEM 'must be declared (Database)
- Programmer editor Vim (Linux)
- Python console achieve progress bar (Programming)
- Security enhancements in Ubuntu ssh service (Linux)
- Linux Getting Started tutorial: Experience VirtualBox Virtual Machine chapter (Linux)
- How to configure Ceph stored on CentOS 7.0 (Server)
- To configure Samba to share files with Windows under CentOS (Linux)
- Linux System Administrator Network Security Experience (Linux)
- JavaScript prototype and the prototype chain (Programming)
- The difference between statement and preparedStatement of the jdbc (Database)
- Cacti installation deployment under CentOS 6.6 (Server)
- Linux landing problem (Linux)
- Java synchronization mechanism used in locking Thought (Programming)
- 10 useful tools for Linux users (Linux)
- Oracle 11g forget approach SYS and SYSTEM password (Database)
- sudoers file parsing (Linux)
- PostgreSQL 9.4.3 Installation and Configuration under CentOS 6.5 (Database)
- Through Oracle to help restore MySQL data problems (Database)
- MongoDB fragmentation (Cluster) (Database)
- C # using the HttpClient Note: Preheat the long connection (Programming)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.