
Linux
王昭阳
没有签名
展开
-
Ubuntu开启所有端口
Ubuntu开启所有端口ubuntu开启所有端口iptables -P INPUT ACCEPTiptables -P FORWARD ACCEPTiptables -P OUTPUT ACCEPTiptables -Fiptables-save这样可以开放所有端口(如需开启指定端口 可以使用 iptables -I INPUT -p tcp --dport 8080 -j ACCEPT),但是如果服务器重启,不会保存,如果想持续化规则:使用iptables-persistent首先安装原创 2020-09-19 10:54:28 · 18131 阅读 · 3 评论 -
解决Centos刚安装后wget报错,“wget: unable to resolve host address”
网卡正常配置,wget无法下载包,首先考虑DNS问题vi /etc/resolv.conf#添加如下内容nameserver 8.8.8.8nameserver 8.8.4.4原创 2020-09-15 19:16:27 · 6482 阅读 · 0 评论 -
如何解决Linux包安装错误且无法卸载
问题描述我无法更新我的系统,因为它在安装third-party更新(zramswap-enabler)时冻结了!有时我在Update Manager中收到以下消息:Could not initialize the package information An unresolvable problem occurred while initializing the package information.Please report this bug against the ‘update-manage原创 2020-09-09 09:54:07 · 7894 阅读 · 0 评论