Server/환경 구축 - Centos

[Linux] CentOS 7 환경 구축

sangjun-pro 2022. 3. 31. 11:34

OS : CentOS Linux release 7.9.2009 (Core)


1. 노트북 절전모드 끄기

[root@localhost ~]# setterm -powersave off -powerdown 0

 

2. 노트북 화면 덮개 무시 ( 안꺼짐 )

[root@localhost ~]# vi /etc/systemd/logind.conf

아래 내용 중

#HandleLidSwitch=suspend -> HandleLidSwitch=ignore 로 변경

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
HandleLidSwitch=ignore
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=no
#UserTasksMax=


3. IP 설정

 - 이더넷 장치명 확인 ( enp5s0 )

[root@localhost ~]# nmcli d
DEVICE  TYPE      STATE      CONNECTION
enp5s0  ethernet  connected  enp5s0
lo      loopback  unmanaged  --
[root@localhost ~]# nmtui

- Edit a connection 선택

- Address / Gateway / DNS 입력 , Automatically connect 선택 후 OK