# 服务启停

使用由Websoft9提供的 Java 部署方案,可能需要用到的服务如下:

# Java

sudo systemctl start java-server
sudo systemctl stop java-server
sudo systemctl restart java-server
sudo systemctl status java-server

# you can use this debug mode if Java service can't run
java-server console

# MySQL

sudo systemctl start mysql
sudo systemctl stop mysql
sudo systemctl restart mysql
sudo systemctl status mysql

# Redis

systemctl start redis
systemctl stop redis
systemctl restart redis
systemctl status redis

# phpMyAdmin

sudo docker start phpmyadmin
sudo docker stop phpmyadmin
sudo docker restart phpmyadmin
sudo docker stats pgadmin

# Docker

sudo systemctl start docker
sudo systemctl restart docker
sudo systemctl stop docker
sudo systemctl status docker

# Docker-compose服务

#创建容器编排
sudo docker-compose up

#创建容器编排并重建有变化的容器
sudo docker-compose up -d

#启动/重启
sudo docker-compose start
sudo docker-compose stop
sudo docker-compose restart

# Nginx

sudo systemctl start nginx
sudo systemctl stop nginx
sudo systemctl restart nginx
sudo systemctl status nginx