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>
使用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>