您的位置:首页 > 理论基础 > 计算机网络

linux系统日志与网络管理

2016-07-17 09:53 543 查看
linux系统日志与网络管理

 

 

1.

A.  进入防火墙配置文件:/etc/firewalld/zones/public.xml里,删除<servicename="ssh"/>

使用命令firewall-cmd --add-port=22/tcp增加端口,并通过命令firewall-cmd--list-all查看端口是否增加成功. netstat -ano|grep 22测试是否通过.

B.使用systemctl status sshd.service查看ssh服务, 使用命令systemctl stop sshd.service结束ssh服务.

C.使用systemctl statussshd. service查看服务状态,再使用命令systemctl disable sshd.service开机禁用ssh服务,

2.

内核:\S   Kernel \r on an \m

发行版本:Red Hat Enterprise Linux Server release 7.2 (Maipo)

Cpu: Architecture:          x86_64

CPU op-mode(s):        32-bit, 64-bit

Byte Order:            Little Endian

CPU(s):                1

On-line CPU(s) list:   0

Thread(s) per core:    1

Core(s) per socket:    1

Socket(s):             1

NUMA node(s):          1

Vendor ID:             GenuineIntel

CPU family:            6

Model:                 69

Model name:            Intel(R) Core(TM) i5-4200U CPU @1.60GHz

Stepping:              1

CPU MHz:               2294.699

BogoMIPS:              4589.39

Hypervisor vendor:     VMware

Virtualization type:   full

L1d cache:             32K

L1i cache:             32K

L2 cache:              256K

L3 cache:              3072K

NUMA node0 CPU(s):     0

内存: MemTotal:        1001332 kB

MemFree:           79524 kB

MemAvailable:     233476 kB

Buffers:             220 kB

Cached:           258228 kB

SwapCached:            0 kB

Active:           448444 kB

Inactive:         160236 kB

Active(anon):     333128 kB

Inactive(anon):    25740 kB

Active(file):     115316 kB

Inactive(file):   134496 kB

Unevictable:           0 kB

Mlocked:               0 kB

SwapTotal:       2097148 kB

SwapFree:        2097148 kB

Dirty:                 0 kB

Writeback:             0 kB

AnonPages:        350228 kB

Mapped:           101308 kB

Shmem:              8636 kB

Slab:              86800 kB

SReclaimable:      33524 kB

硬盘: smartctl 6.2 2013-07-26 r3841 [x86_64-linux-3.10.0-327.el7.x86_64](local build)

Copyright (C) 2002-13, Bruce Allen,Christian Franke, www.smartmontools.org

 

=== START OF INFORMATION SECTION ===

Vendor:               VMware,

Product:              VMware Virtual S

Revision:             1.0

User Capacity:        21,474,836,480 bytes [21.4 GB]

Logical block size:   512 bytes

Device type:          disk

Local Time is:        Tue Jul 12 23:31:49 2016 CST

SMART support is:     Unavailable - device lacks SMART capability.

 

=== START OF READ SMART DATA SECTION ===

 

Error Counter logging not supported

 

Device does not support Self Test logging

主板: System Information

         Manufacturer:VMware, Inc.

         ProductName: VMware Virtual Platform

         Version:None

         SerialNumber: VMware-56 4d c8 92 6c 6a 58 5a-45 7e b9 af 0d 02 0b dd

         UUID:92C84D56-6A6C-5A58-457E-B9AF0D020BDD

         Wake-upType: Power Switch

         SKUNumber: Not Specified

         Family:Not Specified

 

Handle 0x0002, DMI type 2, 15 bytes

Base Board Information

         Manufacturer:Intel Corporation

         ProductName: 440BX Desktop Reference Platform

         Version:None

         SerialNumber: None

         AssetTag: Not Specified
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: