![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
centos
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 评论 -
Cobbler自动部署安装CentOS
安装之前需要关闭防火墙、Selinux和更新安装epel源。一、安装Cobbler以及其相关服务软件包yum -y install cobbler cobbler-web dhcp tftp-server pykickstart httpd rsync xinetd二、启动相关服务systemctl start httpdsystemctl enable httpdsystemctl start cobblerdsystemctl enable cobblerdsystemctl star原创 2020-07-13 14:00:47 · 302 阅读 · 0 评论 -
CentOS报错:There are no enabled repos
在使用yum安装软件的时候报了下面的错误:Loading mirror speeds from cached hostfileThere are no enabled repos. Run "yum repolist all" to see the repos you have. To enable Red Hat Subscription Management repositories: subscription-manager repos --enable <repo>原创 2020-07-09 14:24:56 · 3913 阅读 · 0 评论