Nginx服务

cd /usr/local/nginx/sbin
./nginx

Docker服务

# 查看Docker状态
systemctl status docker

# 启动Docker
systemctl start docker

Redis服务

# 启动Redis
service redisd start

# 关闭Redis
service redisd stop
redis-cli shutdown

RabbitMq服务

# 启动
rabbitmq-server -detached

# 停止
rabbitmqctl stop

# 查看状态
rabbitmqctl status

ElasticSearch服务

切换到非root用户,进入到es的bin目录

# 后台启动
./elasticsearch -d

Kibana服务

# 启动
systemctl start kibana

# 状态
systemctl status kibana

# 关闭
systemctl stop kibana

SpringBoot项目(jar)

# 后台运行jar,并记录日志到当前文件夹下的logs.txt
nohup java -jar moti-cloud-0.0.1-SNAPSHOT.jar >log.txt &

# 停止后台运行的jar
ps -ef | grep java

# kill命令杀掉jar包运行的进程
kill 进程ID

最后修改日期:2020-12-10

作者

留言

I love your writing style genuinely loving this website. Cindelyn Jory Tarrance

Now that you know what you will get with web hosting services, it is time to understand different web hosting types. Hinda Pen Poree

Massa suspendisse lorem turpis ac. Pellentesque volutpat faucibus pellentesque velit in, leo odio molestie, magnis vitae condimentum. Zora Godart Greeson

You should take part in a contest for one of the finest blogs on the internet. Odille Neale Zoes

You made some decent points there. I looked on the internet for the subject matter and found most people will approve with your blog. Dorena Nester Case

撰写回覆或留言

发布留言必须填写的电子邮件地址不会公开。