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:
本次共找到 337 条 etc 相关的文章
30min搭建kubernetes
PAM和账户安全配置
PAM(可插入认证模块)是UNIX系统上一个实现模块化的身份验证模块服务当程序需要对用户进行身份验证时加载并执行的。PAM文件通常位于/etc/pam.d目录中。配置文件/etc/pam.d/passwordauth/etc/pam.d/systemauth/etc/security/pwquality.conf配置密码创建要
Ubuntu18开启redis服务自启动
设置redis服务开机自启动。1.创建配置文件夹sudomkdir/etc/redissudocp/usr/local/redis/redis.conf/etc/redissudocp/etc/redis/redis.conf/etc/redis/6379.conf2.
ubuntu ftp服务
aptgetinstallvsftpdaptgetupdatevi/etc/apt/sources.listvim /etc/vsftpd.confservicevsftpdrestart\
Linux下MySQL自启动
命令echo"servicemysqldstart"/etc/rc.local或者进入/etc/目录,直接vimrc.local编辑rc.local文件,在最后一行添加“servicemysqldstart”,保存退出bash:/etc/rc.local:Permissiondenied分析:bash返回 /etc/rc
Linux的环境变量配置
Linux下设置变量有三种方法:第一种:在/etc/profile文件中添加变量【对所有用户生效(永久的)】 用VI在文件/etc/profile文件中增加变量,该变量将会对Linux下所有用户有效,并且是“永久的”。 例如:编辑/etc/profile文件,添加CLASSPATH变量 vi/etc/profile
update
root@hmsaasdb:/etc/init.dupdaterc.dconfluencedisableupdaterc.d:error:confluenceDefaultStartcontainsnorunlevels,aborting.root@hmsaasdb:/etc/init.dm
ubuntu 网络配置
修改ip:vi/etc/network/interfacesautoeth0ifaceeth0inetstaticaddress192.168.1.120netmask255.255.255.0gateway192.168.1.1修改dns:vi/etc/resolvconf/reso
CentOS7.2部署采集系统
rmrf/etc/yum.repos.d/\scproot@192.168.48.81:/etc/yum.repos.d/\/etc/yum.repos.d/vim/etc/hosts(添加10.0.153.222mirrors.tvmining.com)rpmivhkerneldevel3.10.0327.e
Linux上ssh免秘钥互登
两台机器分别为:master:192.168.1.10sever1:192.168.1.201、检查机器名和连通性a.查看/etc/hostnameroot@mastermastermore/etc/hostnamemastermaster@sever1~$more/etc/host
Ubuntu安装NGINX+PHP
禁止IP6协议vi/etc/modprobe.d/blacklist.conf底部追加blacklistipv6修改软件仓库源mv/etc/apt/sources.list/etc/apt/sources.list.bakvi/etc/apt/sources.listUbuntu14
Linux常用软件启动、停止、重启命令
一、PHP启动命令:/usr/local/php5/sbin/phpfpm停止命令:pkillphpfpm二、MySQL启动命令:/etc/init.d/mysqldstart停止命令:/etc/init.d/mysqldstop重启命令:/etc/
CentOS6.5 永久修改主机名
1、编辑/etc/sysconfig/network文件vi/etc/sysconfig/networkNETWORKINGyesHOSTNAMEtest012、修改 /etc/hosts文件root@localhost~vim/etc/hosts127.0.0.1
Linux用户的基本操作3 (组的基本管理,用户提权)
\toc\组的基本原理组账户信息保存在/etc/group和/etc/gshadow两个文件中./etc/group组账户信息root@zls~head2/etc/grouproot:x:0:bin:x:1:bin,daemon///etc
Centos 修改远程连接端口
1.执行命令vi /etc/ssh/sshd\_config2.添加Port243.重启sshd 命令:/etc/init.d/sshdrestart4.如果出现如下错误:bash:/etc/init.d/sshd:Nosuchfileordirectory5.
CentOS6安装Xmanager远程桌面
CentOS6配置:安装gdm(若已安装则不需安装)yumyinstallgdm配置系统为图形模式,打开/etc/inittab,修改为id:5:initdefault:(若已为5则不需修改)vi/etc/inittab打开/etc/gdm/custom.conf,在\security\和\xdmcp\字段下分别
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
Cocos实现对ETC2的支持
!(https://oscimg.oschina.net/oscnet/dbe31317b01b4412a716c20f22359934.jpg"1711134845.jpg")在深圳Cocos沙龙上,有幸结识了社区中大名顶顶的Colin,Shawn在在论坛上第一次看到Colin的团队用CocosCreator制作的《热血暗黑》时就被深深地
Linux常用的配置文件
/etc/sysconfig/network 基本网络全局配置如:主机名、网关/etc/sysconfig/networkscripts/ifcfgeth0 网卡配置文件,可配置ip、掩码、网关、静态或动态获取地址、是否随开机自启动/etc/hosts 存
Centos7网络配置
Centos7网络配置网络相关目录说明/etc/sysconfig/network包括主机基本网络信息,用于系统启动/etc/sysconfig/networkscript/此目录下是系统启动最初始化网络的信息/etc/sysconfig/networkscript