This article walks through installing Jenkins, preparing the environment with JDK, Git, and Maven, configuring Jenkins plugins and a freestyle job, defining build parameters and shell scripts to clone a Gitee repository, build a Spring Boot jar with Maven, stop any running instance, and start the new application, followed by troubleshooting tips and a final summary.
Learn how to accurately determine your ISP‑assigned public IP address using simple shell commands, online services, and a robust Bash script that falls back between dig and curl with random host selection, ensuring reliable results for home‑based services and DDNS updates.
This article introduces a custom MySQL data consistency verification tool inspired by pt-table-checksum, explains the challenges of handling complex primary keys, details the implementation logic with shell scripts and SQL, and provides installation, configuration, and usage instructions including parallelism, network monitoring, and scheduling.
This article explains how to use Maven profiles and the maven‑assembly‑plugin to create environment‑specific zip packages for a Spring Boot application and provides a reusable shell script (shenniu_publish.sh) for extracting, starting, stopping, and managing the deployed JAR on Linux.
This guide shows how to package a Spring Boot application using Maven profiles and the maven-assembly-plugin, create a zip release that includes configuration files, the compiled jar and a custom deployment script, and then use the script to unzip, start, stop, and restart the service on Linux.
This guide shows Linux system operators how to install and run a collection of entertaining terminal utilities—such as asciiview, oneko, cmatrix, a custom pipe screensaver, sl, and ninvaders—complete with commands, code snippets, and sample output images to brighten up long‑hour work sessions.
This guide explains how to install and configure Subversion (SVN) on a CentOS server, create a repository, set up authentication, connect clients, and implement a post‑commit hook that automatically updates the web directory, enabling code editing from devices like an iPad.
This guide shows how to install and run several entertaining Linux command‑line utilities—including asciiview, oneko, cmatrix, a custom pipe screensaver, sl, and ninvaders—by using apt‑get commands and provides example outputs for each.
The article compares Hive and Greenplum as offline and MPP data‑warehouse solutions, reviews Hive query engine alternatives, and provides a detailed tutorial—including YAML configuration and a shell script—for using GPLoad to import HDFS data into Greenplum.
This article explains how to package a Spring Boot application using Maven profiles and the maven‑assembly‑plugin, generate a zip deployment package, and manage the deployment with a custom shell script that supports unzip, start, stop, and restart operations across different environments.
This article presents a ready‑to‑use Bash script that performs daily Linux system inspections—including disk, memory, CPU, process, file changes, and user login checks—generates a detailed report, saves it under a log directory, and emails the results for easy monitoring.
This article explains why Redis RDB snapshots are ideal for enterprise cold backups, provides step‑by‑step Linux scripts and cron jobs for hourly and daily backup retention, and details the complete restoration process from saved RDB files.
This guide explains why database backup is essential, shows how to check disk space, create a backup directory, write a MySQL dump shell script, make it executable, schedule it with crontab, and verify the job’s execution on a Linux server.
This article explains how to use Maven profiles to manage multiple Spring Boot environments, configure the maven‑assembly‑plugin to create a zip release containing the jar, configuration files and a custom shell script, and then deploy and control the application on Linux using the provided shenniu_publish.sh tool.
This guide walks you through preparing a CentOS 8 environment, installing JDK, Zookeeper and Kafka, configuring each service with proper data directories and ports, and automating startup using shell scripts for a three‑node Zookeeper cluster and a three‑node Kafka cluster.
This guide explains what Base64 encoding is, why it’s needed for transmitting binary data as text, and provides step‑by‑step command‑line examples for encoding and decoding strings, files, and user input with practical Bash scripts.
This article provides a shell script and step‑by‑step instructions for configuring a Git pre‑push hook that automatically generates and pushes a new semantic version tag each time code is pushed to the remote repository.
This article explains how to package a Spring Boot application using Maven's assembly plugin, configure environment-specific profiles, and deploy the resulting zip with a custom shell script that supports start, stop, restart, and unzip operations on Linux.
This article provides a step‑by‑step guide to preparing the operating system, installing and configuring MySQL, tuning system parameters, and using a Bash one‑click deployment script to automate the setup and initialization of a MySQL 5.7.32 instance on Linux.
Learn how to use Linux's inotify-tools to monitor directory changes and automatically synchronize modified files with rsync, covering installation, command options, example output, an event‑handling shell script, and running the script in the background with nohup.
This guide walks through creating a Linux word‑and‑phrase translation tool that captures selected text via the X clipboard, translates it with translate‑shell, and displays the result in the terminal, using only a few command‑line utilities and a small C program.
This article walks you through setting up Jenkins to clone a Spring Boot project from Gitee, configure JDK, Git, and Maven tools, create a freestyle job with parameterized builds, write shell scripts for stopping and starting the application, and troubleshoot common issues for a fully automated CI/CD pipeline.
This guide explains how to locate Docker container log files on Linux, provides shell scripts to list and truncate oversized logs, and shows how to configure per‑container and global log size limits using docker‑compose and the Docker daemon to keep host disk usage under control.
This article explains how to configure Maven profiles for different environments, use the maven‑assembly‑plugin to create a zip deployment package, and employ a custom shell script (shenniu_publish.sh) to unzip, start, stop, and restart a Spring Boot jar on Linux, streamlining the build‑and‑deploy workflow.
This article provides a comprehensive walkthrough of Logrotate on Linux, covering its purpose, default configuration files, key directives, practical examples for Nginx, PHP, Tomcat, and system logs, as well as custom shell and Python scripts for advanced log rotation and troubleshooting.
This article provides a thorough walkthrough of Linux logrotate, covering its default configuration files, essential command‑line options, key parameters, practical examples for services like nginx, php, and tomcat, custom rotation scripts, cron scheduling, and troubleshooting tips for reliable log management.
The article shares seven authentic production incident cases—from JVM Full GC spikes and memory leaks to cache avalanches, disk I/O blocks, database deadlocks, DNS hijacking, and bandwidth exhaustion—detailing root causes, step‑by‑step troubleshooting methods, code snippets, and practical mitigation strategies for engineers.
The article explains the semantics of the Linux kill command, why using kill -9 for abrupt termination is risky, how to prefer SIGTERM (kill -15) for graceful shutdowns, shows Java shutdown‑hook usage, and provides a shell script that automates safe process termination.
This guide shows how to install and use nload, iftop, and sar for live network bandwidth monitoring on Linux, explains their key parameters, and provides two shell scripts that calculate per‑second inbound and outbound traffic from /proc/net/dev.
This guide shows how to install and use nload, iftop, and sar for real‑time network traffic monitoring on Linux, explains each tool's key parameters, and provides two custom shell scripts that calculate per‑second inbound and outbound traffic using /proc/net/dev.
This guide shows three practical ways to execute custom scripts automatically after a Linux system starts—by editing /etc/rc.d/rc.local, configuring a crontab @reboot entry, or creating a systemd service—complete with commands, sample scripts, and troubleshooting tips.
This article explains two practical methods—using a custom linter.sh script that calls Jenkins's REST API and employing the Jenkins Pipeline Linter Connector VS Code extension—to validate declarative pipeline syntax before committing, reducing repeated build failures caused by syntax errors.
This guide walks you through installing Mailx on a Linux server, fixing compilation issues, configuring SMTP settings, testing email delivery, and building a keyword‑based log‑monitoring script that triggers alerts via email.
This guide explains how to create a Bash script that daily backs up multiple MySQL databases, compresses them with gzip, transfers them via rsync to a remote server, retains backups for two months, and schedules the process with cron, including necessary commands and permissions.
Learn how to build a custom recycle bin on Linux using a Bash script that moves deleted files to a timestamped folder, includes user confirmation, sets proper permissions, schedules automatic cleanup with cron, and can even replace the rm command via an alias.
The article describes how to troubleshoot and fix Oozie shell‑action failures when submitting Flink jobs on a CDH 6.3 cluster with Kerberos, detailing environment‑variable conflicts, error messages, and the final solution using a clean environment and custom FLINK_CONF_DIR settings.
This guide walks through installing the msmtp email client, configuring mutt, using the free command to capture memory and swap statistics, writing Bash scripts to log and email the data, and scheduling the tasks with cron so alerts are sent when swap usage exceeds 80 %.
This guide explains Linux file timestamps (ATime, MTime, CTime), why creation time is missing on older filesystems, and provides step‑by‑step methods—including using stat, debugfs, and a custom shell script—to obtain a file’s creation (crtime) timestamp on ext4 systems.
This guide walks you through installing the msmtp mail client, configuring mutt to send emails, using the free command to gather memory statistics, writing Bash scripts to log and email those metrics, setting up swap‑usage alerts, and scheduling everything with cron for continuous Linux system monitoring.
This article explains how to obtain required permissions, add SSH keys, create a shell deployment script using git and rsync, and configure Jenkins to automatically deploy code from GitHub through a middle machine to a test server.
This guide shows how to configure rc.local‑style startup commands on Ubuntu 16.04 by editing /etc/rc.local directly, and on Ubuntu 18.04 by linking the systemd rc‑local.service, creating an executable rc.local file, adding shell commands, and verifying the result after reboot.
This guide explains why database backups are essential, walks through preparing storage, creating a Bash script to dump and compress MySQL data, granting execution rights, scheduling the script with crontab, and verifying successful automated backups on Linux systems.
This article introduces a shell script that automates the typical Git workflow of cloning a repository, creating a new development branch from master, pushing the branch to the remote server, and establishing upstream tracking, allowing developers to focus solely on code changes.
This guide explains how to clean existing packages, disable SELinux, install required build tools, download and compile APR, APR‑util and PCRE, and finally compile and install Apache HTTP Server on a CentOS system using a Bash script.
This article explains why validating IP addresses is essential in shell scripting, then presents two Bash methods—using awk/grep and regular‑expression matching—followed by a looped version that repeatedly prompts for input until a correct IP is entered, complete with example commands.
This article introduces tm-cleanup.sh, a shell script that automates Time Machine backup removal on macOS, now featuring an interactive, dialog‑based interface that lets users browse and delete snapshots without needing command‑line expertise.
This guide explains how to create and deploy a Bash script that retrieves a WeChat corporate token and sends Zabbix alarm messages to all users through the WeChat API, enabling automated monitoring alerts via the corporate WeChat platform.
This guide explains how to create a reliable MySQL backup solution by checking disk space, setting up a backup directory, writing a shell script for mysqldump (with optional compression), granting execution rights, scheduling the script with crontab, and verifying the job, while also covering crontab syntax and examples.
This guide explains why database backups are essential, walks through checking disk space, creating a backup directory, writing a Bash script to dump and compress MySQL data, granting execution rights, and scheduling the script with crontab to ensure reliable, automated backups.
This tutorial explains how to build and integrate OpenSSL 1.1.0e for modern Android, iOS, and Linux environments, providing shell scripts for each platform, detailed configuration steps, and examples of using the resulting static libraries in C, JNI, and Java code.
This guide explains how to use the Linux tar command for manual and compressed backups, create shell scripts for automated backups with cron, and apply these techniques to back up and restore Foxmail Server data, covering command syntax, scheduling, and recovery steps.
Tencent Cloud’s migration team successfully moved over 130 on‑premise MySQL instances totaling 20 TB to CDB by rigorously testing the migration tool, configuring master‑slave replication, handling high‑concurrency binlog sync, and resolving timestamp, stored‑procedure, and DDL issues, ensuring seamless production deployment.
This guide details a production‑grade MongoDB replica‑set deployment, covering hardware specs, configuration files, replica‑set initialization, user creation, incremental backup with mongobackup scripts, primary node switching, cold backup procedures, troubleshooting authentication errors, and test data generation for performance validation.
The article outlines a comprehensive set of Android app performance metrics, device coverage, a non‑root sampling strategy using dumpsys commands, shell‑based data collection, and Python‑driven HTML reporting, providing practical guidance and reference implementations for mobile developers.
This article introduces Apache Flume, explains its design goals of reliability, scalability, manageability and extensibility, outlines core concepts and architecture, provides step‑by‑step configuration using the first mode, demonstrates integration with Zookeeper, Kafka and a shell script, and shows how to launch and verify the agent.
Learn how to create a lightweight HTTP health‑check service with xinetd that runs a shell script to monitor MySQL status, enabling HAProxy to instantly detect failures and stop routing traffic, complete with step‑by‑step configuration, testing commands, and sample scripts.
This article presents a practical dual‑master MySQL high‑availability solution using keepalived and custom shell scripts that reliably detect master health, perform graceful VIP failover, and safely switch back after repairs, while ensuring data consistency and minimal downtime.
This article explains how the Oracle oerr utility works as a shell script, shows how it maps facilities to components, locates the appropriate message files, and demonstrates using sed and awk to extract detailed error descriptions, causes, and actions for any ORA code.
This guide explains how to use the Linux find command to locate old files, create a shell script for batch deletion, and schedule the script with crontab, including detailed syntax, examples, and common cron expression patterns for reliable automated cleanup.
This article walks through using PHP's cURL extension to crawl tens of thousands of Zhihu user profiles, parse the HTML with regular expressions, store the extracted data efficiently, and present the results with responsive charts and dashboards.
This guide walks through setting up a Jenkins CI server—including environment preparation, installation, essential plugins, system and project configuration, security hardening, and a custom shell script for automated deployment—providing a practical roadmap for reliable continuous integration and delivery in Java projects.
A step‑by‑step guide shows how to identify abnormal NIC traffic, locate malicious init scripts and hidden processes, use simple shell scripts and netstat to pinpoint the offending connection, and clean a compromised Linux server to restore normal network performance.
This guide explains how to use GitHub Webhooks together with a shell deployment script, a Node.js listener, and Nginx reverse proxy to achieve fully automated website deployment, covering setup, code examples, and practical considerations.
This article details how to use PXE to automatically provision three‑node Oracle 11gR2 RAC clusters on bare‑metal servers, covering network planning, PXE server setup with a one‑click installer, required software download, MAC address collection, shared‑disk and node configuration, virtual tape library setup, time synchronization, and user creation.
This guide explains how to configure a WeChat service account, enable template messages, deploy Python and shell scripts, and integrate them with Zabbix so that monitoring alerts are sent directly to WeChat users as template messages.
This article explains what Linux swap is, its drawbacks, how to tune the swappiness parameter, methods for monitoring swap usage per system and per process, and practical ways to clear swap, including useful shell scripts and commands.