๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๋ฐ˜์‘ํ˜•

Linux4

[Linux] netstat ๋ช…๋ น์–ด๋กœ ๋„คํŠธ์›Œํฌ ์ƒํƒœ ํ™•์ธํ•˜๊ธฐ(+ TCP ์ƒํƒœ ์ „์ด) ์„œ๋ฒ„๋ฅผ ์šด์˜ํ•˜๋‹ค๋ณด๋ฉด ๋„คํŠธ์›Œํฌ ์ƒํƒœ๋ฅผ ํ™•์ธํ•ด์•ผํ•  ์ผ์ด ์ƒ๊ธด๋‹ค.. ์šด์˜์ด ์•„๋‹ˆ๋”๋ผ๋„ ๊ฐœ๋ฐœ์ž๋ผ๋ฉด ํ• ์ผ์ด ์ƒ๊ธฐ๋Š”.. netstat๋ž€? ์ „์†ก ์ œ์–ด ํ”„๋กœํ† ์ฝœ, ๋ผ์šฐํŒ… ํ…Œ์ด๋ธ”, ์ˆ˜๋งŽ์€ ๋„คํŠธ์›Œํฌ ์ธํ„ฐํŽ˜์ด์Šค, ๋„คํŠธ์›Œํฌ ํ”„๋กœํ† ์ฝœ ํ†ต๊ณ„๋ฅผ ์œ„ํ•œ ๋„คํŠธ์›Œํฌ ์—ฐ๊ฒฐ์„ ๋ณด์—ฌ์ฃผ๋Š” ๋ช…๋ น ์ค„ ๋„๊ตฌ์ด๋‹ค. (์œ„ํ‚ค๋ฐฑ๊ณผ : https://ko.wikipedia.org/wiki/Netstat) ์‚ฌ์šฉ๋ฐฉ๋ฒ• netstat [์˜ต์…˜] [ | grep ํฌํŠธ๋ฒˆํ˜ธ or ์„œ๋น„์Šค ๋ช…] ์˜ต์…˜ -l (listen) : ์—ฐ๊ฒฐ ๊ฐ€๋Šฅํ•œ ์ƒํƒœ -n (number port) : ํฌํŠธ ๋„˜๋ฒ„ -t (tcp) : tcp -u (udp) : udp -p : ํ”„๋กœ๊ทธ๋žจ ์ด๋ฆ„ / PID -a : ๋ชจ๋‘ -i : ์ด๋”๋„ท ์นด๋“œ๋ณ„ ์ •์ƒ/์—๋Ÿฌ/๋“œ๋ž ์†ก์ˆ˜์‹  ํŒจํ‚ท ์ˆ˜ ํ™•์ธ -r : ๋ผ์šฐํŒ… ํ…Œ์ด๋ธ” -s .. 2021. 12. 29.
[Linux] ๋ฐฉํ™”๋ฒฝ ์„ค์ •ํ•˜๊ธฐ / ํŠน์ • ํฌํŠธ ๋ฐฉํ™”๋ฒฝ ์˜คํ”ˆ CentOS6 ๊นŒ์ง€๋Š” ๋ฐฉํ™”๋ฒฝ ์„ค์ •์„ ํ•˜๊ธฐ ์œ„ํ•ด์„  iptables์„œ๋น„์Šค๋ฅผ ์žฌ์‹œ์ž‘ํ•˜์—ฌ ๋ฐฉํ™”๋ฒฝ ๊ทœ์น™์„ ์„ค์ •ํ•˜์˜€๊ณ , CentOS7 ๋ถ€ํ„ฐ๋Š” ๋ฐฉํ™”๋ฒฝ์„ ๊ด€๋ฆฌํ•˜๋Š” ๋ฐ๋ชฌ์ธ firewalld๊ฐ€ ์ œ๊ณต๋˜์–ด ๋ณด๋‹ค ์‰ฝ๊ฒŒ ์„ค์ •ํ•  ์ˆ˜ ์žˆ๋‹ค. ๋ณธ ํฌ์ŠคํŒ…์—์„  firewalld์— ๋Œ€ํ•ด ์„ค๋ช…ํ•˜๊ณ ์ž ํ•œ๋‹ค! ๋ฆฌ๋ˆ…์Šค OS ๋ฒ„์ „ ํ™•์ธ ๋ฐฉ๋ฒ• cat /etc/*release* firewalld ์„ค์น˜ yum install firewalld systemctl start firewalld systemctl enable firewalld ๊ธฐ๋ณธ ์„ค์ •์€ /usr/lib/firewalld/์— ์œ„์น˜ํ•˜๊ณ  ์žˆ๋‹ค. ์—ฌ๊ธฐ์„œ zone๊ณผ zone๋ณ„ ํ—ˆ์šฉํ•˜๋Š” ์„œ๋น„์Šค๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค. ์‹œ์Šคํ…œ ๊ฐœ๋ณ„ ์„ค์ •์€ /etc/firewalld/์— ์œ„์น˜ํ•˜๊ณ  ์žˆ์œผ๋ฉฐ firewalld.conf.. 2021. 12. 22.
[Linux] MySQL DB ๋ฐฑ์—… ์Šคํฌ๋ฆฝํŠธ - ์ž๋™์œผ๋กœ ๋ฐฑ์—…ํ•˜๊ธฐ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ ๋ฐ์ดํ„ฐ๋ฅผ ์ž๋™์œผ๋กœ ๋ฐฑ์—…ํ•  ์ˆ˜ ์žˆ๋„๋ก ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์ž‘์„ฑํ–ˆ๋‹ค. #! /bin/bash # backup directory dir=$(echo /home1/test01/project01/db/backup) # get backup file time and now time customer_BackupFileDate=$(date -r $dir/backup_customer.sql '+%Y-%m-%d %H:%M:%S') customer_BackupFileDateString=$(date -r $dir/backup_customer.sql '+%Y%m%d_%H%M%S') # rename last backup file mv $dir/backup_customer.sql $dir/backup_customer_$cust.. 2021. 12. 17.
[JD-GUI] java 9 ์ด์ƒ์—์„œ ์‹คํ–‰ ์˜ค๋ฅ˜ : module java.base does not "opens jdk.internal.loader" to unnamed module ์†Œ์Šค๋ฅผ ๋””์ปดํŒŒ์ผํ•  ๋•Œ JD-GUI๋ฅผ ์‚ฌ์šฉํ•˜๋Š”๋ฐ ๊ฐ‘์ž๊ธฐ ์•„๋ž˜์™€ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๋ฉด์„œ ์‹คํ–‰์ด ๋˜์ง€ ์•Š์•˜๋‹ค. WARNING: All illegal access operations will be denied in a future release Exception in thread "main" java.lang.reflect.InaccessibleObjectException: Unable to make jdk.internal.loader.ClassLoaders$AppClassLoader(jdk.internal.loader.ClassLoaders$PlatformClassLoader,jdk.internal.loader.URLClassPath) accessible: module java.base does not "op.. 2021. 12. 3.
728x90
๋ฐ˜์‘ํ˜•