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 ...
随机推荐
- Acionbar logo
问题: 在使用Actionbar时,默认在左上角是会有一个跟软件发布时的LOGO一样的图标,在大多数情况下按照默认图标进行显示已经很好,既使得软件整体统一,也方便省事.但有些情况下,还是希望不同的界面 ...
- Java 容器(list, set, map)
java容器类库的简化图: (虚线框表示接口, 实线框表示普通的类, 空心箭头表示特定的类实现了接口, 实心箭头表示某个类可以生成箭头所指的类对象) 继承Collection的主要有Set 和 Lis ...
- 【来至百度百科】linux文件结构
文件结构 /:根目录,所有的目录.文件.设备都在/之下,/就是Linux文件系统的组织者,也是最上级的领导者. /bin:bin 就是二进制(binary)英文缩写.在一般的系统当中,都可以在这个目录 ...
- 【WPF系列】基础学习-WPF架构概览
引言 WPF从.net framewok3.0加入以来,经历了很多跟新.每次更新都给用户带来了新的功能或者优化性能.下面我们首先看下WPF再.netFramework中的位置,接着介绍下WPF的架构框 ...
- MySql错误代码1045的解决方案
错误代码 1045Access denied for user 'root'@'localhost' (using password:YES) 解决办法是重新设置root用户密码,在Windows平台 ...
- QuickHit项目(输出字符串游戏)
public class leve { private int leveNo; private int strLength; private int strTimes; private int tim ...
- 前端MVC学习总结——AngularJS验证、过滤器
前端MVC学习总结--AngularJS验证.过滤器 目录 一.验证 二.过滤器 2.1.内置过滤器 2.1.1.在模板中使用过滤器 2.1.2.在脚本中调用过滤函数 2.2.自定义过滤器 三.指令( ...
- jenkins, ant, pmd持续集成
http://pmd.sourceforge.net/pmd-5.0.3/ant-task.html 在jenkins , ant , pmd进行集成的时候,build.xml模板如下,在网上找了一些 ...
- codevs 2894 保留小数
时间限制: 1 s 空间限制: 128000 KB 题目等级 : 白银 Silver 题目描述 Description 给你一个实数,小数点后不超过50位,请你保留到小数点后n位(四舍五入!!!) 输 ...
- Linux内核模块开发基础【转】
本文转载自:http://blog.csdn.net/coding__madman/article/details/51298180 1. 什么是内核模块 内核模块具有以下两个特点:1. 模块本身并不 ...