Hi there,
We're using IMX8mini EVK, with Yocto Linux.
Suppose I :
echo 'hello world' >/var/log/nginx/my.log
It goes fine during the daily use. But after I restart the system, the my.log file under /var/log/nginx/ would be missing.
Why each restart would cause the Linux file system back to the original status, without any files that the user created?
Hello Yang Songxiang,
It could be a problem of permissions from ngix. I would recommend looking for more details on the ngix documentation.
https://docs.nginx.com/nginx/admin-guide/monitoring/logging/
I would check that the echo actually wrote on the log as it could be that the operation wasn’t performed due to user restrictions. And then I would also check that the nginx process is running and has the appropriate permissions and settings.
Regards,