Mongo return error status after "pecl install mongodb"

Hi all, could anyone help me for this prob
I install mongodb by brew install and when i check by “brew services list” , it return mongodb started
Then i ran “pecl install mongodb”, everything was successfull… but when i run “brew services list”. it return “mongodb-community@4.2 error 3584
i checked log in hombrew mongo folder and it show like the image
may i research not enough for this, pls help me to fix this
Thanks so much

I think you are starting the Homebrew version of MongoDB incorrectly.
sudo brew services start mongodb-community

hi mr, thank for your quick response
i’ve already fixed it by “chmod -R 777 /otp/homebrew/var/mongo”