Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ To install minimize RHEL / CentOS 7     - Log4Net (Linux)

- 10 Best Swift Tutorial examples (Programming)

- Boost - Memory Management - smart pointers (Programming)

- New experience Budgie (Budgerigar) desktop environment (Linux)

- To configure parameter configuration and software installation and uninstallation under Linux (Linux)

- Use PDFBox processing PDF documents (Linux)

- Live Wallpaper for Linux release adds dynamic background (Linux)

- Delegate in C # (Programming)

- C ++ in the elimination Wunused (Programming)

- The Oracle VM VirtualBox use U disk under ubuntu (Linux)

- Linux Getting Started tutorial: hard disk partition and to deal with traps (Linux)

- Installation Atom text editor on Mint Ubuntu / Linux (Linux)

- MySQL partition table Comments (Database)

- How to use Monit to deploy a server to monitor the system (Server)

- Source install Python3.4 on CentOS (Linux)

- Linux foreground to background process switch (Linux)

- Ubuntu 14.04 build Hadoop 2.5.1 standalone and pseudo-distributed environment (32-bit) (Server)

- Docker: Mirroring and container operations (Server)

- Getting Started with Linux system to learn: how to install the kernel headers on Linux (Linux)

- GROUP BY extension (Database)

  To install minimize RHEL / CentOS 7
  Add Date : 2018-11-21      
  1. Install PHP

PHP is a server-side scripting language for web based services. It is also often used as a general-purpose programming language. Install PHP minimizing installation of CentOS in:

# Yum install php
After installing php, confirm to restart the Apache service in order to rendering PHP Web browser.

# Systemctl restart httpd.service
Next, by creating the following under the Apache document root directory php script validation PHP.

# Echo -e ""> /var/www/html/phpinfo.php
Now see the PHP file we just created in the Linux command line (phpinfo.php).

# Php /var/www/html/phpinfo.php
# Links

Verify PHP

2. Install MariaDB database

MariaDB is a branch of MySQL. RHEL and its derivative version has migrated from MySQL to MariaDB. This is a mainstream database management system, is a must-have tool for you. No matter how you configure the server, you'll need it sooner or later. Install MariaDB on minimizing installation of CentOS, as follows:

# Yum install mariadb-server mariadb

Install MariaDB database

Start MariaDB and configure it to start automatically at boot time.

# Systemctl start mariadb.service
# Systemctl enable mariadb.service
Allow mysql (mariadb) services through the firewall (LCTT Annotation: If your MariaDB only used in this machine, you must not be allowed through the firewall settings, use the UNIX Socket connection to your database; if you need to connect to a database on another server, then try using the internal network, rather than to database services exposed on the public Internet.)

# Firewall-cmd -add-service = mysql
Now is the time to ensure the safety of the MariaDB server (LCTT Annotation: This step is mainly to set mysql password management).

# / Usr / bin / mysql_secure_installation

MariaDB database protection

please read:

Install LAMP (Linux, Apache, MariaDB, PHP / PhpMyAdmin) on CentOS 7.0
Create Apache virtual hosts on CentOS 7.0
3. Install and configure SSH server

That SSH Secure Shell, Linux is the default protocol for remote management. SSH is minimized with one of the most important software installed on the server running CentOS.

Check the SSH version currently installed.

# SSH -V

Check the SSH version

Use a more secure SSH protocol, rather than the default protocol, and change the port number to further enhance security. Edit SSH configuration file '/ etc / ssh / ssh_config'.

Uncomment the following line from the agreement or delete rows 1, then the line looks like this (LCTT Annotation: SSH v1 is expired abandoned insecure protocol):

# Protocol 2,1 (original)
Protocol2 (now)
This change forced the use of SSH protocol 2, it is considered more secure than 1 protocol, while also ensuring change the port number in the configuration 22 to the other.

SSH login protection

SSH cancel the 'root login', only allows to use ordinary user account to log after su to root, to further enhance safety. Open and edit the configuration file '/ etc / ssh / sshd_config' and change PermitRootLogin yes to PermitRootLogin no.

# PermitRootLogin yes (original)
PermitRootLoginno (now)

Cancel Direct SSH Root Login

Finally, restart the SSH service to enable the changes.

# Systemctl restart sshd.service
please check:

5 Best Practices to encrypt and protect SSH server
5 easy steps to achieve using SSH Keygen no password SSH
Achieve "no password SSH key authentication" in the PuTTY
4. Install the GCC (GNU Compiler Collection)

GCC, the GNU Compiler Collection, is a GNU project development support for multiple programming language compiler system (LCTT Annotation: need it when you need to build their own translation software). Minimizing installation of CentOS not installed by default. Run the following command to install gcc compiler.

# Yum install gcc

Install GCC on CentOS

Check the version of gcc installed.

# Gcc --version

Check GCC version

11. Install Java

Java is a general purpose class-based, object-oriented programming language. Not installed by default in minimizing the CentOS server (LCTT Annotation: If you do not have any Java application, you can not install it). Install Java from the library in accordance with the following commands.

# Yum install java

Install Java

Check the Java version installed.

# Java -version

Check the Java version
- Setting Wetty do not need an account login command line operations (Linux)
- How to use the internal network IP forwarding to connect to the Internet on Linux (Linux)
- RHEL (RedHat) 6.3 using EPEL Yum source (Linux)
- Graphical development environment to build Android under Ubuntu 11.04 (Linux)
- Close and limit unused ports computer server security protection (Linux)
- Getting Started with Linux system to learn: how to install the Shrew Soft IPsec VPN on Linux (Linux)
- Zypper command for SUSE Linux package management (Linux)
- Oracle 12C with multi-column index (Database)
- C ++ copy constructor (Programming)
- CoreOS quick installation to get started on a PC (Linux)
- Ubuntu 14.10 How to install office suite Calligra Suite 2.8.7 (Linux)
- JavaScript object - Flexible and dangerous (Programming)
- CentOS 6.5 set under Oracle 12c at startup (Database)
- Ubuntu method for single-card dual-IP (Linux)
- OpenCV cvFindCornerSubPix () to find sub-pixel Corner (Programming)
- Correlation Analysis: FP-Growth algorithm (Programming)
- How to install Ubuntu applications Device 7 (Linux)
- Ubuntu installed racing game Speed Dreams 2.1 (Linux)
- Ubuntu modify DNS restart loss problem (Linux)
- Detailed use Zabbix monitoring Nginx (Server)
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.