在gitee上创建新仓库,复制仓库地址 在本地项目文件夹中,打开git bash命令行 git init提交代码 git add .git commit -m 'first commit'添加远程仓库 git remote add origin 远程地址代码推到远程 git push origin ...
分类:
其他好文 时间:
2020-07-15 12:46:04
阅读次数:
111
开始安装 参考文档:https://www.jianshu.com/p/3eb1e178f51b (最后使用windows本地docker,wsl中代理,因为当前版本不支持,最新版本据说支持了,没有尝试过) docker常用命令 docker exec -it ecMysql bash 进入容器 d ...
分类:
数据库 时间:
2020-07-14 13:36:28
阅读次数:
122
https://blog.csdn.net/u013469753/article/details/106688892 1、编写脚本,显示进度条 #!/bin/bash # 编写脚本,显示进度条 myProgress(){ while : do echo -n '#' sleep 0.2 done } ...
分类:
系统相关 时间:
2020-07-14 00:43:26
阅读次数:
91
编写脚本文件 #!/bin/bash #chkconfig: 22345 10 90 #description: Start and Stop redis REDISPORT=6379 EXEC=/usr/local/soft/redis5/bin/redis-server CLIEXEC=/usr ...
分类:
其他好文 时间:
2020-07-14 00:34:31
阅读次数:
331
最近终端启动很慢,查阅相关资料后发现是,因为nvm在安装的时候,需要在 ~/.bashrc(如果你的终端用的是bash)或者~/.zshrc(如果你的终端用的是zsh) 中添加: export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. " ...
分类:
其他好文 时间:
2020-07-14 00:28:38
阅读次数:
104
准备工作: 安装Git Bash工具 1 是否存在id_rsa.pub文件 进入C:\Users\username.ssh目录,检查是否有id_rsa.pub文件,如果存在跳至第3步。 2 生成id_rsa.pub文件 在bash中输入 ssh-keygen -t rsa -C "yourEmail ...
#/bin/bash # 设置时区并同步时间 ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime if ! crontab -l |grep ntpdate &>/dev/null ; then (echo "* 1 * * * ntpdat ...
分类:
其他好文 时间:
2020-07-13 15:31:09
阅读次数:
97
Shell编程-1 what>why>how学习方向 shell bash bash 解释器,启动器 用户的交互输入 文本文件输入 [root@MDNode01 shell]# ps -fe UID PID PPID C STIME TTY TIME CMD root 1 0 0 03:27 ? 0 ...
分类:
系统相关 时间:
2020-07-12 22:27:51
阅读次数:
109
一、监控CPU和内存的日志工具的使用 1、阿里云提供了一个监控CPU和内存的脚本,因free版本不同的原因,脚本中的内容有做细微的修改,脚本内容如下: #!/bin/bash #When the free memory very less ,this script to collect CPU/me ...
分类:
系统相关 时间:
2020-07-12 20:48:34
阅读次数:
115
一、下载jdk安装包 wget https://imcfile.oss-cn-beijing.aliyuncs.com/shizhan/file/liaoshixiong/jdk-8u231-linux-x64.tar.gz` 二、解压安装 tar zxvf jdk-8u231-linux-x64. ...
分类:
系统相关 时间:
2020-07-12 15:06:13
阅读次数:
96