- maxscale
- 우파푸른하늘
- snmp
- Path
- port description
- n1548
- banner
- etcd
- openldap
- CEP
- admin port
- 우파푸른하늘80만이벤트
- dell
- data-door
- perplexity
- wildfly jboss
- 웰카
- MotD
- Storage
- 진상부모_물러가라
- Galera Cluster
- RHEL8
- mariadb
- docker
- 참교육
- Kubernetes
- Netflix
- mgmtip
- Network
- vmware
- CentOS
- drbd
- n15148
- pod
- web&was apche htaccess
- unix_socket
- Auth
목록전체 글 (257)
전산쟁이의 기억노트
사용자 추가할때 자동으로 디렉토리 생성되게 하려면..?/etc/skel 밑에 생성할 디렉토리를 만들어 놓으면 됨.*기본적으로 /etc/skel(탬플릿)를 가지고 생성하기 때문에 기본적으로 생성된게 없기 때문에 생성되지 않는다탬플릿 디렉토리 생성$> mkdir /etc/skel/public_html예시는 public_html 디렉토리를 만들기$> ls -l /home/testtotal 0drwxr-wr-w 2 test test 5 Dec 26 14:29 public_html사용자가 추가되면 자동으로 public_html 디렉토리를 생성한다.$> mkdir /etc/skel/public_html 출처 - http://igoni.kr/01.OS%EA%B8%B0%EC%88%A0%EB%85%B8%ED%8A%B8..
test 사용자를 test123으로 변경$> usermod -l test123 test$> egrep 'test123' /etc/passwdtest123:x:10000:10000::/data/test:/bin/shuid를 10000에서 20000으로 변경하기$> usermod -u 20000 test$> egrep 'test123' /etc/passwdtest:x:20000:10000::/home/test:/bin/shgid를 10000에서 20000으로 변경하기$> usermod -u 20000 test$> egrep 'test' /etc/passwdtest:x:20000:20000::/home/test:/bin/sh홈디렉토리를 /data/test 를 /home/test로 변경$> usermod -d ..
disk uuid 값 확인 법 $> ls -l /dev/disk/by-uuid $> blkid UUID생성명령어 $> uuidgen 1234-5678-9010 생성된UUID변경 $> tune2fs /dev/sda1 -U ****** 출처 - http://igoni.kr/books/linux/page/centos-uuid Centos UUID확인방법 | igoni.kr disk uuid 값 확인 법$> ls -l /dev/disk/by-uuid $> blkid UUID생성명령어$> uuidgen 1234-5678-9010... igoni.kr
Bonding이 설정된 환경에서 Active 인터페이스 변경방법 eth0으로 통신이 되어야 하는데 eth1로 통신되고 있어서 eth0으로 원복하기를 원함 [root@localhost ~]# cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011) Bonding Mode: fault-tolerance (active-backup) Primary Slave: None Currently Active Slave: eth1 MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 Slave Interface: eth0 MII Stat..
Centos 4버전은 EOL(End Of Life)된 OS이기 때문에, 국내경로에서는 업데이트 제공이 안됩니다. Centos.org에서 가지고 있는 이미지로 패키지 관리를 해야 하기 떄문에 기본 경로에서 변경을 해 주어야 합니다. /etc/yum.repos.d/CentOS-Base.repo 파일 열어서 아래 내용으로 내용 변경 $> vi /etc/yum.repos.d/CentOS-Base.repo # CentOS-Base.repo # # CentOS-4 is past End of Life … use at your own risk # [base] name=CentOS-$releasever – Base baseurl=http://vault.centos.org/4.9/os/$basearch/ gpgcheck=..
Bash 보안업데이트하세요~~ 취약내용 : 공격자가 Bash를 사용하여 구현된 기능을 악용하여 임의의 코드를 실행시킬수 있으므로 업데이트 권고 대상 : GNU Bash를 사용하는 서버 (RHEL계열 4이하 버전은 지원이 끝났기 때문에 업데이트 불가능합니다.) RHEL4이하버전은 yum으로 업데이트 불가하고, 대신에 수동으로 패치를 진행해야 합니다. Bash는 리눅스에서 기본으로 사용하고 있는 쉘이기 때문에 대부분 업데이트를 진행하셔야 할것 같습니다. 패치작업 진행 취약점 대상 시스템 여부 [root@localhost ~]# env x='() { :;}; echo vulnerable' bash -c "echo this is a test" vulnerable this is a test (vulnerable메..
프로세스가 종료되어도, 커널에서 메모리 잡고 있는 부분 정리하기메모리 정리 전)[root@/]# free -mtotal used free shared buffers cachedMem: 3925 1706 2218 0 238 963-/+ buffers/cache: 504 3421Swap: 4095 0 4095메모리 정리 후)[root@/]# free -mtotal used free shared buffers cachedMem: 3925 463 3462 0 0 30-/+ buffers/cache: 433 3492Swap: 4095 0 4095커널상에서 캐쉬를 클리어하게 만드는 값으로 1,2,3 중에 하나를 사용하면 되며 커널 2.6.16 이상에서부터 추가되서 사용가능하다.To free pagecache: (페..
smartctl을 이용한 디스크 상태 확인$ smartctl -l selftest /dev/sdabadblock 명령어를 이용한 배드블록 확인$ badblocks -v /dev/sda 출처 - http://igoni.kr/01.OS%EA%B8%B0%EC%88%A0%EB%85%B8%ED%8A%B8/01.OS%EC%A0%95%EB%B3%B4/%EB%94%94%EC%8A%A4%ED%81%AC%20badblock%20%ED%99%95%EC%9D%B8%EB%B0%A9%EB%B2%95.html?h=%EB%94%94%EC%8A%A4%ED%81%AC+badblock+%ED%99%95%EC%9D%B8%EB%B0%A9%EB%B2%95 smartctl -l selftest /dev/sda badblock 명령어를 이용한 ..
perplexity에서 생성한 AI이미지소개현재 사용중인 메모리 상태를 볼 수 있는 명령어와 각 항목에 설명을 기재해보려고 합니다.명령어 실행명령어 실행결과 확인 (free / meminfo) free 결과$> free -m total used free shared buff/cache availableMem: 15786 7716 583 632 7487 7102Swap: 4095 516 3579meminfo 파일 확인 $> cat /proc/meminfoMemTotal: 16165732 kBMemFree: ..
VNC 구동시 Fail로그 확인 $> systemctl start vncserver@:2.service Job for vncserver@:2.service failed. See 'systemctl status vncserver@:2.service' and 'journalctl -xn' for details. 프로세스 실행여부 확인 [root@localhost /]# ps -ef | grep vnc test 24303 1 0 20:08 ? 00:00:00 /usr/bin/Xvnc :2 -desktop 192.168.0.100:2 (test) -httpd /usr/share/vnc/classes -auth /home/test/.Xauthority -geometry 600×800 -rfbwait 30000 -..
VNC패키지 설치 $ yum install -y tiger* 설정파일 복사 $ cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@\:2.service 설정파일 편집 $ vi /etc/systemd/system/vncserver@\:2.service ... ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :' ExecStart=/sbin/runuser -l root -c "/usr/bin/vncserver %i -geometry 1024x768" PIDFile=/root/.vnc/%H%i.pid 설정파일 읽어오기 $ systemctl daemon-..
Squid 패키지 설치 $> yum install -y squid 설정파일 확인 $> vi /etc/squid/squid.conf ... acl 정책이름 (소스정보/목적지정보) (ip/class) acl proxy_net src 127.0.0.1/32 acl proxy_net src 1.2.3.4/24 * proxy_net이라는 정책으로, 소스IP가 127.0.0.1, 1.2.3.4에 대해서 적용 ... #ACL설정방법 http_access 적용방법 정책명 http_access allow proxy_net http_access deny all * 정책명이 proxy_net인 정보를 제외하고 모두 거부 ... #프록시 접근포트 http_port 8080 #캐쉬정보 cache_dir ufs /dev/shm/..
Centos7에서 vsftp 구성할때, 일반 사용자가 홈디렉토리 상단으로 올라오지 못하게 하는 chroot 옵션만 넣으면 FTP접근이 안됨. 응답 500 OOPS:vsftpd:refusing to run with writable root inside chroot() $> vi /etc/vsftpd/vsftpd.conf ... chroot_loca_user=YES ... 보통 이렇게만 설정하는데, Centos7(VSFTP 3.x)에서는 저렇게만 하면 접속이 안된다. 그래서 한줄 더 넣어줘야 한다. chroot가 적용된 사용자만 쓰기권한부여 하는 옵션.. $> vi /etc/vsftpd/vsftpd.conf ... allow_writeable_chroot=YES ... 그리고 나서 서비스 재시작 하면 원하는..
자주 사용하는 시스템 런레벨 런레벨 용도 0 종료 1 싱글사용자 2 다중사용자 (multi-user.target) 5 그래픽 환경 (graphic.target) 6 재부팅 Centos7에서는 아래 명령어로 변경 가능 (재부팅 후부터 반영) [root@localhost ~]# systemctl set-default graphical.target 현재환경에서 변경 [root@localhost ~]# systemctl isolate graphical.target 현재 사용중인 런레벨 확인 방법 who명령어로 확인 [root@localhost ~]# who -r run-level 3 2014-09-18 10:22 systemctl 명령어로 확인 [root@localhost ~]# systemctl get-def..
Harbor 설치 사양정보 hardware spec 최소사양 권장사양 CPU 2Core 4 Core Memory 4G 8G Disk 40GB 160GB software spec Software Version Docker 17.06.0 이상 Docker Compose 1.18.0 이상 Harbor설치 설치파일 다운로드 harbor설치파일 : Download URL : https://github.com/goharbor/harbor/releases docker-compose : download URL : https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m) 압축파일 해제 ># tar -xv..