Jianghu Panel - Common Script Tools
120061. Understanding Jianghu Panel Commands
The Jianghu Panel provides a series of script tools for system operations and maintenance, which can be invoked in the command line using the jh command.
The jh command serves as the entry point for control commands of the Jianghu Panel:

By entering 22, you can invoke the Jianghu Panel script tools:

- Initialize Environment: Modify the virtual machine's configuration, allocate a fixed IP for the virtual machine, configure SSH login permissions, and install the Jianghu Panel.
- Generate SSH Key: Generate SSH keys for functionalities requiring SSH connections, such as connecting to Github/Gitea and Rsync file synchronization.
- Server Migration: Used to generate data migration packages when relocating servers.
- Server Repair: Provides functionalities for repairing database files, renewing abnormal SSL certificate orders, and recreating MySQL users and passwords.
- Server Expansion: Expands the server's hard disk capacity, performs partition table rewriting, modifies swap partitions, and enlarges file systems.
- Server Organization: Used to move user-uploaded data directories
uploadfrom various projects into the/www/wwwstoragedirectory and create corresponding symbolic links.
- Server Organization: Used to move user-uploaded data directories
- Server Backup and Recovery: Can export or import the structure and data of specified databases, commonly used for migrating individual databases.
- Server Status Check: A status monitoring tool that can perform process usage analysis, disk IO usage analysis, disk IO testing, MySQL database checksum analysis, and more.
- Server Switching: Used to generate scripts for switching the original server and the new server online and offline after server migration.
2. Case Study: Generating SSH Key for Github

3. Case Study: Repairing Abnormal SSL Certificate Renewal Orders

4. Case Study: Process Usage Analysis

5. Case Study: MySQL Database Checksum Analysis
- Inquire about database connection information (default is local).
- Ask "Do you need to print the checksum details to a file? (default y) [y/n]".
- Prompt "Calculating checksum...".
- After calculation, display the total sum of checksum values.
- If printing to a file is checked, save the checksum values of each table in each database to checksum_result.txt.
- Prompt "Do you need to compare other checksum values? (default n) [y/n]".
- If the answer is y, prompt "Please enter the checksum value to compare:" After input, compare the two values; if they are equal, prompt "Checksum check results are consistent."