![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
hm0406120201
www.huangm.club
展开
-
shell脚本:新建vsftp,并询问是否设置用户或者匿名
#/bin/bash#2020年7月24日#自动安装vsftp,并且询问是否开启相应功能#######################################function Set_service(){ systemctl stop firewalld systemctl disable firewalld setenforce 0 sed -i "s/^SELINUX=enforcing/SELINUX=disabled/g" /etc/sysconfig/selinux}原创 2020-07-27 10:32:05 · 268 阅读 · 0 评论 -
shell脚本:将动态IP更改为静态IP
#!/bin/bashfunction Check_linux_system(){ linux_version=$(cat /etc/redhat-release) if [ $linux_version =~ "CentOS" ];then echo -e "\033[32m 当前系统为 $linux_version \033[0m" else echo -e "\033[32m 当前系统不是原创 2020-07-08 10:22:19 · 925 阅读 · 0 评论