【文件属性】:
文件名称:shell:一些封装的简单shell脚本
文件大小:27KB
文件格式:ZIP
更新时间:2021-02-21 19:05:17
Shell
一些用作服务器部署的Shell脚本
使用步骤
修改Shell的权限
chmod +x " fileName.sh "
执行脚本
./ " fileName.sh "
如果执行失败是由于换行符问题
$ vim " fileName.sh "
$ i
# 告诉 vi 编辑器,使用unix换行符
$ set ff=unix
$ :x
# 查看文件 是否为$结尾
$ cat -A " fileName.sh "
目录
docker的下载与安装
使用docker安装mysql
./docker-install-mysql.sh --help查看帮助文档
可选参数
-u, --user=name设置数据库用户名默认为root
-p, --password[=name] password -p, --password[=name]设置用户名为root的密码,默认为root
-P, --port=
【文件预览】:
shell-main
----README.md(2KB)
----conf()
--------redis.conf(55KB)
----.gitattributes(126B)
----shell()
--------java-install.sh(57B)
--------docker-install-redis.sh(3KB)
--------docker-install-mysql.sh(4KB)
--------docker-install.sh(905B)