MacOS Catalina failed to create a log directory
sudo mkdir -p /data/logs/test/
Copy the code
Returns an error
mkdir: /data/logs/test/: Read-only file system
Copy the code
Run the following command to mount the write permission
sudo mount -uw /
Copy the code
Continue to grant local user permissions
sudo chown -R xxx /data/logs/test/Copy the code