Article Tags
Article Tags
How to install Go (Golang) on CentOS? (Environment Setup)
If you use yum to install Go, it will get stuck in the old version (such as 1.16). You should download the latest version from the official website and unzip it to /usr/local/go and configure PATH and GOPATH; cross-compile with CGO_ENABLED=0 and you need to specify GOOS/GOARCH at the same time to avoid sudo losing variables; the systemd service must explicitly declare Environment.
Apr 03, 2026 am 12:04 AM
How to reset the root password on CentOS? (Single User Mode)
The root password can be reset: Press e in the GRUB menu to edit the startup items, and add rd.break (CentOS7) or init=/bin/bash (CentOS6) at the end of the linux line. For CentOS7, you need to change ro to rw first; Ctrl After X starts, execute mount-oremount, rw/sysroot, chroot/sysroot; run passwdroot to change the password. When SELinux is enabled, touch/.autorelabel is required; finally, exit and remount are read-only and reboot-f.
Apr 03, 2026 am 12:03 AM
How to check disk space on CentOS? (Df and Du commands)
dfshowsfilesystem-leveldiskusagebyreadingmetadata,notscanningfiles;discrepanciesarisefromreservedspace,deleted-but-openfiles,orfilesystemoverhead.
Apr 02, 2026 am 12:11 AM
How to check Open Ports on CentOS? (Netstat & SS)
The display ports of netstat and ss are different, because netstat does not display the 127.0.0.1 listening port by default and relies on the outdated /proc interface, while ss directly reads the kernel socket table, which is more real-time and comprehensive. It is recommended to use ss-tuln instead of netstat-tuln. To check the port, use ss-tuln|grep:port. If you need a process name, add -p (root required), and pay attention to whether the listening address is 127.0.0.1 or *.
Apr 02, 2026 am 12:10 AM
How to check disk usage on CentOS? (DF & DU Commands)
The results of df and du are often inconsistent, because df reads file system metadata statistics to allocate space, and du traverses the directory to accumulate visible file sizes; common reasons include deleted files but occupied by processes, sub-mount points, inode exhaustion, ACL/sparse files, etc.
Apr 01, 2026 am 12:05 AM
How to migrate from CentOS 7 to Rocky Linux? (Migration Tool)
migrate2rocky is the most reliable in-situ migration solution from CentOS7 to RockyLinux. It needs to be run in version 7.9 and third-party sources are disabled. After migration, key items such as kernel, startup items, software sources, and /etc/os-release must be verified.
Apr 01, 2026 am 12:02 AM
How to install PHPMyAdmin on CentOS? (Web Interface)
To install PHPMyAdmin, you need to ensure that httpd and PHP (≥7.4) and php-mysqlnd/mysqli extensions are ready. It is recommended to install from EPEL source and modify the Requireip of /etc/httpd/conf.d/phpmyadmin.conf to allow external access. At the same time, configure blowfish_secret and session directory permissions, and enable the SELinux Boolean value httpd_can_network_connect_db.
Mar 31, 2026 am 12:08 AM
How to install MySQL 8.0 on CentOS? (Step-by-step Guide)
First download and install the official MySQL repoRPM corresponding to the CentOS version, enable the mysql80-community source; if GPG reports an error, temporarily set gpgcheck=0; correct /var/lib/mysql permissions after installation and turn off SELinux intervention; log in with the temporary password in the log, lower the validate_password policy and then change the password; for remote access, you need to modify the bind-address, open the 3306 port, authorize root@'%' and check the cloud security group.
Mar 31, 2026 am 12:07 AM
How to enable Remote Desktop (XRDP) on CentOS? (GUI Access)
XRDP in CentOS7/8 requires enabling the EPEL source, switching X11 sessions, configuring ~/.xsession, adjusting the SELinux policy and dealing with CredSSP encryption issues. Missing one of them will result in a black screen or disconnection after connection.
Mar 30, 2026 am 12:10 AM
How to install MongoDB on CentOS? (Official Repo)
The CentOS default repository does not have a MongoDB package because its SSPL license is not recognized by Fedora; you need to add the official repo manually and pay attention to version compatibility (for example, CentOS7 only supports MongoDB5.0); you must modify permissions, SELinux policies and configuration items (bindIp, authorization, journal) after installation.
Mar 30, 2026 am 12:05 AM
How to configure SELinux on CentOS? (Permissive vs Enforcing)
Use sestatus to check the current status, which displays enforcing, permissive or disabled and policy type; setenforce0/1 temporarily switches modes, getenforce checks the current mode; /etc/selinux/config modifications will only take effect at the next startup and need to be restarted; the web service is active but inaccessible due to SELinux interception. Check the avcdenied log in audit.log and use semanage and restorecon to repair it.
Mar 29, 2026 am 12:13 AM
How to change Timezone on CentOS? (Timedatectl)
Timedatectlset-timezone should be used to set the time zone, and avoid manual modification of /etc/localtime or the deprecated /etc/sysconfig/clock; the time zone name must be in Region/City format (such as Asia/Shanghai), and timedatectllist-timezones can be used to view and filter with grep; the setting requires root permissions and takes effect immediately. Verification is based on the Timezone behavior in timedatectlstatus.
Mar 29, 2026 am 12:08 AM
How to reset Root password on CentOS? (Recovery Guide)
Mount-oremount,rw/ must be executed: CentOS7/8 initramfs defaults to read-only mounting of the root file system, and /etc/shadow cannot be modified without remounting; rd.break (C7) requires mount-oremount,rw/sysroot and then chroot/sysroot. Init=/bin/bash (C8) requires direct mount-oremount,rw/. If it is omitted, passwdroot will be invalid.
Mar 28, 2026 am 12:13 AM
How to manage kernel updates on CentOS? (YUM Update)
The new kernel will not automatically take effect after yumupdate, and you need to restart or manually set the GRUB default startup items; the production environment should exclude automatic kernel upgrades and regularly evaluate security patches; when /boot space is insufficient, you can clean up the old kernel, but you need to be careful to keep at least one available version.
Mar 28, 2026 am 12:06 AM
Hot tools Tags
Undress AI Tool
Undress images for free
AI Clothes Remover
Online AI tool for removing clothes from photos.
Undresser.AI Undress
AI-powered app for creating realistic nude photos
ArtGPT
AI image generator for creative art from text prompts.
Stock Market GPT
AI powered investment research for smarter decisions
Hot Article
Popular tool
vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation
VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library
PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment
VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library
SublimeText3 Chinese version
Chinese version, very easy to use
Hot Topics
20516
7
13629
4



