Linux常用命令

Ubuntu命令

1.常用命令

  1. rz
  2. sz
  3. curl
    ubuntu/debian 系统安装 Curl 方法: apt-get update -y && apt-get install curl -y
    centos 系统安装 Curl 方法: yum update -y && yum install curl -y
    安装好 curl 之后就能安装脚本了

curl -X PUT -H “Content-Type: application/json” -d ‘{“status”: 1}’ "http://xxxx/xxxx
curl http://xxx/xxx

  1. -X PUT -H “Content-Type: application/json” -d ‘{“status”: 1}’ “http://10.39.34.101:30650/config/system/work/status”
  2. cat命令
    cat 20221013.error.log | grep -a “xxxx”
    cat 20221013.error.log | grep -a “xxxxx”
  3. tail
    tail -f -n 1000 catalina.out | grep -a -3 --line-buffer “发送邮件” | grep -a -3 --line-buffer “异常报警”
    tail -f -n 1000 20221013.error.log | grep -a -3 --line-buffer “2022-10-13 16:30:46”
    满足一个条件
    tail -f catalina.out | grep --line-buffer -E “发送邮件|接收到”
  4. dsf

docker命令

  1. docker run
    docker run -p 6379:6379 --restart=always --net=host --privileged --name redis -v /data/xx/redis/redis.conf:/etc/redis/redis.conf -v /data/aip/redis/data:/data -d 镜像名 容器名 /etc/redis/redis.conf --appendonly yes --requirepass “xxxxx”

sudo docker run -d --restart=always -itd --net=host --privileged -e JAVA_OPTS=‘-Xms1024m -Xmx1024m -XX:+UseConcMarkSweepGC -noverify’ -e APP_PARAMS=‘–spring.profiles.active=prod’ -v /dev/:/dev/ -v /xxx:/xxxx -v /data/xxx/:/data/xxxx/ --name 容器名 镜像名

docker run
–name=xxxxx-web
–volume=/data:/data
–volume=/etc/localtime:/etc/localtime
–network=host
–restart=always
–detach=true
web镜像名

docker run -itd --name aipatrolcar-rabbitmq --restart=always -p 15672:15672 -p 32703:5672 -e RABBITMQ_DEFAULT_USER=xxxx -e RABBITMQ_DEFAULT_PASS=xxxxx 镜像名

  1. docker images
    docker images | grep xxxxx

  2. docker ps
    docker ps -a

  3. fsdfs

  4. fds

  5. fsdf

  6. sd

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值