DevOpSec DevOpSec
3年前
30min搭建kubernetes
masterandnode操作如下yum源修改//备份本地yum源mv/etc/yum.repos.d/CentOSBase.repo/etc/yum.repos.d/CentOSBase.repo_bak//获取阿里yum源配置wgetO/etc/yum.repos.d/CentOSBase.repohttp:
DevOpSec DevOpSec
3年前
PAM和账户安全配置
PAM(可插入认证模块)是UNIX系统上一个实现模块化的身份验证模块服务当程序需要对用户进行身份验证时加载并执行的。PAM文件通常位于/etc/pam.d目录中。配置文件/etc/pam.d/passwordauth/etc/pam.d/systemauth/etc/security/pwquality.conf配置密码创建要
Wesley13 Wesley13
2年前
Linux的环境变量配置
Linux下设置变量有三种方法:第一种:在/etc/profile文件中添加变量【对所有用户生效(永久的)】  用VI在文件/etc/profile文件中增加变量,该变量将会对Linux下所有用户有效,并且是“永久的”。  例如:编辑/etc/profile文件,添加CLASSPATH变量  vi/etc/profile  
Wesley13 Wesley13
2年前
update
root@hmsaasdb:/etc/init.dupdaterc.dconfluencedisableupdaterc.d:error:confluenceDefaultStartcontainsnorunlevels,aborting.root@hmsaasdb:/etc/init.dm
Wesley13 Wesley13
2年前
ubuntu 网络配置
修改ip:vi/etc/network/interfacesautoeth0ifaceeth0inetstaticaddress192.168.1.120netmask255.255.255.0gateway192.168.1.1修改dns:vi/etc/resolvconf/reso
Stella981 Stella981
2年前
Centos 修改远程连接端口
1.执行命令vi /etc/ssh/sshd\_config2.添加Port243.重启sshd 命令:/etc/init.d/sshdrestart4.如果出现如下错误:bash:/etc/init.d/sshd:Nosuchfileordirectory5.  
Stella981 Stella981
2年前
CentOS6安装Xmanager远程桌面
CentOS6配置:安装gdm(若已安装则不需安装)yumyinstallgdm配置系统为图形模式,打开/etc/inittab,修改为id:5:initdefault:(若已为5则不需修改)vi/etc/inittab打开/etc/gdm/custom.conf,在\security\和\xdmcp\字段下分别
Wesley13 Wesley13
2年前
Ubuntu16.04安装docker
1.更换镜像(1)备份原来的源sudocp/etc/apt/sources.list/etc/apt/sources.list.bakcup(2)编辑sources.listssudovim/etc/apt.sources.list添加如下内容:debhttp://mirrors.aliyun.com/ubuntu
Stella981 Stella981
2年前
Linux常用的配置文件
/etc/sysconfig/network         基本网络全局配置如:主机名、网关/etc/sysconfig/networkscripts/ifcfgeth0     网卡配置文件,可配置ip、掩码、网关、静态或动态获取地址、是否随开机自启动/etc/hosts         存
Stella981 Stella981
2年前
Centos7网络配置
Centos7网络配置网络相关目录说明/etc/sysconfig/network包括主机基本网络信息,用于系统启动/etc/sysconfig/networkscript/此目录下是系统启动最初始化网络的信息/etc/sysconfig/networkscript