分享

about云日志分析项目准备3-3:centos7初步使用:基本设置

pig2 发表于 2016-12-28 10:01:08 [显示全部楼层] 只看大图 回帖奖励 阅读模式 关闭右栏 0 1984
上篇:
about云日志分析项目准备3-2:centos7初步使用,网络设置
http://www.aboutyun.com/forum.php?mod=viewthread&tid=20660



1.关闭SELINUX

进入目录
  1. /etc/sysconfig/selinux
复制代码

设置为disable
[mw_shl_code=bash,true]SELINUX=disable[/mw_shl_code]
selinux.jpg

为何关闭SeLinux:
因为在SELinux没有设置为permissive或是disable的情况下,有一些Linux系统上应用程序运行时,可以会被拒绝,导致无法正常运行的情况

关闭防火墙

  1. sudo systemctl stop firewalld.service
复制代码

Firewalls.jpg

验证是否关闭:
  1. sudo systemctl status firewalld.service
复制代码

关于centos7防火墙知识参考
centos7防火墙firewalld入门



开启ssh


  1. sudo systemctl start sshd.service
复制代码

验证
  1. sudo systemctl status sshd.service
复制代码



sshd.service - OpenSSH server daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; disabled)
   Active: active (running) since 三 2016-12-28 10:13:19 CST; 4min 11s ago
  Process: 15092 ExecStartPre=/usr/sbin/sshd-keygen (code=exited, status=0/SUCCESS)
Main PID: 15105 (sshd)
   CGroup: /system.slice/sshd.service
           └─15105 /usr/sbin/sshd -D

12月 28 10:13:19 localhost.localdomain sshd-keygen[15092]: Generating SSH2 R...
12月 28 10:13:19 localhost.localdomain sshd-keygen[15092]: Generating SSH2 E...
12月 28 10:13:19 localhost.localdomain systemd[1]: Started OpenSSH server da...
12月 28 10:13:19 localhost.localdomain sshd[15105]: Server listening on 0.0....
12月 28 10:13:19 localhost.localdomain sshd[15105]: Server listening on :: p...
Hint: Some lines were ellipsized, use -l to show in full.


  1. sudo systemctl enable sshd.service  #开机启动ssh
复制代码



没找到任何评论,期待你打破沉寂

关闭

推荐上一条 /2 下一条