systemctl start docker
docker run -it centos /bin/bash
F:\elasticsearch\elasticsearch-head-master>cnpm install
F:\elasticsearch\elasticsearch-head-master>npm run start
canal ./startup.sh
清理浏览器缓存 ctrl shift del
下载文件到桌面 sz 文件名
上传文件 rz -y(覆盖)
git@github.com:1600767556/mybatis.git
[TOC]
# 关闭防火墙
systemctl stop firewalld
通用关闭服务命令
# 查看pid
ps -ef|grep 服务名
# 关闭服务
kill -9 pid
tomcat9.0.0
# 切换目录
cd /usr/java/apache-tomcat-9.0.0.M26/bin
# 启动
./startup.sh
# 后台查看日志启动
./startup.sh | tail -f ../log/catalina.out &
# 查看日志
cd ..
cd logs/
tail -f catalina.out
zookeeper3.4.8
cd ..
cd usr/java/zookeeper-3.4.8/bin/
# 启动
./zkServer.sh start
./zkCli.sh
MySQL8.0.17
cd usr/java/mysql/bin/
# 启动
./mysqld_safe &
Redis3.2.9
cd usr/java/redis-3.2.9/src/
# 启动
./redis-server ../redis.conf &
# 指定连接客户端
./redis-cli -a 123456 -h 192.168.174.131
# 关闭
redis-cli -a 123456 -h 192.168.174.131 shutdown
Consul1.11.4
# 启动
consul agent -dev 只能127.0.0.1可以访问
consul agent -dev -client 0.0.0.0 -ui 指定ip可以访问
rabbitMQ
cd usr/java/
# 添加用户
[root@rabbitmq1 ebin]# rabbitmqctl add_user admin 111111
Adding user "admin" ...
[root@rabbitmq1 ebin]# rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
Setting permissions for user "admin" in vhost "/" ...
[root@rabbitmq1 ebin]# rabbitmqctl set_user_tags admin administrator
Setting tags for user "admin" to [administrator] ...
# 赋予权限
[root@localhost java]# rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
# 启动
[root@localhost java]# rabbitmq-server start &
# 停止服务
rabbitmqctl stop
账号密码
localhost:guest guest
外部:admin 密码:你懂得
zipkin2.9.4
cd /usr/java/zipbin/
# 启动
java -jar zipkin-server-2.9.4-exec.jar
nginx1.18.0
cd /usr/java/nginx_fdfs/sbin
# 启动 指定配置文件启动
./nginx -c /usr/java/nginx-1.18.0_nacos/conf/nginx.conf
# 处理完请求后关闭
ps -ef | grep nginx
kill -QUIT 主pid
# 暴力关闭
ps -ef | grep nginx
kill -TERM 主pid
# 重启
./nginx -s reload
# 登录地址
http://192.168.174.131/
# nginx Windows版
启动 nginx.exe 关闭:nginx.exe -s stop
Sentinel1.8.3
cd /usr/java/Sentinel-dashboard/
# 启动
java -jar sentinel-dashboard-1.8.3.jar
# 登录地址
http://192.168.174.131:8080/
Nacos1.4.3
cd /usr/java/nacos/bin TODO
# 三个端口号启动
startup.sh - p 3333
startup.sh - p 4444
startup.sh - p 5555
# 登录地址
http://192.168.174.131:1111/nacos/#/login
FastDFS
# 启动带有Fastdfs模块的Nginx
/usr/java/nginx_fdfs/sbin/nginx -c /usr/java/nginx_fdfs/conf/nginx.conf -t
/usr/java/nginx_fdfs/sbin/nginx -c /usr/java/nginx_fdfs/conf/nginx.conf
# 启动FastDFS的tracker服务
在任意目录下执行:fdfs_trackerd /etc/fdfs/tracker.conf
# 启动FastDFS的storage服务
在任意目录下执行:fdfs_storaged /etc/fdfs/storage.conf
# 重启tracker
fdfs_trackerd /etc/fdfs/tracker.conf restart
# 重启storage
fdfs_storaged /etc/fdfs/storage.conf restart
# 2.5.1 关闭tracker执行命令
在任意目录下执行:fdfs_trackerd /etc/fdfs/tracker.conf stop
# 闭storage执行命令
在任意目录下执行:fdfs_storaged /etc/fdfs/storage.conf stop
# 查看FastDFS进程
ps -ef|grep fdfs
Jekins
cd /usr/java/Jekins
# 第一次启动会提示密码
java -jar jenkins.war --httpPort=8090
# 查看密码的地址
This may also be found at: /root/.jenkins/secrets/initialAdminPassword
# 后台运行
[root@localhost ~]# nohup java -jar /usr/java/jenkins/jenkins.war >/usr/java/jenkins/jenkins.out &
[root@localhost ~]# cat /root/.jenkins/secrets/initialAdminPassword