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.
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 restartInstall libaio libraries:
apt-get install libaio1 libaio-devUpload 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.gzRunning 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 stopRedis
Use the redis.server script:
sh redis.server start sh redis.server restart sh redis.server stopNginx
Use the nginx.server script:
sh nginx.server start sh nginx.server restart sh nginx.server stopRabbitMQ
Use the rabbit.server script:
sh rabbit.server start sh rabbit.server restart sh rabbit.server stopSpringBoot Jar
Replace the placeholder vivachekcloud.jar with your own jar and update the APP_NAME variable in /bin/vivachekcloud:
APP_NAME=/cjdata/vivachekcloud/vivachekcloud.jarThen start, restart, or stop the application with:
sh vivachekcloud start sh vivachekcloud restart sh vivachekcloud stopOne‑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 stopCustomization
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.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
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
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
