Heim  >  Fragen und Antworten  >  Hauptteil

Linux kann Problem nicht kopieren

Wenn dieses Programm unter Root installiert ist, stelle ich nach der Installation fest, dass seine Konfigurationsdatei nicht manuell kopiert und eingefügt werden kann. Ist hierfür ein Befehl unter Root zum Kopieren und Einfügen in das aktuelle Verzeichnis erforderlich? Ist das so? Aber ich habe herausgefunden, warum das Kopieren auf diese Weise nicht funktioniert?

过去多啦不再A梦过去多啦不再A梦2685 Tage vor1017

Antworte allen(5)Ich werde antworten

  • 天蓬老师

    天蓬老师2017-06-12 09:26:41

    cp /etc/nginx/nginx.conf /etc/nginx
    注意空格.

    Antwort
    0
  • PHP中文网

    PHP中文网2017-06-12 09:26:41

    sudo cp -rf /path/to/source_file/ /path/to/target_file(path)

    Antwort
    0
  • 天蓬老师

    天蓬老师2017-06-12 09:26:41

    chmod 777 nginx.conf

    Antwort
    0
  • 学习ing

    学习ing2017-06-12 09:26:41

    错误提示权限不够,你改下文件权限,应该就OK

    Antwort
    0
  • PHP中文网

    PHP中文网2017-06-12 09:26:41

    很明显你命令写错了, cp /etc/nginx/nginx.conf /path/to/your/want/cp/path 你缺少了后面的path.

    而你的命令是: cp /etc/nginx/nginx.conf (这里需要一个path)

    Antwort
    0
  • StornierenAntwort