Initial Server Setup and Configurations On CentOS 7
Initial Server Setup and Configurations On CentOS 7
RedHat RHCSA and RHCE Certi cation eBook Based on RHEL 8 Get This Book
CENTOS 5 I TecMint :
and Configurations
on CentOS 7
by Matei Cezar | Published: October 9, 2017 |
Last Updated: October 25, 2017
https://www.tecmint.com/centos-7-initial-server-setup-and-configuration/ 1/20
5/7/2020 Initial Server Setup and Configurations on CentOS 7
Linux Certi
RedHat RHCSAcations
and- RHCSA
RHCE/ RHCE
Certi cation eBook Based on RHEL 8 Get This Book
Certi cation | Ansible Automation
Certi cation | LFCS / LFCE Certi cation
Requirements
CentOS 7 Minimal Installation
Update CentOS 7
System
Linux Foundation Certi cation
The rst step you need to perform on a Exam Study Guide to LFCS and LFCE
fresh installed CentOS system is to
make sure the system is up-to-date with
the latest kernel and system security
patches, software repositories and How to Add Linux Host to Nagios Monitoring
packages. Server Using NRPE Plugin
To fully update a CentOS 7 system, How to Install Nagios 4.4.5 on RHEL/CentOS 8/7
and Fedora 30
issue the following commands with root
privileges. Install Cacti (Network Monitoring) on
RHEL/CentOS 8/7 and Fedora 30
RedHat RHCSA
# yum and RHCE Certi cation eBook Based on RHEL 8
check-update Get This Book
How to Install Ubuntu Alongside With Windows 10
# yum upgrade or 8 in Dual-Boot
# nmtui-hostname
https://www.tecmint.com/centos-7-initial-server-setup-and-configuration/ 4/20
5/7/2020 Initial Server Setup and Configurations on CentOS 7
RedHat RHCSA and RHCE Certi cation eBook Based on RHEL 8 Get This Book
# nmtui-edit
RedHat RHCSA and RHCE Certi cation eBook Based on RHEL 8 Get This Book
In order to apply the network interface
new con guration, execute nmtui-
connect command, select the interface
you want to manage and hit on
Deactivate/Activate option to
decommission and rise-up the interface
with the IP settings, as presented in the
below screenshots.
# nmtui-connect
# ifconfig enp0s3
# ip a
# ping -c2 google.com
https://www.tecmint.com/centos-7-initial-server-setup-and-configuration/ 6/20
5/7/2020 Initial Server Setup and Configurations on CentOS 7
Other useful
RedHat RHCSA utilities that can
and RHCE be used
Certi toeBook Based on RHEL 8
cation Get This Book
manage speed, link state or obtain
information about machine network
interfaces are ethtool and mii-tool.
# ethtool enp0s3
# mii-tool enp0s3
# netstat -tulpn
# ss -tulpn
https://www.tecmint.com/centos-7-initial-server-setup-and-configuration/ 7/20
5/7/2020 Initial Server Setup and Configurations on CentOS 7
# lsof
RedHat -i4
RHCSA -6 Certi cation eBook Based on RHEL 8
and RHCE Get This Book
Manage Services in
CentOS 7
CentOS 7 manages daemons or service
via systemctl utility. In order to list all
services state, issue the following
command.
# systemctl list-units
# systemctl list-unit-fi
https://www.tecmint.com/centos-7-initial-server-setup-and-configuration/ 8/20
5/7/2020 Initial Server Setup and Configurations on CentOS 7
# chkconfig --list
# chkconfig service_name
5. Disable Unwanted
Services in CentOS 7
It’s recommended after installing
CentOS 7, to list what services are
running in the system by running the
above commands and disable and
remove them in order to reduce the
attacks vectors against your system.
https://www.tecmint.com/centos-7-initial-server-setup-and-configuration/ 9/20
5/7/2020 Initial Server Setup and Configurations on CentOS 7
servicesRHCSA
RedHat are running in yourCerti
and RHCE system and eBook Based on RHEL 8
cation Get This Book
disable or remove them.
Enable Firewall in
CentOs 7
Firewalld is the main rewall utility that
uses interacts with in order to manage
iptables rules.
To enable and start and verify the
rewall in CentOS 7, execute the
following commands.
rewalldRHCSA
RedHat rules and,
andthen,
RHCEadd the cation
Certi rule eBook Based on RHEL 8 Get This Book
for the service, as shown in the below
example which allows SSH incoming
connections. Use --permanent switch
to add the rule permanently.
# firewall-cmd --add-ser
# firewall-cmd --add-ser
# firewall-cmd --add-ser
# firewall-cmd --add-por
# firewall-cmd --reload
Enable Sudo
Permissions on User
Accounts
https://www.tecmint.com/centos-7-initial-server-setup-and-configuration/ 11/20
5/7/2020 Initial Server Setup and Configurations on CentOS 7
In orderRHCSA
RedHat to grantand
rootRHCE
permissions for a eBook Based on RHEL 8
Certi cation Get This Book
normal user, rst create the user by
issuing adduser command, set the
password for the user and grant root
permissions to the user by executing
the below command which adds the
new user to the administrative wheel
group.
# adduser tecmint
# passwd tecmint
# usermod -aG wheel tecm
# su - tecmint
# sudo yum update
https://www.tecmint.com/centos-7-initial-server-setup-and-configuration/ 12/20
5/7/2020 Initial Server Setup and Configurations on CentOS 7
Key Authentication on
CentOS 7
In order to secure SSH your server and
set up public key authentication to
increase the security of your server with
a private SSH key to log in, rst
generate a SSH Key Pair with a
following command.
# ssh-keygen -t RSA
# ssh-copy-id remote_use
# ssh remote_user@SSH_SE
https://www.tecmint.com/centos-7-initial-server-setup-and-configuration/ 13/20
5/7/2020 Initial Server Setup and Configurations on CentOS 7
Finally, in
RedHat order to
RHCSA andsecure
RHCEthe SSHcation eBook Based on RHEL 8
Certi Get This Book
server, make sure you disallow remote
SSH access to the root account by
opening the con guration SSH le
/etc/ssh/sshd_con g with your text
editor as root and change it from Yes
to No .
PermitRootLogin no
https://www.tecmint.com/centos-7-initial-server-setup-and-configuration/ 14/20
5/7/2020 Initial Server Setup and Configurations on CentOS 7
SharingRHCSA
RedHat is Caring...
and RHCE Certi cation eBook Based on RHEL 8 Get This Book
If You Appreciate
What We Do Here On
TecMint, You Should
Consider:
https://www.tecmint.com/centos-7-initial-server-setup-and-configuration/ 15/20
5/7/2020 Initial Server Setup and Configurations on CentOS 7
RedHat RHCSA and RHCE Certi cation eBook Based on RHEL 8 Get This Book
Tags: CentOS 7 Initial Con gurations
RedHat RHCSA
17 and RHCE
40 Certi cation
7 eBook Based on RHEL 8 Get This Book
Disable
Certain
How to 13 Basic Package
Con gure Cat Updates
LDAP Command using YUM
Client to Examples in RHEL /
Connect in Linux CentOS /
External Fedora
25 AUG,
Authentica 2012 28 SEP, 2012
tion
13 DEC,
2018
5 RESPONSES
Comments 5 Pingbacks 0
Ravi Saive
October 30, 2019 at 11:45 am
@Lester,
Follow this article to setup
Zimbra on CentOS.
Reply
Narendra
December 13, 2018 at 1:09 am
Hi, This is Narendra,
I Want to install the CentOS on my
windows10 operating system as you
know Windows recently added an
option for developer.
Through that how can i know install
the CentOs.
https://www.tecmint.com/centos-7-initial-server-setup-and-configuration/ 17/20
5/7/2020 Initial Server Setup and Configurations on CentOS 7
Reply
RedHat RHCSA and RHCE Certi cation eBook Based on RHEL 8 Get This Book
Ravi Saive
December 13, 2018 at 11:21
am
@Narendar,
You mean CentOS Dual Boot
with Windows? if yes, you
should read this article –
https://www.tecmint.com/ins
fedora-27-with-windows-10-
or-8-in-dual-boot/
Reply
Comment
Name * Email *
Website
https://www.tecmint.com/centos-7-initial-server-setup-and-configuration/ 18/20
5/7/2020 Initial Server Setup and Configurations on CentOS 7
Notify meand
RedHat RHCSA of followup
RHCE comments
Certi cation eBook Based on RHEL 8 Get This Book
via e-mail. You can also subscribe without
commenting.
Post Comment
QUESTIONS
How to Install Zabbix Agent 6 Best CCleaner
and Add Windows Host to Alternatives for Ubuntu
Zabbix Monitoring – Part 4 10 Core Linux Interview
Questions and Answers 16 Best Open Source Video
How to Install Zabbix on Players For Linux in 2020
RHEL 8 Shilpa Nair Shares Her
Interview Experience on 10 Best Clipboard
3 Ways to Check Apache RedHat Linux Package Managers for Linux
Server Status and Uptime Management
in Linux 10 Top Open Source
10 Useful Interview Caching Tools for Linux in
Install Glances, In uxDB Questions on Linux 2020
and Grafana to Monitor Services and Daemons
CentOS 7 6 Best PDF Page Cropping
11 Basic Linux Interview Tools For Linux
How to Install Nagios Questions and Answers
Monitoring Tool on RHEL 8
10 Interview Questions and
Answers on Various
Commands in Linux
https://www.tecmint.com/centos-7-initial-server-setup-and-configuration/ 19/20
5/7/2020 Initial Server Setup and Configurations on CentOS 7
RedHat RHCSA and RHCE Certi cation eBook Based on RHEL 8 Get This Book
https://www.tecmint.com/centos-7-initial-server-setup-and-configuration/ 20/20