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?

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

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

  1. 防火墙用 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?的更多相关文章

  1. phpmyadmin登录提示mysqli_real_connect(): (HY000/2002): No such file or directory和mysql8登录失败的问题

    网上的解决方法有很多,但都无法解决我的问题,最后在stackoverflow上找到解决方法,原文地址:https://stackoverflow.com/questions/41881123/mysq ...

  2. 解决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 ...

  3. /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 ...

  4. 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 ...

  5. 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 ...

  6. 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 ...

  7. 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 ...

  8. 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 ...

  9. 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 ...

随机推荐

  1. 附加数据库后无法创建发布,error 2812 解决

    日前,由于业务需要,我要把一个数据库直接迁移到新的实例上 用的方法比较古老,就是直接停旧服务器,将数据文件复制到新服务器上,附加数据库 当然这个附加没有什么可说的了,但是在附加后需要将原来库上的发布重 ...

  2. 【小白的CFD之旅】03 老蓝

    第一次见到老蓝,小白都不太敢相信,对面那不修边幅的糟老头子会是自己要找的导师.嘴里叼着烟,牙都掉了好几颗,穿着还算整齐,这是小白对老蓝的第一印象,这印象并不太好,尤其是在小白发誓认真度过研究生三年时光 ...

  3. 使用Vmware虚拟机部署开发环境之Mac OS X系统安装

    一.使用VMware虚拟机部署Swift开发环境所需工具: Vmware Workstation 10.0虚拟机软件 VM安装Mac解锁工具Unlock 苹果操作系统(Mac OS X Maveric ...

  4. [转]中国最大的Webshell后门箱子调查,所有公开大马全军覆没

    起因 对这件事情的起因是某天我渗透了一个大站,第二天进webshell时就发现,当前目录出现了新的后门,仔细一查,发现是博彩团伙干的,网站被全局劫持黑帽程序如下代码 set_time_limit(); ...

  5. 全面剖析 <input> 标签 ------ HTML\HTML5

    <input>标签因其形式多样.功能强大,当之无愧成为了WEB前端开发人员最钟爱的元素之一.下面就来对<input>做一个全面的剖析: 标签定义: <input> ...

  6. DbContext 和ObjectContext两者的区别

    http://blog.csdn.net/lvjin110/article/details/24642911 ObjectContext是一种模型优先的开发模式,DbContext是代码优先的开发模式 ...

  7. c# 调用c++DLL方法及注意事项

    引用命名空间 using System.Runtime.InteropServices 调用方法: 一.静态加载 用DllImprot方式来加载c++DLL.如下格式: //对应c++方法 //voi ...

  8. 微信小程序之生命周期(三)

    [未经作者本人同意,请勿以任何形式转载] 上一篇介绍微信小程序开发工具使用和项目目录结构. 这一章节介绍微信小程序的生命周期,什么是生命周期呢? 通俗的讲,生命周期就是指一个对象的生老病死. 从软件的 ...

  9. Using Internal EEPROM of PIC Microcontroller

    There are commonly three types of memories in a PIC Microcontroller, Flash Program Memory, Data Memo ...

  10. C#进阶系列——DDD领域驱动设计初探(一):聚合

    前言:又有差不多半个月没写点什么了,感觉这样很对不起自己似的.今天看到一篇博文里面写道:越是忙人越有时间写博客.呵呵,似乎有点道理,博主为了证明自己也是忙人,这不就来学习下DDD这么一个听上去高大上的 ...