共 78 篇文章 |
|
[root@web02 ~]# lsmod |egrep "nat|filter|ipt"nf_nat_ftp 3443 0nf_conntrack_ftp 11953 1 nf_nat_ftpiptable_nat 5923 0nf_nat 22676 2 nf_nat_ftp,iptable_natipt_REJECT 2351 2nf_conntrack_ipv4 9154 5 iptable_nat,nf_natnf_conntrack 79206 6 nf_nat_ftp,nf_conntrack_ftp,iptable_nat,nf_nat,nf_conntrack_ipv4,xt_stateipt... 阅365 转0 评0 公众公开 22-05-03 15:43 |
阅17 转0 评0 公众公开 22-05-03 15:33 |
https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-7.9p1.tar.gztar xf openssh-7.9p1.tar.gzcd openssh-7.9p1.# 修改开机启动文件sed -i \''''''''25cSSHD=/usr/local/sbin/sshd\'''''''' /etc/init.d/sshdsed -i \''''''''41... 阅820 转8 评0 公众公开 22-05-01 10:11 |
Linux 系统修改 open files 无效。$ vi /etc/security/limits.conf* soft nofile 65535* hard nofile 65535.$ vi /etc/systemd/system.conf# 分别设置软硬限制:<Soft Limit>:<Hard Limit>DefaultLimitNOFILE=65535:65535# 同时设置软硬限制DefaultLimitNOFILE=65535.一些系统服务是通过 /etc/init.d/ 下的脚本启动的,启动脚本可... 阅989 转1 评0 公众公开 22-04-07 14:31 |
[root@sdw4 ~]# iscsiadm -m node -T iqn.1992-08.com.netapp:sn.c05a581c293b11eabfc4d039ea089e57:vs.10 -p 10.2.1.108 --logout Logging out of session [sid: 2, target: iqn.1992-08.com.netapp:sn.c05a581c293b11eabfc4d039ea089e57:vs.10, portal: 10.2.1.108,3260] Logout of [sid: 2, target: iqn.1992-08.com.netapp:sn.c05a581c293b... 阅3116 转8 评0 公众公开 21-11-29 14:53 |
实际内存占用:used-buffers-cached 即total-free-buffers-cached.A buffer is something that has yet to be “written” to disk. A cache is something that has been “read” from the disk and stored for later use 第3行: 第三行所指的是从应用程序角度来看,对于应用程序来说,buffers/cached 是等于可用的,因为buffer/cached是为了... 阅1266 转0 评0 公众公开 21-09-26 16:45 |
Linux查看物理CPU个数、核数、逻辑CPU个数。# 总核数 = 物理CPU个数 X 每颗物理CPU的核数 # 总逻辑CPU数 = 物理CPU个数 X 每颗物理CPU的核数 X 超线程数# 查看物理CPU个数cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l# 查看每个物理CPU中core的个数(即核数)cat /proc/cpuinfo| grep "cpu cores"| uniq# 查看... 阅14 转0 评0 公众公开 21-09-26 10:34 |
/etc/vsftpd/vsftpd.conf:vsftpd 的核心配置文件。anonymous_enable=NO #允许匿名用户访问为了安全选择关闭local_enable=YES # 允许本地用户登录write_enable=YES # 是否允许写入local_umask=022 # 本地用户上传文件的umaskdirmessage_enable=YES #为YES则进入目录时显示此目录下由message_file选项指定的文本文件(,默认为.message)的内... 阅19 转0 评0 公众公开 21-07-26 08:50 |
iptables -P INPUT DROPiptables -P FORWARD DROPiptables -P OUTPUT DROP.iptables -A INPUT -p tcp --dport 22 -j ACCEPTiptables -A OUTPUT -p tcp --sport 22 -j ACCEPT.# iptables -A INPUT -p tcp -m multiport --dports 21,20,25,53,80 -j ACCEPT 【多端口匹配】# iptables -A INPUT -p tcp --dport 20: -j ACCEPT# iptables -A INPUT -... 阅530 转1 评0 公众公开 21-07-13 14:11 |
iptables查看、添加、删除规则。[root@test ~]# iptables -nv --line-numberiptables v1.4.7: no command specifiedTry `iptables -h'''''''' or ''''''''iptables --help'''''''' for more information.[root@test ~]# iptables -nL --line... 阅106 转0 评0 公众公开 21-07-13 10:42 |