systemctl 啟動 systemd 單元時出現(xiàn)下面的錯誤# systemctl start aliyun-nas.mountFailed to start aliyun-nas.mount: Unit is not loaded properly: Invalid argument.See system logs and 'systemctl status aliyun-nas.mount' for details.# systemctl status aliyun-nas.mountsystemd[1]: aliyun-nas.mount's Where= setting doesn't match unit name. Refusing.請問如何解決?
1 回答

慕后森
TA貢獻1802條經(jīng)驗 獲得超5個贊
這里涉及2個問題:
systemd 的 unit 文件名要與 Where 中的掛載路徑一致,對于
aliyun-nas.mount
,Where 中要寫Where=/aliyun/nas
如果連字符作為目錄名的一部分,需要進行編碼,對于
aliyun-nas.mount
,unit 文件名要用aliyun\x2dnas.mount
,Where 中要寫Where="/aliyun-nas"
(注:一定要加雙引號)
添加回答
舉報
0/150
提交
取消