1、
yum install -y samba samba-client
2、
useradd myshare
smbpasswd -a
myshare
3、
mkdir /home/samba
4、
vi /etc/samba/smb.conf
在配置文件[globle]处:
[global]
unix extensions = no
在文件末尾添加:
[myshare ]
comment = mysharefiles
path = /home/samba
follow symlinks = yes
wide links = yes
public = yes
writable = yes
browseable = yes
valid users = myshare
假若mac电脑添加如下:
[myshare]
comment = openstackfiles
path = /home/samba
follow symlinks = yes
wide links = yes
public = yes
writable = yes
browseable = yes
guest ok = Yes
5、
将刚才添加的samba用户和linux系统的用户建立对应关系。
vi /etc/samba/smbusers
myshare
=
myshare
6、
service smb restart
chkconfig smb on
7、
service iptables stop
关闭selinux
samba服务器搭建完成。
centos7:上面:
systemctl enable smb
systemctl restart smb
systemctl stop iptables 设置Apache
假若想在页面看到文件夹
我只需要把 /home/share 目录链接到apache目录下显示就可以 ln -s /home/myshare /var/www/html/
然后windows登陆:\\10.28.170.89
全部完成~!
|
ln -s /usr/lib/python2.6/site-packages/nova nova
|
cd /usr/lib/python2.6/site-packages/
cp nova nova.bak
rm -rf nova/*
|
git clone [email protected]:openstack/nova-2014-1-1-dev.git ../nova
|
vim /usr/lib/python2.6/site-packages/nova/api/openstack/compute/__init__.py
|