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...
System Package Maintenance Maintaining an up-to-date system is critical for security and stability. Use the package manager to synchronize repositories and apply pending updates: sudo yum update -y Network Interface Configuration To ensure consistent connectivity, you may need to configure a static...
Overview of YUM ======== YUM, which stands for Yellow dog Updater, Modified, is an RPM package manager. It automatically downloads and installs RPM packages from specified servers, handles dependencies between packages, and installs all required packages in one go without the need for manual downlo...
Note: The multiple IP addresses must be in the same subnet to avoid multi-gateway issues. For example, if the subnet is 192.168.1.0/24 with gateway 192.168.1.1, you can assign IP addresses like 192.168.1.2 through 192.168.1.254. To configure multiple IP addresses on a single network interface in Cen...
Prerequisites A registered domain name (e.g., example.com) with an A record pointing to your server's public IP. A VPS with a public IP (recommend 4 Mbps bandwidth or higher). A file transfer tool like FileZilla or SCP. Root access to the server. Step 1: Install Dependencies First, update the system...