systemctl 启动 systemd 单元时出现下面的错误
# systemctl start aliyun-nas.mount
Failed 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.mount
systemd[1]: aliyun-nas.mount's Where= setting doesn't match unit name. Refusing.
请问如何解决?
相关问题
- Is shmid returned by shmget() unique across proces
- how to get running process information in java?
- Error building gcc 4.8.3 from source: libstdc++.so
- Why should we check WIFEXITED after wait in order
- Null-terminated string, opening file for reading
这里涉及2个问题:
aliyun-nas.mount
,Where 中要写Where=/aliyun/nas
aliyun-nas.mount
,unit 文件名要用aliyun\x2dnas.mount
,Where 中要写Where="/aliyun-nas"
(注:一定要加双引号)