Wesley13 Wesley13
2年前
SSH服务器设置
\ssh服务器/etc/init.d/sshd\stop|start|restart\netstattl可以查看ssh服务是否正在运行远程登录ssh:sshusername@hostnameeg:sshyangjia@localhost设置文件:/etc/ssh/sshd\_config(debian)
Wesley13 Wesley13
2年前
Linux下SSH安全控制登录
sshd config安全控制限制登录1、只允许某个IP登录,拒绝其他所有IP在 /etc/hosts.allow 写:sshd: 1.2.3.4在 /etc/hosts.deny 写:sshd: ALL用 iptables 也行:iptables A INPUT p
Wesley13 Wesley13
2年前
linux 添加java环境变量
在/etc/profile文件改权限.然后在终端输入sudogedit/etc/profile.或者用root用户直接编辑.在文件末尾添加如下几句:exportJAVA\_HOME/usr/java/jdk1.5exportPATH$JAVA\_HOME/bin:$PATHexportCLASSPATH.:$J
Wesley13 Wesley13
2年前
K8S
准备主机1.centos7镜像2.node1:192.168.0.1013.node2:192.168.0.1024.node3:192.168.0.1035.vip:192.168.0.104配置ssh免密 并修改/etc/hosts跟/etc/hostname配置所
Stella981 Stella981
2年前
CentOS 6.5关闭selinux
vi/etc/selinux/configThisfilecontrolsthestateofSELinuxonthesystem.SELINUXcantakeoneofthesethreevalues:enforcingSELinuxsecuritypo
Wesley13 Wesley13
2年前
Ubuntu apt更换为阿里源
apt源配置在/etc/apt/sources.list,首先备份一下:cd/etc/apt/cpsources.listsources.list.bak然后修改sources.list为:debhttp://mirrors.aliyun.com/ubuntu/xenialmainrest
Stella981 Stella981
2年前
Linux时区和时间设置
1.修改时区tzselect!(https://oscimg.oschina.net/oscnet/upaf3994ceba21ea110ac0ca04f89e6099c20.png)2.修改/etc/profilevim/etc/profile
Stella981 Stella981
2年前
Linux思维导图之sed、实战习题
!(https://oscimg.oschina.net/oscnet/13ff950f13a554bfcf285c54c591c71149b.png)命令解释:◆sed2p/etc/passwd第二行打印了两次其余一次◆sedn'2p'/etc/passwd只打印出第二行◆sedn1,4p'/etc/passwd只打
Stella981 Stella981
2年前
Linux学习:正则表达式习题
1.显示/etc/passwd文件中以bash结尾的行123\root@www ~\ grep n '\\(bash\\)$' /etc/passwd1:root:x:0:0:root:/root:/bin/bash38:Allen:x:500:500:Allen.Huang:/hom
helloworld_27355581 helloworld_27355581
4个月前
QCN6224 VS QCN9274 What are the performance differences? - As an M.2 WiFi7 card chipset
QCN6224ismainlyusedinthefieldofmobilecommunication,suchassmartphones,InternetofThingsdevices,etc.Supportedcommunicationstandards