centos挂载windows或者nas共享盘
-
准备工作
先查看需要共享的文件,或文件夹待会需要共享的。
-
创建共享文件夹
接着编辑选择共享文件夹,设置共享。
-
设置文件夹ntfs权限
由于挂载的文件需要编辑写入。需要添加everyone账号权限
-
还有共享文件夹的共享权限,添加everyone写入权限(如果不需要写入可以不设置此权限)
-
linux服务器测试能否连接windows共享文件夹
linux挂载共享文件夹
-
linux服务器需要安装 samba-client组件。
-
安装cifs-utils组件,这个是挂载文件夹的组件。
-
新建linux挂载点*
创建一个linux挂载点,使用mkdir 创建一个目录。
-
挂载共享文件夹*
使用挂载命令mount -t cifs 接 共享文件夹的用户名和共享名, 挂载点
-
测试确认挂载
挂载好之后,切换到共享文件夹。创建文件,如图。这样就挂载好了,学会了吗
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!