์ƒˆ์†Œ์‹

IT & Security/Linux

[Centos] ๋ฐฑ์—…, ๋ฐ”์ด๋Ÿฌ์Šค ํŒจํ„ด ๊ฒ€์‚ฌ

  • -
๋ฐ˜์‘ํ˜•

 

๊ฐœ์ธ๊ณต๋ถ€ ๋ชฉ์ ์ž…๋‹ˆ๋‹ค

 


 

[๋ฐฑ์—…] 

 

1) ./home์„ ๋Œ€์ƒ์œผ๋กœ ์ „์ฒด ๋ฐฑ์—…์„ ์ˆ˜ํ–‰ํ•œ๋‹ค. ๋ฐฑ์—… ํŒŒ์ผ ์ด๋ฆ„์€ home.tar๋กœ ์ง€์ •ํ•œ๋‹ค.

 

2) /home์˜ ํด๋”๋ฅผ ์™„์ „ํžˆ ์ œ๊ฑฐํ•จ์„ ๋ณด์—ฌ์ค„ ์ˆ˜ ์žˆ๋‹ค.

 

3) ๋ฐฑ์—…ํ•œ ํŒŒ์ผ๋กœ /home ํด๋”๋ฅผ ๋‹ค์‹œ ๋ณต๊ตฌํ•  ์ˆ˜ ์žˆ๋‹ค.

 

4) root์˜ ํ™ˆ ํด๋”์— backu์ด๋ผ๋Š” ๋””๋ ‰ํ„ฐ๋ฆฌ๋ฅผ ๋งŒ๋“ค๊ณ  ์—ฌ๊ธฐ์— /home ํด๋”๋ฅผ ๋Œ€์ƒ์œผ๋กœ home0.tar.gz ์œผ๋กœ ์ดˆ๊ธฐ ์ฆ๋ถ„ ๋ฐฑ์—…์„ ์‹ค์‹œํ•œ๋‹ค.

 

5) /home/1.txt๋ฅผ ๋งŒ๋“ค๊ณ  "1111"๋‚ด์šฉ ์“ด ํ›„ home1.tar.gz๋กœ ์ฆ๋ถ„ ๋ฐฑ์—… ์‹ค์‹œ

 

6) /home/1.txt์— "2222"๋‚ด์šฉ ์ถ”๊ฐ€ํ•˜๊ธฐ

7) home1.tar.gz ์œผ๋กœ ๋ณต๊ตฌํ•˜๊ณ  /home/1.txt ํŒŒ์ผ๋‚ด์šฉ์„ ํ™•์ธ ํ•  ์ˆ˜ ์žˆ๋‹ค.

 

 

[๋ฐ”์ด๋Ÿฌ์Šค]

 

1. clasmav๋ฅผ ์„ค์น˜ํ•  ์ˆ˜ ์žˆ๋‹ค.

: yum install epel-release

: yum install clamav

 

2. freshclam ์œผ๋กœ ํŒจํ„ด์„ ์—…๊ทธ๋ ˆ์ด๋“œ ํ•  ์ˆ˜ ์žˆ๋‹ค.

 

3. /root์˜ ํด๋”(์„œ๋ธŒํด๋” ํฌํ•จ)์„ ๊ฒ€์‚ฌ ํ•  ์ˆ˜ ์žˆ๋‹ค.

 

4. /root๋กœ sample ๋ฐ”์ด๋Ÿฌ์Šค ํŒจํ„ด์„ ๋ณด๋‚ด๊ณ  clamav๋กœ ๊ฒ€์‚ฌํ•˜์—ฌ ๋ฐ”์ด๋Ÿฌ์Šค๋ฅผ ๋ฐœ๊ฒฌ ํ•  ์ˆ˜ ์žˆ๋‹ค.

 

: zipํŒŒ์ผ (๋ฐ”์ด๋Ÿฌ์ŠคํŒŒ์ผ) ์ด ์žˆ๋‹ค๋Š” ๊ฐ€์ •ํ•˜์—

4-1 ) yum install unzip ๋‹ค์šด๋ฐ›๊ธฐ

4-2) upzip demo.zip์œผ๋กœ zip์••์ถ•ํ’€๊ธฐ

4-3) ๊ฒ€์‚ฌ ํŒจํ„ด์„ ์ด์šฉํ•ด์„œ ๋ฐ”์ด๋Ÿฌ์Šค ๋ฐœ๊ฒฌํ•˜๊ธฐ.

๋ฐ˜์‘ํ˜•

'IT & Security > Linux' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[Centos] ๋กœ๊ทธ ๊ด€๋ฆฌ  (0) 2020.11.17
[Centos] APM + ์‹œ๊ฐ„ ์„ค์ •  (0) 2020.11.03
[Centos7] Cron ์„ค์ •  (0) 2020.10.27
[Centos] ๋ฐฉํ™”๋ฒฝ ์„ค์ •  (0) 2020.10.27
Contents

ํฌ์ŠคํŒ… ์ฃผ์†Œ๋ฅผ ๋ณต์‚ฌํ–ˆ์Šต๋‹ˆ๋‹ค

์ด ๊ธ€์ด ๋„์›€์ด ๋˜์—ˆ๋‹ค๋ฉด ๊ณต๊ฐ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.