一、
yum install -y samba samba-client
二、
useradd myshare
smbpasswd -a
myshare
三、
mkdir /home/samba
四、
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
五、
將剛纔添加的samba用戶和linux系統的用戶創建對應關係。
vi /etc/samba/smbusers
myshare
=
myshare
六、
service smb restart
chkconfig smb on
七、
service iptables stop
關閉selinux
samba服務器搭建完成。
centos7:上面:
systemctl enable smb
systemctl restart smb
systemctl stop iptables 設置Apache
倘若想在頁面看到文件夾
我只須要把 /home/share 目錄連接到apache目錄下顯示就能夠html 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
git@wishi.gitlab.com:openstack/nova-2014-1-1-dev.git ../nova
|
vim /usr/lib/python2.6/site-packages/nova/api/openstack/compute/__init__.py
|
版權聲明:歡迎你們轉載,轉載請註明出處blog.csdn.net/tantexian。python