0
点赞
收藏
分享

微信扫一扫

Redis中数据类型的使用(hash和list)

半夜放水 2024-09-30 阅读 16

方法一:切换到shell脚本所在的目录(此时,称为工作目录)执行shell脚本

cd /data/shell
./hello.sh

方法二:以绝对路径的方式去执行bash shell脚本

/data/shell/hello.sh

方法三:直接使用bash 或sh 来执行bash shell脚本

cd /data/shell
bash hello.sh

cd /data/shell
sh hello.sh

方法四:在当前的shell环境中执行bash shell脚本

cd /data/shell. hello.sh

cd /data/shell
source hello.sh

方法五:在其他的shell环境中执行bash shell脚本

bash /data/shell/hello.sh

sh /data/shell/hello.sh

推荐教程:centos/" target="_blank">centos教程

以上就是centos怎么执行脚本的详细内容,更多请关注CSDN其它相关文章!

举报

相关推荐

0 条评论