Ubuntu nfs tftp samba

来源:互联网 发布:Linux 使用gzip压缩 编辑:程序博客网 时间:2024/05/20 23:38

//nfs
apt-get install nfs-kernel-server

配置/etc/exports
增加一行 /opt *(rw,no_root_squash,no_all_squash,sync)

Ubuntu nfs重启服务
sudo/etc/init.d/portmaprestartsudo /etc/init.d/nfs-kernel-server restart

测试Ubuntu nfs
此时可以运行以下命令来显示一下共享出来的目录:
$showmount -e

//////////////////////////
//tftp

sudo apt-get install tftp-hpa tftpd-hpa

sudo gedit /etc/default/tftpd-hpa
将原来的内容改为:

# /etc/default/tftpd-hpa
TFTP_USERNAME=”tftp”
TFTP_DIRECTORY=”/tftpboot ”
TFTP_ADDRESS=”0.0.0.0:69”
TFTP_OPTIONS=”-l -c -s”

#服务器目录,需要设置权限为777,chomd 777 /tftpboot

3.重新启动TFTP服务
sudo service tftpd-hpa restart

/////////////////////////////////////
//samba
apt-get install samba samba-common -y

apt-get install python-glade2 -y

apt-get install system-config-samba -y

smbpasswd -a

New SMB password
retype New SMB Password

运行system-config-samba,设置

/etc/init.d/smbd restart

0 0
原创粉丝点击