大家在Dockler中,有没有遇到这样的问题,好不容易输入一大串之后,最后想要上下键,找寻刚刚使用的命令时,却发现出现这样的错误: 这是字符集的问题,sh不支持这种行为,但要怎么做才可以呢? 有两种方法: 第一种: 再启动Docker的时候,后面跟上/bin/bash docker run -it ...
分类:
其他好文 时间:
2020-08-13 12:41:31
阅读次数:
66
acme.sh 快速实现 https 证书颁发与自动续期 借助acem.sh来迅速实现 let's encrypt 的泛域名 ssl 证书颁发与续期,基本上五分钟就可以解决战斗 本文主要内容来自 acme.sh 的官方 wiki,一切以官方说明为准: acme wiki I. 安装步骤 1. 登录服 ...
分类:
Web程序 时间:
2020-08-10 10:51:51
阅读次数:
83
练习:1、编写脚本systeminfo.sh,显示当前主机系统信息,包括:主机名,IPv4地址,操作系统版本,内核版本,CPU型号,内存大小,硬盘大小#!/bin/bashYELLOW=‘\e[1;33m‘RED=‘\e[1;31m‘END=‘\e[0m‘echo-e"${YELLOW}++++++++++++++++++++++++++++++++++++++++++${END}"echo-e"
分类:
系统相关 时间:
2020-08-10 09:32:20
阅读次数:
94
date 显示系统日期 curl ifconfig.me linux下获取自己的外网IP 磁盘空间: df -h 显示已经挂载的分区列表 du -sh dir5 (-s表示总结的意思) 即只列出一个总结的值 du -ah dir5 (-a表示包括目录和文件) 文件和目录操作: ls -l 显示文件和 ...
分类:
系统相关 时间:
2020-08-10 00:10:26
阅读次数:
192
编写脚本实现在指定文件路径下查找文件夹或文件名。 脚本如下: #!/bin/sh # lazy find # GNU All-Permissive License # Copying and distribution of this file, with or without modificatio ...
分类:
系统相关 时间:
2020-08-09 09:19:05
阅读次数:
100
一、安装步骤先说一下centos7下安装方法:git clone https://github.com/chxuan/vimplus.git ~/.vimpluscd ~/.vimplus./install.sh //不加sudo如果一切顺利,这样就装好了,但建议先看下面我遇到的问题1。二、遇到的问... ...
分类:
系统相关 时间:
2020-08-08 17:47:28
阅读次数:
110
package com.sh.springboottdemo2.util; import com.sun.org.apache.xerces.internal.impl.dv.util.Base64; import javax.crypto.Cipher; import javax.crypto.K ...
分类:
编程语言 时间:
2020-08-04 09:44:58
阅读次数:
66
建议在用户家目录创建.vimrc文件:文件格式如下:setignorecasesetautoindentsetpasteautocmdBufNewFile*.shexec":.callSetTitle()"funcSetTitle()ifexpand("%:e")==‘sh‘callsetline(1,"#!/bin/bash")callsetline(2,"#******************
分类:
系统相关 时间:
2020-08-03 23:10:17
阅读次数:
112
yuminstall-yzsh#安装zshsh-c"$(curl-fsSLhttps://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"#安装ohmyzshorsh-c"$(wgethttps://raw.githubusercontent.com/robbyrussell/oh-my-zsh/m
分类:
其他好文 时间:
2020-07-31 19:20:37
阅读次数:
76
查看消费组详情: ./bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --describe --group test-consumer-group 查看topic详情: ./bin/kafka-topics.sh --to ...
分类:
其他好文 时间:
2020-07-31 18:03:33
阅读次数:
83