๋ฐ˜์‘ํ˜•

์ธํ”„๋ผ ์šด์˜ํ•  ๋•Œ ์ฃผ์˜ํ•ด์•ผํ•  ์ 

 

root ๊ณ„์ • ์‚ฌ์šฉํ•˜์ง€ ๋ชปํ•˜๊ธฐ ๋•Œ๋ฌธ์— sudo๊ถŒํ•œ์„ ๋ถ€์—ฌ๋ฐ›์€ ๋‹ค๋ฅธ ๊ณ„์ •์„ ์‚ฌ์šฉํ•ด์„œ ์ธํ”„๋ผ ๊ตฌ์ถ•์„ ์ง„ํ–‰ํ•œ๋‹ค.

 

์‚ฌ์šฉํ•  ๊ณ„์ • ์ƒ์„ฑ

# useradd test

๊ณ„์ • ๋น„๋ฐ€๋ฒˆํ˜ธ ์ง€์ •

# passwd test

sudoers ์ˆ˜์ •ํ•˜์—ฌ ํ•ด๋‹น ๊ณ„์ • sudo ๊ถŒํ•œ๊ณผ ํ•˜๋‹จ์— ๊ฐ™์€ ๊ทธ๋ฃน๋„ ๋ชจ๋“  ์ปค๋งจ๋“œ ์ˆ˜ํ–‰๊ฐ€๋Šฅํ•œ ๋ถ€๋ถ„์˜ ์ฃผ์„ ์ œ๊ฑฐ

# vi /etc/sudoers

test   ALL(=ALL)  ALL(=ALL)

%wheel ~~

 

ํ•˜๋‘ก์—์ฝ”์‹œ์Šคํ…œ ๊ตฌ์ถ•ํ•  ๋•Œ ๊ณตํ†ต์ ์œผ๋กœ ํ•„์š”ํ•œ ๋ถ€๋ถ„์ด ์žˆ๋‹ค.

 

1. ๋ฐฉํ™”๋ฒฝ

# systemctl disable firewalld

# systemctl stop firewalld

# vi /etc/selinux/config

SELINUX=disabled

ํ›„ ์žฌ๋ถ€ํŒ…ํ•œ๋‹ค.

 

2. install

$ sudo yum install ntp

$ sudo systemctl enable ntpd

$ sudo chkconfig ntpd on

 

3. ssh-key ์ƒ์„ฑํ•˜๊ธฐ

$ ssh-key

$ ssh-copy-key test@ip_address

 

4. ์ž๋ฐ” ์„ค์น˜

$ sudo yum install java-1.8.0-openjdk

 

5. DB ์„ค์น˜

$ sudo yum install postgresql*

$ su - postgres

$ postgres-setup initdb

$ systemctl enable postresql.service

$ systemctl start postresql.service

 

728x90
๋ฐ˜์‘ํ˜•

+ Recent posts