Why the whole file system keeps untouched after a restart

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Why the whole file system keeps untouched after a restart

824 次查看
13614278
Contributor III

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?

0 项奖励
回复
1 回复

801 次查看
gusarambula
NXP TechSupport
NXP TechSupport

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,

0 项奖励
回复