Operations 6 min read

How to Deploy a One‑Click Linux Dev Environment with MySQL, Nginx, Redis & More

This guide walks you through creating and using a one‑click installation package that sets up essential development services—MySQL, Nginx, JDK, Redis, RabbitMQ, and a SpringBoot jar—on Ubuntu 16.x, detailing directory structure, required prerequisites, individual start/stop scripts, and customization options for small‑scale deployments.

Code Ape Tech Column
Code Ape Tech Column
Code Ape Tech Column
How to Deploy a One‑Click Linux Dev Environment with MySQL, Nginx, Redis & More

Introduction

The author created a one‑click installation package to help small teams quickly provision a basic development environment without a dedicated operations staff. The package bundles pre‑compiled binaries for MySQL, Nginx, JDK, Redis, RabbitMQ, and a SpringBoot jar, providing scripts to start, stop, and restart each service.

Package Directory Structure

The package contains a bin directory with all executable scripts. All other top‑level directories hold the compiled binaries for each component. The bin folder includes a master script vivachekcloud_server that can launch every service sequentially.

Prerequisites

Install vim: apt-get install vim Install OpenSSH server and enable root login:

# Install
apt-get install openssh-server
# Enable root login and restart service
sed -i 's/prohibit-password/yes/g' /etc/ssh/sshd_config && /etc/init.d/ssh restart

Install libaio libraries:

apt-get install libaio1 libaio-dev

Upload the Package

Upload the .tar.gz archive to the server’s root / directory (the scripts expect the package to reside there). Extract it with:

# Extract the one‑click package (replace with actual filename)
tar -zvxf cjdata-08-29.tar.gz

Running Individual Services

MySQL

In bin there is a mysql_server script. Use the following commands:

sh mysql_server start
sh mysql_server restart
sh mysql_server stop

Redis

Use the redis.server script:

sh redis.server start
sh redis.server restart
sh redis.server stop

Nginx

Use the nginx.server script:

sh nginx.server start
sh nginx.server restart
sh nginx.server stop

RabbitMQ

Use the rabbit.server script:

sh rabbit.server start
sh rabbit.server restart
sh rabbit.server stop

SpringBoot Jar

Replace the placeholder vivachekcloud.jar with your own jar and update the APP_NAME variable in /bin/vivachekcloud:

APP_NAME=/cjdata/vivachekcloud/vivachekcloud.jar

Then start, restart, or stop the application with:

sh vivachekcloud start
sh vivachekcloud restart
sh vivachekcloud stop

One‑Click All Services

To launch every component at once, run the master script vivachekcloud_server:

sh vivachekcloud_server start
sh vivachekcloud_server restart
sh vivachek_server stop

Customization

All scripts reside in the bin directory; modify them as needed to suit your environment or to add new services.

Conclusion

The one‑click package provides a convenient way for small teams to set up a basic development stack quickly. It can be used to install the full suite or individual components, and the scripts are open for further customization.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

AutomationredisDevOpsLinuxmysqlRabbitMQNGINXSpringBoot
Code Ape Tech Column
Written by

Code Ape Tech Column

Former Ant Group P8 engineer, pure technologist, sharing full‑stack Java, job interview and career advice through a column. Site: java-family.cn

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.