cp: cannot create regular file `/usr/bin/nginx': Text file busy

覆盖nginx失败

在虚拟机使用命令

cp nginx /usr/bin/ 

想要覆盖原来的nginx,但是提示以下内容

cp: cannot create regular file `/usr/bin/nginx': Text file busy

应该是说nginx在使用,所以不能覆盖,使用一下命令关掉nginx

 nginx -s stop

然后再执行覆盖命令就ok了


版权声明:本文为sxy15031335706原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。