Category: System

Linux (238)
Windows (383)

How to Enable Cross-Subnet Communication in a LAN

Many organizations struggle with enabling mutual access between several internal IP segments. For example, the surveillance system (192.168.0.18) and the office network (192.168.5.16) are on different subnets, but you want direct access between them. Today’s guide hopes to help you solve this, using access from 192.168.0.18 to the 192.168.5.x subnet as an example.

How to Install EPEL Repo on CentOS 5/6

Sometimes, to quickly install a piece of software, we have to use the yum method, but it can be frustrating when the yum package isn’t found. Below, we’ll install EPEL to add a yum repository and fix this:

Using CentOS as an example, here is the installation method:
CentOS 6 32-bit: rpm -ivh http://dl. …

How to Fix Shell Script Failing in Crontab While Running Manually

Today while performing a system directory file backup, I encountered a problem: a .sh script file could be executed manually, but when added to a scheduled task, it would exit after compressing the backup file to a certain size.
After searching online, I finally found the answer. The solution is as follows:
The script file in my original crontab was like …

Crontab Basic Usage Guide

crontab is a commonly used scheduled task tool in the system. Below we will explain its usage:
1. Edit directly with the crontab command
The cron service provides the crontab command to configure the cron service. Here are some parameters and explanations for this command:
crontab -u //Set up cron service for a specific user, …

How to Change System Time in Linux

The command format is:
date -s time-string
For example, to only modify the system date without changing the time (hours, minutes, seconds)
date -s 2016-03-16

Or to only modify the time without changing the date
date -s 10:08:00
Of course, you can also modify both date and time simultaneously
date -s "2016-03-16 04:53:00" …

Linux Cron Job Scheduler Guide

crontab is an extremely useful tool in Linux for scheduling scripts and programs to run at specified times. Below we use a MySQL backup script as an example to illustrate. Here’s how to execute the backup.sh script at 23:00 every day:
crontab -e

Enter the following code, then save with shift+z+z:
0 23 * * * /ho …

How to View Crontab Logs

The sync task in crontab didn’t execute yesterday, and I don’t know why — it seemed to hang. I wanted to investigate what went wrong with crontab or where it got stuck.

1. linux
Check the /var/log/cron file. You can use tail -f /var/log/c …

How to Change Linux Yum Repository

How to Change Linux YUM Repository Source
Step 1: Enter the yum configuration directory: cd /etc/yum.repos.d/Step 2: Backup the configuration file: mv CentOS-Base.repo CentOS-Base.repo.bakStep 3: Download the NetEase configuration (or another repository configuration file): wget http://mirrors.163.com/.he …

Linux Wget Permission Denied: /usr/bin/wget Bash Error Fix

I was planning to use wget to download the Hadoop compressed package, but ended up getting the following error: [root@linyuhe mnt]# wget http://mirror.cnop.net/nagios/nagios-plugins-1.4.14.tar.gz -bash: /usr/bin/wget: Permission deniedEven the root account reported a permission error, and …