iptables -A INPUT -p tcp --dport 1234 -j DROP iptables -I INPUT 1 -p tcp --dport 1234 -j ACCEPT 12 iptables -A INPUT -p tcp --dport 1234 -j DROPi...
通过iptables防火墙限制端口与放行端口
2020.02.27 , linux , No Comments , 827 views ,隐藏溢出和内容溢出元素框时自动出现滚动条
2020.01.18 , WEB前端 , No Comments , 805 views ,overflow: hidden; //隐藏溢出 overflow-y: auto; //内容溢出元素框时自动出现滚动条,滑动滚动条显示溢出的内容。
whmcs菜单判断登录
2020.01.15 , WEB前端 , No Comments , 837 views ,{if $loggedin}{else} 中间是登录代码 {/if}
阿里云debian8换源
2020.01.15 , linux , No Comments , 761 views ,cd /etc/apt rm -rf sources.list.d deb http://mirrors.ustc.edu.cn/debian/ jessie main contrib non-free deb http://mirrors.ustc.edu.cn/debian/ jessie-updates main contrib non-free deb http://mirrors.ustc.edu.cn/debian-secu...
阿里云RDS上用mysqldump导入导出
2020.01.15 , linux , No Comments , 706 views ,mysqldump -h cloudcc.mysql.aliyun.com -u user_name -p --opt --default-character-set=utf8 --extended-insert=false --triggers --hex-blob db_name > /tmp/db_name.sql mysql -h cloudcc.mysql.aliyun.com -u user_name -p db_name ...
Debian 9 Vim不能使用鼠标右键复制粘贴的解决办法
2019.11.12 , linux , No Comments , 826 views ,1. 编辑 vim 的默认配置文件 vim /usr/share/vim/vim80/defaults.vim 2. 转至第 70 行,找到: if has('mouse') set mouse=a endif 3. 将 set mouse=a 改为:set mouse-=a 4. 输入 :wq 保存即可生效。
CentOS7安装iptables防火墙
2019.10.9 , linux , No Comments , 763 views ,CentOS7 默认的防火墙不是iptables,而是firewalle. 安装 iptable iptable-service #先检查是否安装了iptables service iptables status #安装iptables yum install -y iptables #升级iptables yum update iptables #安装ipta...
使用iptables进行端口转发
2019.10.7 , 未分类 , No Comments , 697 views ,第一步:开启系统的转发功能 vi /etc/sysctl.conf 1 vi /etc/sysctl.conf 将 net.ipv4.ip_forward=0 修改成 net.ipv4.ip_forward=1 编辑后使用命令让配置马上生效 ...