Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
nfs服务器问题
Experiences and Insight
708
views ·
4
replies ·
To
floor
Go
bravy
deepin
2020-03-04 03:04
Author
nfs服务器已经安装成功,客户端也可以正常访问,但时当服务器重启后,客户端就无法访问了,好象是nfs server 没有随电脑启动,需要手动在终端输入nfs server启动命令。参照网上说的下面那种方法也无效!!!!
新建rc.local文件
https://wiki.deepin.org/wiki/%E8%87%AA%E5%90%AF%E5%8A%A8%E7%A8%8B%E5%BA%8F
Reply
Like 0
Favorite
View the author
All Replies
观摩
deepin
2020-03-04 06:36
#1
systemctl enable rpcbind.service
systemctl enable nfs.service
Copy the Code
试试吧,我在 centos 下是这样做的
Reply
Like 0
View the author
thepoy
deepin
2020-03-04 06:46
#2
最简单的自启方法之一是,将你想要运行的命令写到一个desktop里,将这个destop放到~/.config/autostart里,开机就能自启了,我是这么做的。
参考:docker.desktop
[Desktop Entry]
Comment[zh_CN]=docker mysql and redis
Comment=docker mysql and redis
Comment[en_IN]=docker mysql and redis
Exec=docker start mysql && docker start redis # 你要运行的命令
GenericName[zh_CN]=开机自启docker中的mysql和redis
GenericName=开机自启docker中的mysql和redis
Hidden=false
MimeType=
Name[zh_CN]=docker mysql and redis
Name=docker mysql and redis
Name[en_IN]=docker mysql and redis
NoDisplay=false
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-GNOME-Autostart-enabled=true
X-KDE-SubstituteUID=false
X-KDE-Username=
Copy the Code
Reply
Like 0
View the author
Feng Yu
deepin
2020-03-04 07:51
#3
rc.local已经废弃,不要再用了
Reply
Like 0
View the author
bravy
deepin
2020-03-06 04:06
#4
[Desktop Entry]
Name=nfs-kernel-server
Type=Application
Exec=echo "我的密码" | sudo -S /etc/init.d/nfs-kernel-server start
echo "我的密码" | sudo -S /etc/init.d/nfs-kernel-server start 这条命令我单独运行是可以成功启动nfs server的,但是放在脚本中开机时没有运行成功。
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
WiFi Drivers
Popular Events
More
新建rc.local文件
https://wiki.deepin.org/wiki/%E8%87%AA%E5%90%AF%E5%8A%A8%E7%A8%8B%E5%BA%8F