博客
关于我
Nmap端口服务 之 CentOS7 关于启动Apache(httpd)服务、telnet服务、smtp服务、ftp服务、sftp服务、snmp服务
阅读量:802 次
发布时间:2023-01-23

本文共 1049 字,大约阅读时间需要 3 分钟。

CentOS7 下 Apache 服务及相关网络服务配置详解

  • 1. Apache HTTP Server 响应式配置

    安装并启动 Apache 服务

    sudo yum install httpd -y

    启动服务(默认端口为 80

    sudo systemctl start httpd

    立即生效

    sudo systemctl enable httpd
  • 2. Telnet 服务配置

    安装 Telnet 服务

    sudo yum install telnet -y

    配置加密/auth 信息(推荐)

    sudo telnet -L : -p .
  • 3. SMTP 邮件服务配置

    安装 Sendmail SMTP 服务器

    sudo yum install sendmail -y

    配置 SMTP Row 过载

    sudo sendmail -C 25

    添加-v Sendmail 配置(可选)

    sudo /etc/mail/news.Config.in
  • 4. FTP 服务配置

    安装 ProFTPd FTP 服务器

    sudo yum install proftpd -y

    配置 FTP 密匿,在 /etc/proftpd.conf 中添加

    AuthType Plain

    启动服务

    sudo systemctl start proftpd

    立即生效

    sudo systemctl enable proftpd
  • 5. SFTP 服务配置

    安装 OpenSSH 系统 SFTP 服务

    sudo yum install openssh-server -y

    配置 PasswordAuthentication

    PubkeyAuthentication yes

    32755:3 nướng

    Port 20,21

    启动服务

    sudo systemctl start sshd

    配置 SSH 秘钥

    ssh-keygen -b 4096 -f /etc/ssh/ssh-private-key

SFTP 服务详解

基本优势

SFTP 提供安全的文件传输,支持加密传输,易于部署,兼容 SSH

配置步骤

独立于传统 FTP,不需要额外守护进程

使用 SSH 加密隧道(默认端口 22)

配置 OpenSSH 中的 AllowCONNECT 参数

附录 A: SFTP 常用参数说明

选择性启用服务

按照需求动态配置网络服务

  • Telnet 适用于内部管理访问
  • SMTP 配置邮件服务器
  • FTP 提供文件交换
  • SFTP 适合安全文件传输

转载地址:http://yveyk.baihongyu.com/

你可能感兴趣的文章
Python 垃圾收集器文档
查看>>
python 基于 wordcloud + jieba + matplotlib 生成词云
查看>>
python 基于detectron或mask_rcnn的mask遮罩区域进行图片截取
查看>>
Python编程:Tkinter图形界面设计(2)
查看>>
Python 基础 - Day 5 Learning Note - 模块 之 标准库:time (1)
查看>>
Python 基础一
查看>>
Python 基础知识点整理与分享,期盼你的交流!
查看>>
python 基础第七篇
查看>>
Python编程:Tkinter图形界面设计(1)
查看>>
Python 基础语法:None
查看>>
Python 基础语法:基本数据类型(一)
查看>>
python编程读取写入excel_Python读取txt内容写入xls格式excel中的方法
查看>>
Python 基础语法:基本数据类型(字典)
查看>>
Python 基础语法:基本数据类型(字符串)
查看>>
Python 基础语法:基本数据类型(集合)
查看>>
Python编程的终极十大工具
查看>>
python 堆排序
查看>>
python编程方式之一-函数式编程
查看>>
python 复习计划
查看>>
Python 多处理 apply_async 永远不会在 Windows 7 上返回结果
查看>>