
View digits:
[root@mini1 ~]# getconf LONG_BIT

[root@mini1 ~]# cat /etc/issue

[root@mini1 ~]# cat /etc/redhat-release

Recommended tutorial: centos tutorial
The above is the detailed content of How to check the centos system version. For more information, please follow other related articles on the PHP Chinese website!
How to install Samba on CentOSJul 24, 2025 am 03:24 AMUpdate the system: Use sudodnfupdate-y (CentOS8/Stream) or sudoyumupdate-y (CentOS7) to ensure the system is up to date; 2. Install Samba: Run sudodnfininstallsambasamba-commonsamba-client-y (or yum command) to install core components; 3. Configure sharing: Backup and edit /etc/samba/smb.conf, and add basic sharing settings such as [shared]path=/srv/samba/shared; 4. Set directory permissions: Create a shared directory and set chmod0755, chownno
How to restart the network service in CentOS?Jul 24, 2025 am 02:11 AMTo restart network services in CentOS, you must first confirm the network management method used by the system. 1. Use the ps-ef|grepNetworkManager command to determine whether it is a NetworkManager or a traditional network service; 2. If you use a new version of CentOS (such as CentOS7 or Stream), it is recommended to restart the network service through sudosystemctlrestartNetworkManager or sudosystemctlrestartnetwork; 3. You can use nmcliconnectionreload to reload the configuration without interrupting the service, or execute s for specific connections.
How to install Nginx on CentOSJul 24, 2025 am 02:01 AMUpdate the system: Run sudoyumupdate-y to ensure the system is up to date; 2. Install EPEL source: execute sudoyuminstalllepel-release-y to obtain the Nginx package; 3. Install Nginx: Use sudoyuminstallnginx-y to install the service; 4. Start and enable Nginx: Set up the power-on startup through sudosystemctlstartnginx and sudosystemctlenablenginx, and use sudosystemctlstatusnginx to confirm the running status; 5. Configure the firewall: If firewalld is enabled, run sudofir
How to partition a new hard drive with fdisk or parted?Jul 24, 2025 am 12:49 AMWhen partitioning new hard disks, fdisk is suitable for MBR partition tables, and parted is recommended for GPT partition tables; when using fdisk, first use lsblk or fdisk-l to identify the hard disk device, run sudofdisk/dev/sdX to create the main/extended partition, set the start and end sectors and enter w to save and refresh the partition table and then format it; when using parted, run sudoparted/dev/sdX to set it to gpt partition table, use mkpart to create partitions to specify GB or percentage, and format it after exiting; pay attention to partition alignment, type settings and FAT32ESP partition required for UEFI startup.
How to check the status of FirewallD and its rules?Jul 23, 2025 am 03:18 AMTo view the status and rules of FirewallD, you can follow the following steps: 1. Use systemctlstatusfirewalld to confirm whether the service is running. If it is not running, you can start sudosystemctlstartfirewalld and set the power on and start it up with enable; 2. View the current area through firewall-cmd-get-active-zones, and use --get-zones to view all areas; 3. Execute firewall-cmd-list-all to view all rules in the current area. Add the --zone parameter to specify the area, and use --list-rich-rules to view rich
How to filter journalctl output by a specific service or time?Jul 23, 2025 am 03:16 AMTo filter journalctl logs, view them by service or time range. 1. Filter by service name: use journalctl-u, such as journalctl-unginx.service; if you are not sure of service name, you can find systemctllist-units|grep. 2. Filter by time range: use --since and --until to specify the time, such as journalctl--since"1hourago" or journalctl--since"2025-04-0510:30:00"--until"2025
How to reset root password in CentOSJul 23, 2025 am 02:16 AMReboot and enter the GRUB menu, press e to edit the startup item; 2. Add init=/bin/bash or rd.break at the end of linux or linux16 line; 3. If you use rd.break, you need to chroot/sysroot first, then mount-oremount,rw/; 4. Execute passwdroot to set a new password; 5. If SELinux is enabled, run touch/.autorelabel; 6. Execute reboot-f to restart to take effect. This method is suitable for CentOS7 and above and requires physical or console access.
How to create a systemd service fileJul 23, 2025 am 02:01 AMCreate a service file: Create a .myapp.service file in /etc/systemd/system/, set the [Unit], [Service], [Install] sections and configure key parameters such as Description, ExecStart (using absolute path), User, Restart, etc.; 2. Reload and enable the service: execute sudosystemctldaemon-reload, enable, and start to enable the service and set the power-on self-start; 3. Avoid common errors: do not use relative paths, do not run with root, ensure the script permissions are correct, must be overloaded after modification, and finally use sudosystemct


Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Atom editor mac version download
The most popular open source editor

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),







