vmware虛擬機器Centos安裝samba全過程

來源:互聯網
上載者:User

標籤:io   ar   os   sp   on   檔案   bs   代碼   ef   

1.掛載光碟片

2.虛擬機器載入ISO檔案

3.虛擬機器下面點光碟片符號,選connect

4.執行 mkdir /media/cdrom

5.mount /dev/cdrom /media/drom

6.查詢samba安裝情況 rpm -qa | grep samba

7.安裝三個檔案

cd /media/cdrom/CentOs 

rpm -ivh samba-3.0.33-3.28.el5.i386.rpm -f --nodeps

rpm -ivh samba-client-3.0.33-3.28.el5.i386.rpm  -f --nodeps

rpm -ivh samba-common-3.0.33-3.28.el5.i386.rpm -f --nodeps

8.配置/etc/samba/smb.conf

9.配置前先備份smb.conf

mv smb.conf smb.confbak

10.建立一個新的smb.conf

touch smb.conf

11.將下面的代碼用vim寫入設定檔 smb.conf

[global]  #全域配置

workgroup = Linuxgrp #設定工作群組

netbios name = centos#設定電腦名稱

server string = Linux Samba Server#伺服器說明

security = share #登入驗證方式

[linuxserver] #windows裡面顯示的共用目錄

path = /opt/linuxserver #共用資料夾路徑

writeable = yes #設定可寫入權限

browseable = yes #設定可以瀏覽

guest ok = yes #設定可以匿名登入

12.建立相應目錄並授權

mkdir -p /opt/linuxserver

chown -R nobody:nodoby /opt/linuxserver

13.啟動samba和nmbd伺服器

smaba

nmbd

14.windows開啟網路位置

運行裡面輸入:\\192.168.1.128(虛擬伺服器IP地址)

vmware虛擬機器Centos安裝samba全過程

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.