The basic environment of centos6.5 Nginx+php+mysql

Source: Internet
Author: User
Tags uuid


The first part, the basic environment

One.

Modify IP Address

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

Device=eth0 #接口名称

#HWADDR =00:0c:29:3b:28:82 #物理地址

Type=ethernet

#UUID =7b1faf53-73b4-4a50-844c-fac2b9997a74 #UUID

Onboot=yes #开机启动

Nm_controlled=yes

Bootproto=static #设置为静态地址

ipaddr=192.168.66.176 #IP地址

gateway=192.168.66.6 #网关

netmask=255.255.255.0 #子网掩码

dns1=8.8.8.8 #DNS

dns2=218.85.152.99 #DNS

Arpcheck=no #检查ARP


Two. Modify hostname


    1. Vi/etc/hosts

127.0.0.1 localhost lnmp localhost4 localhost4.localdomain4 #localhost更改为lnmp

:: 1 localhost lnmp localhost6 localhost6.localdomain6 #localhost更改为lnmp

2.vi/etc/sysconfig/network

Networking=yes

Hostname=lnmp #设置主机名为lnmp


Three. Update the wget command

Yum-y Install wget


Four. Change the Yum source

1. cd/etc/yum.repos.d/

2. MV Centos-base.repo Centos-base.repo.bak

3. wget Http://mirrors.163.com/.help/CentOS6-Base-163.repo

4.MV Centos6-base-163.repo Centos-base.repo

5.yum Clean All






The basic environment of centos6.5 Nginx+php+mysql

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.