Category: System

Linux (238)
Windows (383)

How to Change the Default SSH Port on CentOS

How to Change the Default SSH Port on CentOS (Example: 8223):
vi /etc/ssh/sshd_config

Change: #Port 22
to
Port 8223Restart SSH:
service sshd restart

Add a firewall exception:
#/sbin/iptables -I INPUT -p tcp –dport 8223 -j ACCEPT
#/e …

CentOS System IP Access Control

Scenario: You have a bunch of machines. The server IP being accessed is 192.168.1.1, and the IP address allowed to access it is 192.168.1.2. No need to list the rest since they won’t be used anyway.

For Linux systems, the connection method is basically SSH, which can be controlled through configuration files …

How to Run Crontab Every Second

How to Execute Cron Jobs Every Second in Linux
銆€銆€Many times, our scheduled tasks need to run with second-level precision, but Linux only supports scheduling down to the minute by default. Most built-in versions of Linux don’t natively support second-level execution. Using sleep makes it easy to execute tasks by the second.

1. The sleep format is as follows:
sleep 5 …

Installing Chinese Language Pack and Fonts on Linux

I. Installing Chinese Support on the System

1. Install Chinese language pack:
yum -y groupinstall chinese-support
2. Modify character encoding configuration file
vi /etc/sysconfig/i18n
Enter:
LANGUAGE=”zh_CN.GB18030:zh_CN.GB2312:zh_CN”
SUPPORTED=”zh_CN.GB18030:zh_C …