๋ฐ˜์‘ํ˜•

jdbc ์—ฐ๋™ํ•˜๋ ค๊ณ  ํ•˜๋Š”๋ฐ 


Cannot create PoolableConnectionFactory (Could not create connection to database server.)

์—๋Ÿฌ๊ฐ€๋‚˜์„œ ์ฐพ์•„๋ณด์•˜๋‹ค.



๋‚˜์˜๊ฒฝ์šฐ๋Š” ๋กœ์ปฌ์ด ์•„๋‹Œ ์™ธ๋ถ€์„œ๋ฒ„(aws ์‚ฌ์šฉ)์— ์žˆ๋Š” DB(mysql)์— ์ ‘๊ทผํ•˜๋Š” ๋ฐฉ์‹์œผ๋กœ ์‹œ๋„ํ•˜๋ ค๊ณ  ํ–ˆ๋Š”๋ฐ

์™ธ๋ถ€์—์„œ ๋””๋น„์ ‘๊ทผ์ด ์•ˆ๋˜์„œ ์ €๋Ÿฐ ์—๋Ÿฌ๊ฐ€ ๋‚ฌ๋˜ ๊ฒƒ์ด๋‹ค.



๋”ฐ๋ผ์„œ ๋””๋น„ ๋‚ด์— ์ ‘์† ๊ฐ€๋Šฅํ•œ IP๋ฅผ ์—ด์–ด์ค˜์•ผํ•จ. (ํŠน์ • ์•„์ดํ”ผ ํ˜น์€ ์ „์ฒด)

mysql.user ํ…Œ์ด๋ธ”์— host๋ช…์„ %๋กœ ๋“ฑ๋ก ํ•ด๋†“์œผ๋ฉด ๋ชจ๋“  IP ์ ‘์† ๊ฐ€๋Šฅ




1) ํ•ด๋‹น์„œ๋ฒ„ ๋””๋น„์ ‘์†

root@ip-@@@@:~# mysql -u root -p

Enter password: ๋น„๋ฐ€๋ฒˆํ˜ธ ์ž…๋ ฅ


2) ์ˆœ์„œ๋Œ€๋กœ ์‹คํ–‰

mysql> use mysql

mysql>INSERT INTO mysql.user (host,user,authentication_string, ssl_cipher, x509_issuer, x509_subject) VALUES ('%','root',password('๋น„๋ฐ€๋ฒˆํ˜ธ'), '', '', '');

mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'; -- ๋ชจ๋“  ํ˜ธ์ŠคํŠธ์— ์ ‘์† ํ—ˆ์šฉ...

mysql>FLUSH PRIVILEGES; -- ๊ถŒํ•œ๋ณ€๊ฒฝ ์ ์šฉํ•˜๊ณ , ์•Œ๋ฆฌ๋Š” ๋ช…๋ น์–ด



~ ๋ 



- ์ฐธ์กฐ : https://medium.com/mo-mu/%EA%B0%9C%EB%B0%9C%EC%9D%BC%EC%A7%80-%EC%9B%90%EA%B2%A9%EC%84%9C%EB%B2%84-mysql%EC%97%B0%EA%B2%B0-sql%ED%8C%8C%EC%9D%BC-import-9abfb0a711da


http://zetawiki.com/wiki/MySQL_%EC%9B%90%EA%B2%A9_%EC%A0%91%EC%86%8D_%ED%97%88%EC%9A%A9



๋ฐ˜์‘ํ˜•
๋ฐ˜์‘ํ˜•

[1] ํŽธ์ง‘

vi /etc/ssh/sshd_config

PermitRootLogin yes ๋กœ๋ณ€๊ฒฝ



[2] ์žฌ์‹œ์ž‘

service sshd restart

๋ฐ˜์‘ํ˜•
๋ฐ˜์‘ํ˜•

์ฐธ๊ณ ๋กœ ํ‚ค ์—†์ด ๋กœ๊ทธ์ธ์„ ํ•œ๋‹ค๋Š”๊ฑด ๊ทธ๋งŒํผ ๋ณด์•ˆ์— ์ทจ์•ฝํ•˜๋‹ค๋Š”๊ฑธ ์•Œ์•„๋‘๊ณ ..


[1] sshd_config๋ฅผ ์ˆ˜์ •

 sudo vi /etc/ssh/sshd_config


 ...๋‚ด์šฉ์ค‘ 

 PermitRootLogin yes ๋กœ ๋ณ€๊ฒฝ

 PasswordAuthentication yes ๋ณ€๊ฒฝ ํ›„ ์ €์žฅ(:wq!)


[2] ssh ์žฌ์‹œ์ž‘
 sudo service ssh restart


[3] root ๋น„๋ฐ€๋ฒˆํ˜ธ ์„ค์ •

 sudo passwd root 


 Enter new UNIX password: ์‚ฌ์šฉํ•  ๋น„๋ฐ€๋ฒˆํ˜ธ ์ž…๋ ฅ

 Retype new UNIX password: ์‚ฌ์šฉํ•  ๋น„๋ฐ€๋ฒˆํ˜ธ ์ž…๋ ฅ

 passwd: password updated successfully


[4] ํ‚ค(*.ppk) ์—†์ด putty ์ ‘์† (๋กœ๊ทธ์ธ์„ root๋กœ..)



์ฐธ๊ณ  : http://ora-sysdba.tistory.com/entry/Cloud-Computing-Amazon-EC2-%EC%9D%B8%EC%8A%A4%ED%84%B4%EC%8A%A4%EC%9D%98-ROOT-%EA%B3%84%EC%A0%95%ED%99%9C%EC%84%B1%ED%99%94

๋ฐ˜์‘ํ˜•
๋ฐ˜์‘ํ˜•

๊ธฐ๋ณธ์ ์œผ๋กœ๋Š” 22ํฌํŠธ๋Š” ์—ด๋ ค์žˆ๋”๋ผ 

--> ์ธ์Šคํ„ด์Šค ์ƒ์„ฑํ• ๋•Œ ๊ธฐ๋ณธ์ ์œผ๋กœ ์„ค์ •๋œ์ฑ„๋กœ ์ƒ์„ฑํ•จ 



[๋ณด์•ˆ ๊ทธ๋ฃน] ํด๋ฆญ -> [ํŽธ์ง‘] ํด๋ฆญ



[๊ทœ์น™ ์ถ”๊ฐ€] ํด๋ฆญ -> ํ•ด๋‹น ํฌํŠธ๋“ค ์„ค์ • ํ›„ [์ €์žฅ] ํด๋ฆญ



๋ฐ˜์‘ํ˜•
๋ฐ˜์‘ํ˜•

์ฐธ๊ณ  : https://forum.level1techs.com/t/can-i-go-ahead-and-downgrade-apt-to-upgrade-apt-utils-ubuntu-server-16-04/118116



์šฐ๋ถ„ํˆฌ์—์„œ ๋ญ˜ ์„ค์น˜ํ•˜๋ ค๊ณ  ํ–ˆ๋Š”๋ฐ..

root@ip-~~~:~# apt-get upgrade

Reading package lists... Done

Building dependency tree

Reading state information... Done

You might want to run 'apt-get -f install' to correct these.

The following packages have unmet dependencies:

 apt-utils : Depends: apt (= 1.2.20) but 1.2.24 is installed

E: Unmet dependencies. Try using -f.



์ด๋Ÿฐ ์—๋Ÿฌ๊ฐ€ ๋‚˜์™€์„œ... ์ฐพ์•„๋ณด์•˜๋‹ค.

apt --fix-broken install 


์„ ์น˜๋‹ˆ๊นŒ apt-get์ด ๋‹ค์‹œ ์‹คํ–‰๋จ.


๋ฐ˜์‘ํ˜•
๋ฐ˜์‘ํ˜•

1. nginx ์„ค์น˜ ๋ฐ ์„ค์ •

์ฐธ๊ณ  : http://altkeycode.tistory.com/10


1-1) ์„ค์น˜

yum install nginx


1-2) nginx ์„ค์ •ํŒŒ์ผ ์ˆ˜์ • 

( /etc/nginx/cond.f/default.conf )


1-3) ๋ถ€ํŒ…์‹œ ์ž๋™์‹œ์ž‘

systemctl enable nginx


1-4) ์ง€๊ธˆ ์‹คํ–‰

systemctl start nginx


1-3) ๋ฐฉํ™”๋ฒฝ ์˜คํ”ˆ

firewall-cmd --zone=public --add-port=80/tcp --permanent


1-4) ๋ฐฉํ™”๋ฒฝ ์žฌ์‹œ์ž‘

firewall-cmd --reload


1-5) ๋ฒ„์ถ”์–ผ๋ฐ•์Šค์—์„œ ํฌํŠธํฌ์›Œ๋”ฉ ์ฒ˜๋ฆฌ

์„ค์ •>๋„คํŠธ์›Œํฌ>๊ณ ๊ธ‰(D)>ํฌํŠธํฌ์›Œ๋”ฉ(P)



2. 80 ํฌํŠธ ์‹คํ–‰ ์•ˆ๋  ์‹œ


2-1) 80ํฌํŠธ ์—ด๋ ค์žˆ๋Š”์ง€ ํ™•์ธ

netstat -ntpa | grep 80


2-2) netstat ๋ช…๋ น์–ด ์‹คํ–‰ ์•ˆ๋œ๋‹ค๋ฉด?

yum install net-tools



์ฐธ๊ณ  : http://blog.daum.net/bondj/19



๋ฐ˜์‘ํ˜•
๋ฐ˜์‘ํ˜•

nginx ์„ค์น˜ ํ›„ 

80ํฌํŠธ ์‹คํ–‰์„ ํ™•์ธํ•˜๋ ค ํ•˜์˜€์œผ๋‚˜

IIS ์‹œ์ž‘ํ™”๋ฉด ๊ฐ™์€๊ฒŒ ๋‚˜์™”๋‹ค.

Window10 ํ™˜๊ฒฝ... ์œˆ8์ด๋‚˜ ์œˆ10์—์„œ ๋‚˜์˜ค๋Š” ํ™”๋ฉด์ธ ๊ฒƒ ๊ฐ™์€๋ฐ

์ด๋ฅผ ์•ˆ๋‚˜์˜ค๊ฒŒ ํ•˜๋ ค๋ฉด



์ œ์–ดํŒ>์„œ๋น„์Šค ์— ๋“ค์–ด๊ฐ€




์ € ํŒŒ๋ž€์ƒ‰ ๋ฐ•์Šค๋ฅผ ์ค‘์ง€๋ฅผ ํ•˜์—ฌ๋ผ (๋งˆ์šฐ์Šค ์˜ค๋ฅธ์ชฝ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ์ค‘์ง€ ๋ฒ„ํŠผ์„ ํด๋ฆญ)


๊ทธํ›„์— 80ํฌํŠธ ์ ‘์† ์‹œ ์›ํ•˜๋Š”...ํŽ˜์ด์ง€๊ฐ€ ์‹คํ–‰๋  ๊ฒƒ์ด๋‹ค.


์ฐธ๊ณ  : http://ssftc.blogspot.kr/2015/08/10-80.html

๋ฐ˜์‘ํ˜•
๋ฐ˜์‘ํ˜•

Centos7์„ ์„ค์น˜ํ•˜๊ณ  ์ ‘์† ํ›„ ํ”„๋กœ๊ทธ๋žจ์„ ์„ค์น˜ํ•˜๋ ค๊ณ  ํ• ๋•Œ 

(yum ์ด ์‹คํ–‰์ด ์•ˆ๋  ๋–„)


cannot find a valid baseurl for repo base/7/x86_64

๋ผ๋Š” ์—๋Ÿฌ๊ฐ€ ๋‚  ์‹œ์—


ONBOOT=no


dhclient


yum update

y ์ž…๋ ฅ, y ์ž…๋ ฅ



์ด์ˆœ์„œ๋กœ ์‹คํ–‰ํ•˜์—ฌ๋ผ. ๊ทธ๋Ÿผ๋œ๋‹ค.


์ฐธ๊ณ  : https://www.youtube.com/watch?v=HyVul-vNwYM


๋ฐ˜์‘ํ˜•
๋ฐ˜์‘ํ˜•

๊ฐ€์ƒ๋จธ์‹ ์—์„œ

Centos7์„ ์„ค์น˜ํ•ด๋ณด์ž. ๊ฐ„๋‹จํ•˜๋‹ค.



Install CentosOS 7 ์„ ํƒ



์‹œ์Šคํ…œ -> ์„ค์น˜ ๋Œ€์ƒ (D) ์„ ์„ ํƒํ•˜์—ฌ ์ž๋™์œผ๋กœ ํ• ๋‹น๋˜๊ฒŒ ํ•˜๊ณ 

์„ค์น˜์‹œ์ž‘(B) ํด๋ฆญ


ROOT์•”ํ˜ธ (R) ์„ ์„ ํƒํ•˜์—ฌ ์ดˆ๊ธฐ ๋น„๋ฐ€๋ฒˆํ˜ธ ์„ค์ •ํ•˜๊ธฐ


์ ‘์†ํ•˜๊ธฐ



๋ฐ˜์‘ํ˜•
๋ฐ˜์‘ํ˜•

๋ฒ„์ถ”์–ผ ๋ฐ•์Šค ์‹คํ–‰ ์—๋Ÿฌ ์‹œ

(์„ธ์„ ์ด ์‹คํ–‰์ด์•ˆ๋œ๋‹ค๋Š”๋‘ฅ์˜ ๋ฉ”์„ธ์ง€..)

๋ฒ„์ถ”์–ผ๋ฐ•์Šค E_FAIL (0x80004005)


Soft Forum Xecure HSM

Fasoo DRM

๋„ค์ด๋ฒ„ ebook ํ”„๋กœ๊ทธ๋žจ


์„ ์‚ญ์ œํ•ด๋ณด๋ผ......๋ณด์•ˆํ”„๋กœ๊ทธ๋žจ์ด๋ž‘ ์ถฉ๋Œ์ด ๋‚˜๋Š”๊ฐ€ ์‹ถ๋‹ค.....(๋‚˜์˜๊ฒฝ์šฐ์—” ์‚ญ์ œํ•˜๊ณ  ์ž˜ ์‹คํ–‰๋˜์—ˆ๋‹ค.)
์‚ญ์ œ ํ›„ PC ์žฌ๋ถ€ํŒ…ํ•˜๋„๋ก ํ•˜๊ณ ..



๊ฒ€์ƒ‰ํ–ˆ์„๋•Œ ์ถ”๊ฐ€ ํŒจํ‚ค์ง€ ํŒŒ์ผ์„ ๋ฐ›์•„ ๋„ฃ์œผ๋ผ๋Š”๋‘ฅ 

hyper-v๋ฅผ ์ฒดํฌํ•ด์ œ๋ฅผํ•˜๋ผ๋Š”๋‘ฅ 

(๋‚˜์˜ PC ์šด์˜์ฒด์ œ ๋ฒ„์ „์€ window10 home์ด๋ผ hyper-v ์„ ํƒํ•˜๋Š”๊ฒŒ ์—†๋”๋ผ)

์—ฌ๋Ÿฌ๊ฐ€์ง€๋ฅผ ํ•ด๋ณด์•˜๋Š”๋ฐ๋„ ์•ˆ๋˜์„œ ์ฐพ๋‹ค๊ฐ€ ์ €๋ ‡๊ฒŒ ํ•˜๋‹ˆ ๋˜์—ˆ๋‹ค.

๋ฐ˜์‘ํ˜•

+ Recent posts