centos7 没有iptables服务 file or directory? 用secureCRT登录centos?
cenetos7 采用systemd来管理服务
centos7 没有采用传统的iptables服务, 而是采用的firewalld 服务, 以及firewall-cmd 命令;
也可以采用传统的 iptables.service服务来管理防火墙, 但是要安装 iptables-service 程序软件.
如果没有安装iptabes-service "软件/程序" , 将没有iptables命令, 自然就会提示 没有...文件或目录了....
yum install iptables-service;
systemctl start|stop|restart|save|status iptalbes.service
原始的firewalld管理是:
service firewalld start.
centos7 系统默认的防火墙服务叫 firewalld 或: firewalld.service.

关于iptables-services?
安装的程序包, 叫 iptables-services, 注意是iptables, 不是iptable单数; 是services不是 service单数, 可能是因为这个包即包含ipv4, 也包含ipv6.

- 安装后 并没iptables-service(s)命令存在, 可能只是在 /usr/lib/systemd/system/iptables.servce这个服务 (服务实际上也是一个文件/目录 是可执行的程序文件等....)
启动iptables.service, 你可以使用 systemmctl 也可以还是使用老的, service service_name start/status 等, 系统会自动重定向 redirecting to...systemctl....


- 防火墙用 iptables 管理的, 很明确, 可以清楚地看到filter表 中的 三个 链的规则情况:



========================================================
从主机上访问虚拟机上的httpd主页, 开始时访问不上, 根据"四部曲"排错思路, 临时禁用iptables 就可以访问了:

telnet中文乱码: 通过设置: $LANG="zh_CN.GB18030"
默认情况下, centos7是安装并启用了ssh服务的, 而且用securecrt是很好地 连接登录到centos的;
但是, 在默认情况下, 是没有安装 没有开启telnet(server)服务的, 如果要用telnet登录连接的话, 就要安装 telnet-server程序包:
centos的yum 不能连接到 镜像或163 sohu等服务器,, 通常/多半是由于, 原来采用的是dhcp, 后来改成了static, 于是,没有了dns, 所以无法解析域名....
安装了telnet-server后, 如何启动telnet服务器?
这时候, 实际上是启动的 telnet.socket.
还需要安装 xinetd 程序包, 因为telnet是由 xinetd来管理的.
用service 或systemctl 分别启动/ 或将 enable:: telnet.socket 和xinetd.service (默认的就是服务)

用telnet登录比较麻烦, 使用shh2登录比较容易而且 还更安全:

可以直接定义静态地址, 的网关:用 GATEWAY=192.168.1.1就好了!

ssh2 没有目录和文件 的颜色区别?
这个不是ssh的事, 即使你用telnet登录也是这样,
应该是, 设置secureCRT的终端模拟设置, 可以设置, emulation->terminal: linux或xterm. 背景选traditional

centos7 没有iptables服务 file or directory? 用secureCRT登录centos?的更多相关文章
- phpmyadmin登录提示mysqli_real_connect(): (HY000/2002): No such file or directory和mysql8登录失败的问题
网上的解决方法有很多,但都无法解决我的问题,最后在stackoverflow上找到解决方法,原文地址:https://stackoverflow.com/questions/41881123/mysq ...
- 解决CentOS7关闭/开启防火墙出现Unit iptables.service failed to load: No such file or directory.
CentOS7中执行 service iptables start/stop 会报错Failed to start iptables.service: Unit iptables.service fa ...
- /etc/rc.d/init.d/iptables: No such file or directory 错误原因
注:本文转载自cnblogs:一天学点的文章</etc/rc.d/init.d/iptables: No such file or directory 错误原因> RedHat Enter ...
- CentOS 7.x关闭/开启防火墙出现Unit iptables.service failed to load: No such file or directory问题解决
一直用CentOS 6.x,今天用CentOS7.3版本时,防火墙配置后执行service iptables start出现”Failed to restart iptables.service: U ...
- iptables报错:Couldn't load target `accept':/lib64/iptables/libipt_accept.so: cannot open shared object file: No such file or directory
语句:iptables -A INPUT -s 134.192.204.235 -p TCP --dport 11211 -j accept 报错:Couldn't load target `acce ...
- centos7数据库连接使用127.0.0.1报permission denied,使用localhost报No such file or directory
安装lamp环境后,测试数据库连接. 当host使用127.0.0.1时,报错:(HY000/2002): Permission denied. 把host换成localhost后,又报错:SQLST ...
- Failed to execute operation: No such file or directory(systemctl enable iptables.service)
在保存Iptables配置时:systemctl enable iptables.service 出现错误: Failed to execute operation: No such file or ...
- Centos7 安装Redis,报错[adlist.o] Error jemalloc/jemalloc.h: No such file or directory
redis官网 https://redis.io/download 安装 $ wget http://download.redis.io/releases/redis-5.0.4.tar.gz $ t ...
- Centos7解压.tar.bz2提示tar (child): bzip2: Cannot exec: No such file or directory解决方法
Centos7解压.tar.bz2提示tar (child): bzip2: Cannot exec: No such file or directory解决方法 原因是因为该centos没有bzip ...
随机推荐
- android xml 布局错误
最近重新安装了下android开发环境,发现在调整页面的时候 ,老是报以下错误,导致无法静态显示ui效果. Missing styles. Is the correct theme chosen fo ...
- ES5 的 setter 和 getter
有两种方式使用 setter 和 getter 1. set/get var person = { _name: '', get name() { return this._name }, set n ...
- Error:Flash Download Failed-"Cortex-M3"
Error:Flash Download Failed-"Cortex-M3"出现一般有两种情况: 1.SWD模式下,Debug菜单中,Reset菜单选项(Autodetect/H ...
- [C#] 逆袭——自制日刷千题的AC自动机攻克HDU OJ
前言 做过杭电.浙大或是北大等ACM题库的人一定对“刷题”不陌生,以杭电OJ为例:首先打开首页(http://acm.hdu.edu.cn/),然后登陆,接着找到“Online Exercise”下的 ...
- Serial Port Programming on Linux(转载)
This is a tutorial on how to program the Serial Ports on your Linux box.Serial Ports are nice little ...
- UVA10048 Audiophobia[Floyd变形]
UVA - 10048 Audiophobia Consider yourself lucky! Consider yourself lucky to be still breathing and h ...
- Maven配置详见
CSDN 2016博客之星评选结果公布 [系列直播]零基础学习微信小程序! "我的2016"主题征文活动 博客的神秘功能 maven 配置详解 标签: mave ...
- C#.NET 大型企业信息化系统集成快速开发平台 4.2 版本 - 适合大型企业信息化应用使用的角色权限管理体系
每个人外表看看都没什么大区别.但是内在的知识.处理问题的能力.解决问题的能力.头脑灵活性都会有很大的差距.软件组件也是一样,有些组件编写厉害,想问题深入,能处理的难题也多,构思巧妙. 通用快速开发平台 ...
- MYSQL的卸载
卸载mysql 1.查找以前是否装有mysql 命令:rpm -qa|grep -i mysql 可以看到mysql的两个包: mysql-4.1.12-3.RHEL4.1 mysqlclient10 ...
- 新书《编写可测试的JavaScript代码 》出版,感谢支持
本书介绍 JavaScript专业开发人员必须具备的一个技能是能够编写可测试的代码.不管是创建新应用程序,还是重写遗留代码,本书都将向你展示如何为客户端和服务器编写和维护可测试的JavaScript代 ...