shell脚本编译成二进制可执行

使用shc

wget https://download-ib01.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/s/shc-4.0.3-1.el8.x86_64.rpm

rpm -ivh shc-4.0.3-1.el8.x86_64.rpm
yum install -y gcc

shc -v -r -f <file.sh>

参考:
https://cloud.tencent.com/developer/article/2020461

posted @ 2022-11-26 09:04  小黑狐狸1001  阅读(132)  评论(0编辑  收藏  举报