歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux技術 >> linux系統日志與網絡管理

linux系統日志與網絡管理

日期:2017/3/3 11:26:08   编辑:Linux技術

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

Copyright © Linux教程網 All Rights Reserved