linux中emacsclient无法链接server

huyu01@huyu01:/mnt/c/Users/huyu$ emacs --daemon
Starting Emacs daemon.
Unable to start the daemon.
Another instance of Emacs is running the server, either as daemon or interactively.
You can use emacsclient to connect to that Emacs process.
Error: server did not start correctly
huyu01@huyu01:/mnt/c/Users/huyu$ emacsclient --server-flie /home/huyu01/.emacs.d/server/server a
emacsclient: unrecognized option '--server-flie'
Try 'emacsclient --help' for more information
huyu01@huyu01:/mnt/c/Users/huyu$ emacsclient a
emacsclient: can't connect to /mnt/wslg/runtime-dir/emacs/server: Permission denied
emacsclient: No socket or alternate editor.  Please use:

        --socket-name
        --server-file      (or environment variable EMACS_SERVER_FILE)
        --alternate-editor (or environment variable ALTERNATE_EDITOR)
huyu01@huyu01:/mnt/c/Users/huyu$

终端中emacs server已经启动了,emacsclient怎么都无法连接启动emacs server image server文件夹在配置文件中设置放到了.emacs.d文件夹下了,

此时server已经启动,emacsclient无法连接, image 输入emacsclient a回去找另一个文件夹而不是找我设置的文件夹,这是什么问题啊

file再试试。

huyu01@huyu01:/mnt/c/Users/huyu$ emacsclient --server-file /home/huyu01/.emacs.d/server/server a
emacsclient: error accessing server file "/home/huyu01/.emacs.d/server/server"

还是有错误

huyu01@huyu01:~/.emacs.d/server$ emacsclient --server-flie /home/huyu01/.emacs.d/server/server a
emacsclient: unrecognized option '--server-flie'
Try 'emacsclient --help' for more information

换成–server-flie无法识别的

huyu01@huyu01:~/.emacs.d/server$ emacs --daemon
Starting Emacs daemon.
huyu01@huyu01:~/.emacs.d/server$ ls ~/.emacs.d/server
server
huyu01@huyu01:~/.emacs.d/server$ emacsclient --server-file=~/.emacs.d/server/server -v
emacsclient 28.2
huyu01@huyu01:~/.emacs.d/server$ emacsclient --server-file=~/.emacs.d/server/server -c
emacsclient: error accessing server file "~/.emacs.d/server/server"
huyu01@huyu01:~/.emacs.d/server$ emacsclient a
emacsclient: can't connect to /mnt/wslg/runtime-dir/emacs/server: Permission denied
emacsclient: No socket or alternate editor.  Please use:

        --socket-name
        --server-file      (or environment variable EMACS_SERVER_FILE)
        --alternate-editor (or environment variable ALTERNATE_EDITOR)
huyu01@huyu01:~/.emacs.d/server$ emacsclient --server-file=~/.emacs.d/server/server a
emacsclient: error accessing server file "~/.emacs.d/server/server"

启动 Emacs daemon: `emacs --daemon确认ls ~/.emacs.d/server文件已存在

emacsclient --server-file=~/.emacs.d/server/server -c启动连接无法连接

刚查了下emacsclient --help:

-s SOCKET, --socket-name=SOCKET
                        Set filename of the UNIX socket for communication

应该是这个,不是--server-file