Start from the beginning Linux-centos

Source: Internet
Author: User


Test environment, one of the following
Centos-6.5-x86_64-minimal.iso
Centos-7-x86_64-minimal-1511.iso

The first step of system detection and optimization, that is, initialization work,
Regular type of

Rpm-qa|wc-l
IP addr
Ping qq.com
Cat/var/log/boot.log

The following is the c65 shutdown IPv6 and firewall
Centos-6.5-x86_64-minimal.iso
Sed-i ' $a \alias net-pf-10 off \nalias ipv6 off '/etc/modprobe.d/dist.conf
grep ' IPv6 '/etc/modprobe.d/dist.conf
Chkconfig--level 2345 Ip6tables off
Chkconfig--level 2345 iptables off
Chkconfig--list|grep iptables
Service Iptables Stop
Service Ip6tables Stop

Minimal installation is not a firewall service
Centos-7-x86_64-minimal-1511.iso
[Email protected] ~]# cat/etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
[Email protected] grub2]# Vi/etc/default/grub
Will grub_cmdline_linux= "Rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet"
Change to grub_cmdline_linux= "ipv6.disable=1st.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet"
Add ipv6.disable=1, regenerate grub.cfg, and restart the system.
[Email protected] grub2]# Grub2-mkconfig-o/boot/grub2/grub.cfg
Generating GRUB configuration file ...
Found Linux Image:/boot/vmlinuz-3.10.0-327.el7.x86_64
Found initrd Image:/boot/initramfs-3.10.0-327.el7.x86_64.img
Found Linux Image:/boot/vmlinuz-0-rescue-1ace541fd97c40e6a45fd1f7062adae8
Found initrd Image:/boot/initramfs-0-rescue-1ace541fd97c40e6a45fd1f7062adae8.img
Done


Cp/etc/selinux/config./
Sed-i ' s/selinux=enforcing/selinux=disabled/g '/etc/selinux/config
Diff Config/etc/selinux/config
Setenforce 0


The following is the c65 to set, c72 may not need the following.
Sed-i ' s/tty\[1-6\]/tty\[1-2\]/g '/etc/init/start-ttys.conf
Sed-i ' s/tty\[1-6\]/tty\[1-2\]/g '/etc/sysconfig/init
Reboot

The second step is specific to an application and function,
Task-based

1. Install the lxc,c7.2 environment
Yum Install Epel-release
Yum Install LXC
Lxc-checkconfig//Start detection, some items are missing status
RPM-QL Lxc|more
RPM-QL Lxc-libs|more
Yum Install Libcgroup//No dependencies
Yum Install Lxc-templates

Service Cgconfig Start
Service LXC Start
After startup, a lot of directories and files are generated in the/cgroup directory


2. Scan the network segment and log in to a Linux machine to view hardware and system configuration

Yum install--disablerepo=epel Nmap or directly below the
Yum Install Nmap

Nmap 192.168.10.0/24
SSH 192.168.10.45
Lscpu
Cat/proc/cpuinfo
Yum Install Pciutils
Lspci

3. Grab Bag
Yum Install tcpdump


Start from the beginning Linux-centos

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.