- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
疑问: 1 /etc/resolv.conf 2 /etc/exports 3 /etc/xinet.conf
— 配置 samba
1 服务器联网
添加 DNS 服务器:vi /etc/resolv.conf
最后加上 nameserver
配置网络:vi /etc/network/interfaces auto eth0
iface eth0 inet static
address 66
netmask
gateway
重启网络:/etc/init.d/networking restart 2 安装 samba: apt-get install samba
apt-get install smbd
配置 samba 配置文件(/etc/samba/smb.conf):
[tongzhilin] //目录名称
comment = This is my samba server //注释path = /samba //路径
writeable = yes browseable = yes create mode = 0664 directory mode = 0777
设置目录权限(这部很重要,权限不对影响 win 下 samba 的读写):
chmod 1777 /home/tongzhilin/
设置[global]
//解决 windows 下可能出现乱码的情况
unix charset = UTF-8 dos charset = CP936 display charset = UTF-8
//允许哪些网段访问
hosts allow = //
//设置工作组workgroup = CHINA
图形界面:
apt-get install system-config-samba 5 启动 samba:
service smbd start/stop/restart 6 启动图形界面:
sudo system-config-samba 7 查看 samba 服务:
service smbd status
二 配置 telnet
安装:
apt-get install xinetd apt-get install telnetd
配置/etc/xinetd.conf
defaults
{
# Please note that you need a log_type line to be able to use log_on_success # and log_on_failure. The default is the following :
# log_type = SYSLOG daemon info
instances = 60
log_type = SYSLOG authpriv log_on_success = HOST PID log_on_failure = HOST
cps = 25 30
}
配置/etc/xinet.d/telnet 文件,没有新建一个
# default: on
# description: The telnet server serves telnet sessions; it uses \ # unencrypted username/password pairs for authentication. service telnet
{
disable = no flags = REUSE
socket_type = stream wait = no
user = root
server = /usr/sbin/in.telnetd log_on_failure += USERID
}
重启网络服务:
/etc/init.d/xinetd restart
6 启动 telnet 服务:
/etc/init.d/xinetd restart
5 查看 telnet 服务:
三 配置 ssh
安装 ssh:
apt-get install openssh-server //服务端apt-get install openssh-client //客户端
启用 ssh:
/etc/init.d/ssh start
查看 ssh:
service ssh status
//stop restart
四 配置 nfs
nfs 需要启动 portmap,启动方法:/etc/init.d/portmap start
安装 nfs:
apt-get install nfs-kernel-server
配置 nfs:
vi /etc/exports
添加:/nfs_test/ 10.30.31.* (rw,no_root_squash,async)
解释:/nfs_test/ :共享路径
10.3
您可能关注的文档
- Should young couples live with parent分析和总结最新分析和总结.docx
- showModalDialog和showModelessDialog方法使用详解.docx
- showModalDialog和showModelessDialog使用心得分析和总结.docx
- SiC粉体的表面改性.docx
- simatic net配置步骤分析和总结.docx
- Simpson-Rule-Summary---辛普森法则分析和总结.docx
- SINAMICS-G120与S7-300之间的-PN-通讯.docx
- SIYB创业计划书(同名11384).docx
- sizeof的用法分析和总结.docx
- sizof的用法二分析和总结.docx
文档评论(0)