Wesley13 Wesley13
3年前
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
Stella981 Stella981
3年前
Linux进程守护——Supervisor 使用记录
0、旁白Supervisor是个父进程,你要守护的进程会以Supervisor的子进程形式存在,所以老子才可以管儿子官网链接:http://supervisord.org/(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fsupervisord.org%2F)【5、参数
Stella981 Stella981
3年前
Linux node_exporter安装部署
node\_exporter部署tarxzvfnode_exporter0.18.1.linuxamd64.tar.gzcdnode_exporter0.18.1.linuxamd64nohup./node_exporteroutput.log2&1&prome
Stella981 Stella981
3年前
Linux中iptables的正确使用
1.首先介绍一下指令和相关配置文件启动指令:service iptables start重启指令:service iptables restart关闭指令:service iptables stop然后是相关配置:/etc/sysconfig/iptables如何操作该配置呢?vim /etc/sysconfig/iptab
Wesley13 Wesley13
3年前
(转)Linux开启路由转发功能
原文:https://www.linuxidc.com/Linux/201612/138661.htm标记一下,今天想让一台RedHat(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.linuxidc.com%2Ftopicnews.aspx%3Ftid%3D10) En
Stella981 Stella981
3年前
Linux虚拟机上安装redis
1、检查安装依赖程序yuminstallgcccyuminstallytclyuminstallwget2、获取安装文件wgethttp://download.redis.io/releases/redis4.0.6.tar.gz我用的版本是:  redis4.0.6.ta
Stella981 Stella981
3年前
Linux下定时重启tomcat脚本
!/bin/sh./etc/profilepidpsaux|greptomcat|grepvgrep|grepvretomcat|awk'{print$2}'echo$pidifn"$pid"then
Stella981 Stella981
3年前
Linux下Consul集群配置实践
一、Consul官网地址:https://www.consul.io(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwww.consul.io%2F)说明:https://www.consul.io/intro/(https://www
Stella981 Stella981
3年前
Linux常用的网络命令笔记
!(https://oscimg.oschina.net/oscnet/c04e0e6747974f0a93074e15184bc37f.png)1、write命令write用户名:给指定在线用户发送信息,回车后就可以编辑需要发送的信息,编辑信息完信息后以CtrlD或CtrlC保存结束并发送(最好是在新的一行保存发送)。
Stella981 Stella981
3年前
Linux常用命令二
\TOC\Linux常用命令二之前那个太多了,以后新收集的就记在这里.进程挂起与恢复关键命令:CTRLZ将进程挂起到后台(暂停而已)jobs命令显示当前暂停的进程(可以看到程序的编号)bg%N命令使第N个任务在后台运行(%前有空格)