Linux Installation and simple optimization

Source: Internet
Author: User

(i) Install Linux

Press ESC when entering the installation interface

Boot=linux text//installation time input \ Installation mode

Skip---OK---language select "OK"---OK---Select Initialize all "Re-initialize all"---select "Asia/shanghai" OK---Enter the password "OK" (if the password complexity is not enough, please select "Use Anyway ")---Select" Use entire drive "and" OK "---Write changes to disk---Reboot

localhost login:root

Password:123.bmk

(ii) Network configuration

Ifconfig//View IP

cat/etc/resolv.conf//View DNS

NETSTAT-RN//View Gateway

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

onboot= "Yes"

Bootproto=static

Add in this directory

Ipaddr= "IP"

netmask= "Subnets"

gateway= "Gateway"

dns1= "DNS"

ESC---input ": Wq"

/etc/init.d/network Restart//Restart Network

(iii) Configuring the host

Vi/etc/sysconfig/network//change hostname (effective after reboot)

Hostname=zabbix.wtf.local//Change HOSTNAME

ESC---Enter ": Wq"//Save Exit

Hostname zabbix.wtf.local//Temporary VI Change host command

(d) Firewalls

/etc/init.d/iptables Status//view firewall configuration

/etc/init.d/iptables Stop//firewall off

Chkconfig iptables off//boot not boot firewall

(v) Setting up Selnux

Vi/etc/selinux/config//Turn off SELinux

Selinux=disabled

ESC---input ": Wq"


This article is from the "11104762" blog, please be sure to keep this source http://11114762.blog.51cto.com/11104762/1812629

Linux Installation and simple optimization

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.