본문 바로가기

OS/Linux49

centos / port forwarding / 80 , 8080 80 port 8080 port port forwarding cent OS 7 포트 포워딩 sample firewall-cmd --zone=public --add-forward-port=port=80:proto=tcp:toport=8080 --permanent firewall-cmd --reload firewall-cmd --permanent --zone=internal --add-masquerade firewall-cmd --reload [root@WAS live]# firewall-cmd --list-all public (active) target: default icmp-block-inversion: no interfaces: ens192 sources: services: dhcpv6-client .. 2020. 4. 19.
centos / openjdk [root@localhost ~]# yum list java*jdk-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos.mirror.cdnetworks.com * extras: centos.mirror.cdnetworks.com * updates: centos.mirror.cdnetworks.com Available Packages java-1.6.0-openjdk-devel.x86_64 1:1.6.0.41-1.13.13.1.el7_3 base java-1.7.0-openjdk-devel.x86_64 1:1.7.0.171-2.6.13.0.el7_4 updates java-1.8.0-open.. 2020. 4. 19.
linux / centos7 / hostname [root@localhost ~]# hostname localhost.localdomain [root@localhost ~]# set-hostname ABCD -bash: set-hostname: command not found [root@localhost ~]# [root@localhost ~]# hostnamectl set-hostname ABCD [root@localhost ~]# [root@localhost ~]# hostname abcd [root@localhost ~]# ssh재접속시 적용됨 2020. 4. 19.
crontab / crond 1. OS version [root@instance-1 ~]# cat /etc/*release* CentOS Linux release 7.9.2009 1. crond 프로세스 확인 [root@instance-1 ~]# service crond status Redirecting to /bin/systemctl status crond.service● crond.service - Command Scheduler Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled; vendor preset: enabled) Active: active (running) ... [root@instance-1 ~]# 2. crond 시작/정지/재시작 [root@instan.. 2020. 4. 17.
반응형