一、实验背景 Linux下端口转发一般都使用iptables来实现,使用iptables可以很容易将TCP和UDP端口从防火墙转发到内部主机上。 如果需要将流量从专用地址转发到不在您当前网络上的机器上,可尝试另一个应用层端口转发程序rinetd,配置起来比iptables也简单很多。 Rinetd是 ...
分类:
Web程序 时间:
2020-04-19 00:59:21
阅读次数:
83
目录 蒙特卡洛方法概述 采样方法 小结 从名字我们可以看出,MCMC由两个MC组成,即蒙特卡罗方法(Monte Carlo Simulation,简称MC)和马尔科夫链(Markov Chain ,也简称MC)。这个因为受限玻尔兹曼机(RBM)中需要应用,所以先学习下其原理。本文先讲解蒙特卡洛方法。 ...
分类:
其他好文 时间:
2020-04-19 00:37:47
阅读次数:
73
Problem : You are given n pairs of numbers. In every pair, the first number is always smaller than the second number. Now, we define a pair (c, d) can ...
分类:
其他好文 时间:
2020-04-18 10:09:19
阅读次数:
67
关于Centos7以上系统硬件的一些常用查看命令 1. uname -a # 查看内核/操作系统/CPU信息的linux系统信息 2. head -n l /etc/issue # 查看操作系统版本 3. cat /proc/cpuinfo # 查看CPU信息 4. hostname # 查看计算机 ...
分类:
其他好文 时间:
2020-04-15 17:49:32
阅读次数:
106
[ 494.755726][ C0] BUG: KASAN: use-after-free in collect_expired_timers+0x174/0x1d8 [ 494.758452][ C0] Write of size 8 at addr ffff800068868538 by tas ...
分类:
其他好文 时间:
2020-04-14 12:50:13
阅读次数:
115
chainWebpack: config => { config.resolve.alias .set('@', resolve('src')) .set('tim', resolve('src/tim.js')) }, 。 ...
分类:
其他好文 时间:
2020-04-14 10:42:54
阅读次数:
125
优化项1、关闭selinux、关闭firewalld(centos7)/iptables(centos6)2、修改字符集3、精简开机启动项4、修改最大文件描述符5、修改yum源及安装常用工具6、优化系统内核7、优化ssh登录速度8、禁用ctrl+alt+del重启9、设置时间同步10、history优化1、关闭selinux、关闭防火墙a/关闭selinux[root@gitlab~]#sed-i
分类:
其他好文 时间:
2020-04-13 15:32:36
阅读次数:
84
一、用户界面:(1)GUI:GNomeKDE(2)CLI:bash,zsh,sh,csh,tchs,ksh查看所用的SHELL类型~]#echo#SHELL二、远程连接查看:ssh协议:sercureshell~]#ss-tnl查看系统是否监听于TCP协议的22号端口~]ipaddrelist或~]ifconfig查看IP地址三、确保防火墙处于关闭状态~]#iptables-L-n~]#iptab
分类:
系统相关 时间:
2020-04-13 14:04:13
阅读次数:
95
开源博客下载; Linux安装docker,配置自动重启docker里面的redis 安装tomcat,配置tomcat自启。同时把war包打进。 剩余:前端工程打包,配置nginx一并挂到开机自启 问题: Linux重启之后,docker里面的服务外部访问不了。iptables转发正常。只能重启L ...
分类:
其他好文 时间:
2020-04-13 00:35:01
阅读次数:
81
systemctl stop firewalld 关闭防火墙 systemctl status firewalld 查看状态 systemctl disable firewalld 不启动 systemctl enable firewalld 启动 如果使用 service iptables sto ...
分类:
其他好文 时间:
2020-04-12 10:25:32
阅读次数:
65