服务器
文章平均质量分 59
松果177
很多事你无能为力,但你可以尽力
展开
-
Linux自动挂载网络文件系统
linux自动挂载网络文件系统原创 2022-11-07 10:42:43 · 2171 阅读 · 0 评论 -
Linux 抓包工具 tcpdump 用法
Linux 抓包工具 tcpdump 用法tcpdump采用命令行方式对接口的数据包进行筛选抓取,其丰富特性表现在灵活的表达式上。不带任何选项的tcpdump,默认会抓取第一个网络接口,且只有将tcpdump进程终止才会停止抓包。例如:tcpdump -nn -i eth0 icmp下面是详细的tcpdump用法tcpdump选项它的命令格式为:tcpdump [ -DenNqvX ] [ -c count ] [ -F file ] [ -i interface ] [ -r file ]原创 2021-07-27 17:36:52 · 274 阅读 · 0 评论 -
Linux 系统内核优化
Linux操作系统内核优化告诉Linux在用户完成系统登录后,应该调用pam_limits.so模块来设置系统对该用户可使用的各种资源数量的最大限制vim /etc/pam.d/loginsession required /lib/security/pam_limits.so–允许程序监听在一个非本地IP上,而不报错echo “net.ipv4.ip_nonlocal_bind=1” >>/etc/sysctl.conf–允许通过本机转发数据echo “net.ipv4.ip_fo原创 2021-07-27 17:10:59 · 741 阅读 · 0 评论 -
centos7 firewalld配置网关服务器
firewalld配置网关服务器两台服务器,一台可以上网IP地址为192.168.111.129/24,一台服务器不能上网但与192.168.111.129/24互通且处于同一网段IP地址为192.168.111.128/241、192.168.111.129/24配置1.1、开启ip_forward转发cat >>/etc/sysctl.conf<<EOFnet.ipv4.ip_forward=1EOFsysctl -p1.2、转发内网流量firewall-cm原创 2021-07-27 17:06:45 · 527 阅读 · 0 评论 -
GlusterFS文件系统
在线安装yum install -y centos-release-glusteryum install -y glusterfs glusterfs-server glusterfs-fuse glusterfs-rdmasystemctl restart glusterdUbuntu#apt-get install -y glusterfs-server#apt-get install -y glusterfs-client#systemctl restart glusterfs-ser原创 2021-07-27 16:53:05 · 81 阅读 · 0 评论 -
centos上docker+虚拟专用隧道的iptables规则配置
CentOS7默认的防火墙不是iptables,而是firewalld,但firewalld与docker并不是很和谐,在内网部署docker容器时一般选择关闭firewalld解决问题,但对外服务时考虑安全的前提下需要同时使用二者时,我们往往会选择安装iptables-services替代firewalld停止firewalld服务systemctl stop firewalld禁止firewalld开机启动systemctl disable firewalld卸载firewalld服原创 2020-11-16 10:54:04 · 350 阅读 · 0 评论 -
Oracle 12C 单实例DG搭建
主库搭建安装(仅安装数据库软件)备库搭建安装(克隆安装)打包安装完成的数据库软件传送至备机[oracle@oraclenode1 ~]$ cd /data[oracle@oraclenode1 ~]$tar zcforacle-clone.tar.gzoracle/ oraInventory/[oracle@oraclenode1 ~]$ scp...原创 2020-04-11 00:20:07 · 847 阅读 · 0 评论 -
centos7 xl2tp服务器搭建
为了方便不在公司网络上网的个人用户能访问公司内网资源,需要搭建各种安全隧道服务器供使用,可通过在网络设备上配置pptp/l2tp/ipsec/ssl等协议,也可以通过在Windows server服务器上搭建各种安全隧道服务,比如sstp安全隧道,也可以在Linux服务器上搭建pptp/l2tp/ipsec安全隧道,其中网络设备上SSL和pptp协议的安全隧道在MAC电脑上的兼容性极差。下面...原创 2019-09-26 17:34:18 · 8052 阅读 · 0 评论