Installation and configuration CenOS-7

 1, partition tips:

Database Configuration:

 / 100-200G

/boot  200m

swap memory 1.5-2 times

/data 800G 

(Recommended lvm partition slight loss in performance)

Application Configuration

/boot 200m

swap memory 1.5-2 times

/  200G

2, configure telnet

(1) configure a local source yum

/etc/yum.repos.d/CentOS-Base.repo back up the configuration file, and then modify

The mirrorlist all commented out, will baseurl all changed file: /// mnt

(2) mount the mirror mounting plate

Determining whether to mount the mirror mounting plate, after loading with mount / dev / cdrom / mnt

The mirror mount to / mnt

(3)yum clean all

yum makecache

yum list

Upon completion can be directly installed yum

(4) mounted telnet

# yum install telnet

# yum install telnet-server

# yum install xined

Verify: # rpm -qa grep telnet

# rpm -qa grep xined

After the installation is complete, xinetd, telnet service added boot from the start:
# systemctl enable xinetd.service 

# systemctl enable telnet.socket 

Start Service

systemctl start xinetd.service

systemctl start telnet.socket

verification:

systemctl status telnet.scoket

systemctl status xinetd

(5) Enable the root login

Directly mv / etc / securetty securetty.bak

(6) turn off the firewall

Temporary closure systemctl stop firewalld

Permanently closed systemctl disable firewalld

At this point we can have a telnet

After the telnet connection is recommended to install ssh and telnet ban

 

Guess you like

Origin www.cnblogs.com/hiroren/p/12330143.html