If this program is installed under root, then after installation, I find that its configuration file cannot be copied and pasted manually. Do I need to use commands under root to copy and paste in the current directory? Is that so? But I found out why copying like this doesn’t work?
cp /etc/nginx/nginx.conf /etc/nginx
Pay attention to spaces.
chmod 777 nginx.conf
The error message is insufficient permissions. You can change the file permissions and it should be OK
Obviously you wrote the wrong command, cp /etc/nginx/nginx.conf /path/to/your/want/cp/path you are missing the following path.
And your command is: cp /etc/nginx/nginx.conf (a path is required here)