美文网首页
各种服务相关的配置文件路径

各种服务相关的配置文件路径

作者: linux_龍 | 来源:发表于2019-06-18 21:20 被阅读0次

1.ssh远程

/etc/ssh/sshd_config
提高SSH远程连接速度
 修改ssh服务配置文件
vim /etc/ssh/sshd_config  两个参数功能需要关闭
79 GSSAPIAuthentication yes   --- 远程认证的方式
 115 #UseDNS yes                --- DNS 已知域名 解析IP地址   反向DNS解析:已知IP,解析名称

2.firewalld防火墙

系统安全优化:
 系统防火墙优化:关闭
centos6   iptables
关闭安全服务:
临时关闭:
/etc/init.d/iptables stop == services stop iptables
/etc/init.d/iptables status
/etc/init.d/sshd stop
永久关闭:
chkconfig  iptables off
chkconfig  --list  iptables
centos7   firewalld
关闭安全服务:
临时关闭:systemctl stop firewalld
永久关闭:systemctl disable firewalld
 检查确认:systemctl status firewalld
              systemctl is-active firewalld
                  systemctl is-enabled firewalld
PS: systemctl 可以控制多个服务同时关闭或启动

3.selinux优化

系统selinux优化:关闭
setenforce 0
    getenforce     --- 检查确认
    永久关闭:
    vi /etc/selinux/config 
    enforcing   - SELinux security policy is enforced.
                  selinux安全策略是激活
    permissive  - SELinux prints warnings instead of enforcing.
                  selinux输出警告信息替换激活功能 --- 临时关闭
    disabled    - No SELinux policy is loaded.
                  selinux安全策略没有被加载

    sed -n '7p' /etc/selinux/config   --- 进行检查确认
    sed -i  '7s#enforcing#disabled#g' /etc/selinux/config   --- sed命令修改文件内容
    
    补充:selinux程序由关闭 --- 启动,系统重启会有长时间延迟

4.ip地址串联

[root@backup ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
172.16.1.5      lb01
172.16.1.6      lb02
172.16.1.7      web01
172.16.1.8      web02
172.16.1.31     nfs01
172.16.1.41     backup
172.16.1.51     db01 db01.etiantian.org
172.16.1.61     m01

5.rsync配置文件

[root@web01 ~]# cat /etc/rsyncd.conf 
# /etc/rsyncd: configuration file for rsync daemon mode

# See rsyncd.conf man page for more options.

# configuration example:

相关文章

  • 各种服务相关的配置文件路径

    1.ssh远程 2.firewalld防火墙 3.selinux优化 4.ip地址串联 5.rsync配置文件

  • linux系列3-查找服务路径

    命令:whereis 服务名称 会列出服务相关的所有路径。 配置文件一般在etc路径下面 安装文件一般在bin或者...

  • 2018-09-23 sphinx命令行最新的

    sphinx配置文件路径 启动sphinx服务 关闭sphinx服务 根据配置文件建立索引

  • sphinx 命令行

    sphinx配置文件路径 启动sphinx服务 关闭sphinx服务 根据配置文件建立索引

  • 在centos 6.7上配置ftp server

    1,使用yum安装vsftpd服务 2,设置为自启动服务 3,在配置文件中配置ftp 服务,配置文件路径:/etc...

  • 我的linux相关

    主要用于自己的简单操作 mysql相关重启:systemctl start mysqld默认配置文件路径:配置文件...

  • 010.Debian系统基本操作

    1. Debian系统基本操作 1.1 常用服务配置文件路径 网卡配置文件:/etc/network/interf...

  • Jenkins系列:环境配置介绍

    Jenkins环境深入理解 Jenkins相关配置文件路径Jenkins工作目录:/Users/Shared/Je...

  • Matplotlib(3)

    获取matplotlib的配置文件的路径 对于在没有GUI的服务器,备份配置文件之后,更改其中的backend为A...

  • 1.ZooKeeper服务端启动过程

    加载解析配置文件,明确磁盘快照路径、事务日志路径、心跳时间、serverid、集群中的其他服务器地址和端口、角色 ...

网友评论

      本文标题:各种服务相关的配置文件路径

      本文链接:https://www.haomeiwen.com/subject/scvqqctx.html