Fresh Installed Centos 7
Top things to do with Fresh Installed Centos 7
I just finished installed Centos 7
Before we started to develop or for example installing Control Panel for Centos 7 server.Below are list of things that I usually do to make sure the development process is smooth.
yum groupinstall "Development Tools" -y
yum install psmisc net-tools systemd-devel libdb-devel perl-DBI xfsprogs rsyslog logrotate crontabs file vim locate -y
Remember to disable SELinux and also change the SSH port.
Disabling SELinux permanently :
cp /etc/sysconfig/selinux /etc/sysconfig/selinux.bakcat /etc/sysconfig/selinux.bak | sed s/"SELINUX=enforcing"/"SELINUX=disabled"/g > /etc/sysconfig/selinux
Disabling SELinux temporary :
setenforce 0
Below is an example of command that will change SSH port to 9999:
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
cat /etc/ssh/sshd_config.bak | sed s/"#Port 22"/"Port 9999"/g > /etc/ssh/sshd_config; service sshd restart
Once done, you may proceed to reboot after updating system :
yum update -y; reboot
Last updated
Was this helpful?