๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

๐Ÿณ Docker

โœ… Solved * [Docker] Unable to open log file /mqtt/logs/mosquitto.log for writing

mosquitto ๋กœ๊ทธ๋ฅผ ์ €์žฅํ•˜๋Š” ์œ„์น˜๋ฅผ ๋ฐ”๊พธ์—ˆ๋‹ค.

๊ทธ๋ฆฌ๊ณค ๋™์ž‘์‹œํ‚ค๋ ค๋Š”๋ฐ..

 

Unable to open log file /mqtt/logs/mosquitto.log for writing

 

๐Ÿ˜๐Ÿ˜‘ ์•„ ์™œ! ๋˜! ์—๋Ÿฌ! ์™œ ๋ชป์จ!!

 

์˜ˆ์ƒ์€ ํ–ˆ์ง€๋งŒ ๊ฒ€์ƒ‰ ๊ฒฐ๊ณผ ๊ถŒํ•œ ๋ฌธ์ œ ๋•Œ๋ฌธ์— ์‚ฌ์šฉ์ด ์•ˆ๋˜๋Š” ๊ฒƒ์ด์˜€๋Š”๋ฐ...

 

 


๊ถŒํ•œ์ด ์—†์œผ๋‹ˆ ๋‹น์—ฐํžˆ ๊ถŒํ•œ์„ ์ฃผ๋ฉด ๋œ๋‹ค.

 

$ cd ๋กœ๊ทธ๊ฐ€_์ €์žฅ_๋ _๋””๋ ‰ํ† ๋ฆฌ
$ sudo touch mosquitto.log
$ sudo chmod o+w ./mosquitto.log
$ sudo chown MQTT_ํฌํŠธ๋ฒˆํ˜ธ:MQTT_ํฌํŠธ๋ฒˆํ˜ธ /srv/mosquitto/log -R

 

ํ .. ์œ„ ๋ถ€๋ถ„์ค‘์—์„œ /srv/mosquitto/log ์ด ๋ถ€๋ถ„์„ ๋กœ๊ทธ๊ฐ€_์ €์žฅ_๋ _๋””๋ ‰ํ† ๋ฆฌ๋กœ ๋Œ€์ฒด ํ•ด์•ผํ•˜๋Š”์ง€ ์•„๋‹Œ์ง€ ๊นŒ๋ฌต..

๊ทธ๊ฑด.. ํ•ด๋ณด๋„๋ก ํ•˜์ž..

 

 


Thanks for ๐Ÿ™ˆ