Setting Up the Nginx Environment This setup uses CentOS 7 with properly configured yum repositories. For those needing repository configuration, the Alibaba Cloud mirror site provides necessary resources. Begin by creating and navigating to the Nginx directory: mkdir -p /soft/nginx cd /soft/nginx Do...
Installing and Starting Nginx Install the Nginx package using yum: sudo yum install nginx -y Start the Nginx service: sudo systemctl start nginx Enable Nginx to start on system boot: sudo systemctl enable nginx Verifying Service Status Check the current status of the Nginx service: sudo systemctl st...
Network traffic filtering on RHEL-based distributions is handled by firewalld, which organizes rules into zones and requires explicit synchronization between permanent and runtime configurations. Verify the daemon's current state: systemctl is-active firewalld Initialize the service and configure it...
Consul Installation on CentOS To install Consul on CentOS 8.2, first add the HashiCorp repository: yum install -y yum-utils yum-config-manager --add-repo https://rpm.releases.hashicorp.com/RHEL/hashicorp.repo yum -y install consul Service Cofniguration Create or modify the systemd service file at /e...
In many productoin environments, the default CentOS repositories may be slow or inaccessible due to geographical locations. Switching to local mirrors such as Alibaba Cloud or NetEase (163) can significantly improve package download speeds and update reliability. This guide outlines the process of b...
Prerequisites and Initial Setup To begin, ensure you have VMware Workstation installed and a CentOS 7 ISO image available. When creating a new virtual machine, follow the standard wizard prompts. If the installation fails due to an Intel VT-x error, access your computer's BIOS/UEFI setings, locate t...
Overview The default kernel shipped with CentOS 7 and CentOS 8 is often older then what modern applications require. This guide covers two methods for upgrading the Linux kernel: using the ELRepo repository package manager, or manually installing RPM packages. Warning: Kernel upgrades require carefu...
Apache Initial Configuration Navigate to /usr/local/apache/conf/extra/httpd-default.conf and ensure KeepAlive is toggled to On to reduce repeated TCP handshakes for persistent connections. Linux Kernel Network and Resource Tuning Append the following entries to /etc/sysctl.conf to adjust TCP handlin...
System Preparation Execute the following on a CentOS 7 host. First eliminate conflicts with the distribution’s default database packages: yum -y remove mariadb* Install the supporting libraries and build utilities required by the generic Linux binary: yum -y install autoconf bison ncurses-devel liba...
sudo yum install -y curl openssh-server openssh-clients postfix Import the GitLab package repository and install the Community Edition: curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash sudo dnf install -y gitlab-ce Create a dedicated directory for T...