Linux下使用Samba服務(wù)器舉例
Linux下使用Samba服務(wù)器舉例
VBox下,Rehat5虛擬機(jī)。使用samba服務(wù)器。目的:使用samba服務(wù)器將文件上傳到服務(wù)器上。[root@rh55~]#servicesmbstart//報錯,沒有smb服務(wù)。smb:unrecognizedservice。 ;//接下來安裝samba服務(wù)器。[root@rh55 ;~]# ;mount ;/dev。rom ;/media/。mount: ;block ;device ;/dev。rom ;iswrite-protected, ;mounting ;read-only。
導(dǎo)讀VBox下,Rehat5虛擬機(jī)。使用samba服務(wù)器。目的:使用samba服務(wù)器將文件上傳到服務(wù)器上。[root@rh55~]#servicesmbstart//報錯,沒有smb服務(wù)。smb:unrecognizedservice。 ;//接下來安裝samba服務(wù)器。[root@rh55 ;~]# ;mount ;/dev。rom ;/media/。mount: ;block ;device ;/dev。rom ;iswrite-protected, ;mounting ;read-only。
![](https://img.51dongshi.com/20250105/wz/18528760952.jpg)
實(shí)驗(yàn)環(huán)境:VBox下,Rehat5虛擬機(jī)使用samba服務(wù)器目的:使用samba服務(wù)器將文件上傳到服務(wù)器上[root@rh55~]#servicesmbstart//報錯,沒有smb服務(wù)smb:unrecognizedservice?//接下來安裝samba服務(wù)器[root@rh55?~]#?mount?/devrom?/media/mount:?block?device?/devrom?iswrite-protected,?mounting?read-only[root@rh55?~]#?yum?install?-y?samba-*?--使用yum安裝軟件包,關(guān)于yum的使用請查閱相關(guān)資料Loaded?plugins:?rhnplugin,?securityThis?system?is?not?registered?with?RHN.RHN?support?will?be?disabled.base?|?1.3?kB?00:00Setting?up?Install?ProcessPackage?samba-common-3.0.33-3.28.el5.i386?alreadyinstalled?and?latest?versionPackage?samba-client-3.0.33-3.28.el5.i386?alreadyinstalled?and?latest?versionResolving?Dependencies-->?Running?transaction?check--->?Package?samba.i386?0:3.0.33-3.28.el5?setto?be?updated-->?Processing?Dependency:?perl(Convert::ASN1)for?package:?samba--->?Package?samba-swat.i386?0:3.0.33-3.28.el5set?to?be?updated-->?Running?transaction?check--->?Package?perl-Convert-ASN1.noarch0:0.20-1.1?set?to?be?updated-->?Finished?Dependency?ResolutionDependencies?Resolved================================================================================Package?Arch?Version?Repository?Size================================================================================Installing:samba?i386?3.0.33-3.28.el5?base?16?Msamba-swat?i386?3.0.33-3.28.el5?base?8.2?MInstalling?for?dependencies:perl-Convert-ASN1?noarch?0.20-1.1?base?41?kTransaction?Summary================================================================================Install?3?Package(s)Upgrade?0?Package(s)Total?download?size:?24?MDownloading?Packages:--------------------------------------------------------------------------------Total?8.1GB/s?|?24?MB?00:00Running?rpm_check_debugRunning?Transaction?TestFinished?Transaction?TestTransaction?Test?SucceededRunning?TransactionInstalling?:perl-Convert-ASN1?1/3error:?Failed?to?stat?/media/RHEL_5.5?i386?DVD:No?such?file?or?directoryInstalling?:?samba?2/3Installing?:?samba-swat?3/3Installed:samba.i386?0:3.0.33-3.28.el5?samba-swat.i386?0:3.0.33-3.28.el5?Dependency?Installed:perl-Convert-ASN1.noarch?0:0.20-1.1Complete![root@rh55?~]#?service?smb?startStarting?SMB?services:?[?OK?]Starting?NMB?services:?[?OK?][root@rh55?~]#?smbpasswd?-a?oracleNew?SMB?password:Retype?new?SMB?password:Added?user?oracle.?將需要的文件拷貝到共享的oracle目錄下,如下所示:至此,完成對Samba服務(wù)器使用的配置***********************************************聲明************************************************本文來自系統(tǒng)大全為您提供如需轉(zhuǎn)載請注明!推薦win10下載
Linux下使用Samba服務(wù)器舉例
VBox下,Rehat5虛擬機(jī)。使用samba服務(wù)器。目的:使用samba服務(wù)器將文件上傳到服務(wù)器上。[root@rh55~]#servicesmbstart//報錯,沒有smb服務(wù)。smb:unrecognizedservice。 ;//接下來安裝samba服務(wù)器。[root@rh55 ;~]# ;mount ;/dev。rom ;/media/。mount: ;block ;device ;/dev。rom ;iswrite-protected, ;mounting ;read-only。
為你推薦