Many do not even suspect that all services andthe services we use on the Web are based on exactly the same computers that work in our apartments, they are only set up in a completely different way, they can not boast of a beautiful graphical interface and are managed with the help of specialized teams. These computers are called servers. People who know, of course, know how to configure and "raise" their own server. Those who are new to this business need to study more than one forum in order to finally get used to it. One thing is for sure: to configure an inexpensive and stable server, you must choose the same inexpensive and stable foundation, namely, a Linux-based operating system. The choice of the majority falls on CentOS 7. This material contains a brief information on how to make the installation of CentOS 7 and create a base server on its basis.
CentOS is a Linux distribution, the mainwhose dignity is stability. This system, like the closest competitor Fedora, was built on the source code of the Red Hat Linux distribution kit. The latter, in turn, is an ideal tool for system administrators, which require predictability, stable operation and convenient management.
CentOS can not boast the latestversions of packages, unlike Fedora, but every system administrator will be only happy when Fedora or another modern distribution with its fresh packages "falls", and CentOS will continue to work quietly, regardless of the circumstances. This article briefly describes the configuration and installation of CentOS 7, the main features of the system and the working environment.
Before installing CentOS 7, you must download the operating system distribution package on the official website.
There are several boot options:
Among the boot files, you can find two"Live" disk image with two different working environments (KDE and Gnome). These images are suitable for those who want to test the system in the case before installing on the hard drive.
Even if you select a minimal image, CentOS 7 prompts you to use the graphical interface to install the system on the hard drive.
This process takes place in 6 basic steps:
Once the data is entered, it will be necessary to createprofile users and specify the root password. After the installation process is complete, the computer restarts and prompts you to start the new operating system.
Here in brief we'll talk about how to deploy a universal server based on CentOS 7 with the minimum set of necessary tools that are required for its full-fledged work.
So, first you need to find the server itself. It can either be hired on the Web (from 250 rubles), or configured on a local machine. The only thing that is required is the SSH data that will be used to log into the server. Let's take as an example the abstract email address [email protected] and the username with the password is also centos.
Start the configuration by creating the user and granting him all the necessary rights:
Next, you must specify the host name. This can be done with the command hostnamectl set-hostname server1.centos.net.
After that you need to disable the Firewall and SeLinux.It is necessary to do this in order to not accidentally deprive yourself of the rights to access the server. You can pause the operation of the Firewall using the systemctl stop firewalld and systemctl disable firewalld commands. The situation with SeLinux is a bit more complicated: you need to open the corresponding configuration file in the Vi text editor with vi / etc / selinux / config, find the line SELINUX = enabled there and replace it with SELINUX = disabled. Then you need to reboot the system.
The next step in the configuration is to install SSH.
To do this you need:
Also, you need to update all systems and install the epel and rpmforge repositories. To do this you need:
To install additional components in the existing server frame, you will need to check and disable some services and MTA services.
For this you need:
Then you need to download Apache and PHP, necessary for the full operation of our server.
So, for this:
Before installing MySql in CentOS7, it is worthwhile to clarify that when using the standard Yum download manager the system downloads an alternative version of the program under the name MariaDB, so in the case of CentOS it is necessary to go bypass.
To install MySql you need:
To install Zabbix in CentOS 7, you need to find the latest version of the client on the official developer site and then install it on the system.
To do this you need:
Before you install Zimbra in CentOS 7, you need to prepare a system for this.
So, you need to do the following: