顯示具有 Server 2016 標籤的文章。 顯示所有文章
顯示具有 Server 2016 標籤的文章。 顯示所有文章

2020年7月20日 星期一

[SFTP 架站 ]SERVER FREE SFTP SITE 免費快速架站免安裝 適用多站台

我目前架SFTP SERVER使用的是Rebex Tiny SFTP Server
網址在這兒
是免費的
簡單設定
檔案輕巧
支援多個站台架站
非常推薦!!




官網下載後只要手動修改config檔案
調整為自己需要的參數如下圖
port 可以使用預設22、23
如果要多個站台的時候只要複製這個路徑,再將新的config檔案重新調整到相對應的路徑
另外指定其他不衝突的port就可以了



2020年4月8日 星期三

[批次指令] 本地資料夾自動與遠端資料夾檔案數同步 [[適用:Server2016、Windows10]

目的:

希望每天利用排程,將本機中的資料夾能自動同步比對與遠端資料夾完全相同,並將每天完成動作記錄下來,且記錄檔名稱皆為當天執行日期


範例:

本地資料夾 D:\publish\

遠端資料夾 \\192.168.0.1\publish\

記錄檔資料夾 D:\Log\


語法:

robocopy \\192.168.0.1\publish\ D:\publish\ /E /log+:D:\Log\Sync_publish_%date:~0,4%%date:~5,2%%date:~8,2%.log



[批次指令] 刪除指定天數前的檔案[[適用:Server2016、Windows10]

目的:清除3天份的備份檔


語法:forfiles /p "D:\DRBackup\DIFF-1" /s /m *.bak /d -3 /c "cmd /c del @file"



參考:
https://docs.microsoft.com/zh-tw/windows-server/administration/windows-commands/forfiles

2019年5月23日 星期四

[SFTP] Windows Server SFTP 架站經驗談

你可以直接參考下面這篇更有用

[SFTP 架站 ]SERVER FREE SFTP SITE 免費快速架站免安裝 適用多站台


之前就已經有架站SFTP SERVER的實作經驗
當時是使用Rebex,不過近期開始有需要一台Server 架多組帳號,且又不能隨意開一個Port來使用,所以分享一下試用心得

  首先我的架站環境是Windows Server 2016

小而美SFTP SERVER 架站工具

Rebex Tiny SFTP Server
Free SFTP server from the authors of this site.
-使用心得-
優點:免費、快速架站、簡單、可多組帳號(需另外指定Port)
缺點:無法使用同一支程式來執行多組服務、沒有中文介面(其實簡單到不行,覺得沒有必要有中文介面)


完整功能SFTP SERVER 架站工具

Lightweight SFTP, SCP, SSH server for Windows from authors of this site.
-使用心得-
它的官網上是這麼列的...實際測試程式無法啟動在我的環境中
Buru Server runs on
Windows 7 SP1
Windows 8.1
Windows 10
Windows Server 2008 R2 SP1 or later
結論: 畫面跑不出來~可以刪了

OpenSSH
The most widely used SFTP/SSH server on the planet. Perfect for Linux or *BSD, not so great on Windows. Open source.
-使用心得-
說是free 的,但看到不建議在WINDOWS上使用就沒興趣了
結論: 非必要不用考慮了,不想測試


Bitvise SSH Server
SFTP/SSH server for Windows.-使用心得-
介面上有些陽春,設定解釋也有些不容易理解,不過實際測試後覺得也還OK,功能算是完整
缺點:沒有中文介面喔,設定上可能會有些搞不懂是做什麼用的,然後官網說名字有些小
結論: 還能用,但要購買

Tectia SSH Server
Enterprise SFTP/SSH server from the creators of the SSH protocol.
-使用心得-
網站做得漂亮,不過無法直接看到系統畫面,想要下載試用還要留下基本資料,就連輸入Gmail帳號還會說你的email是不是公司,覺得有點囉嗦,到底是要不要讓人試用?
結論: 不想測試

CrushFTP
File transfer server with support for SFTP, SCP, FTPS and HTTPS.
-使用心得-
缺點: 安裝檔案好大 要125MB,網頁設計讓人覺得像詐騙網站,令人卻步
結論: 非必要不用考慮了,不想測試


VanDyke VShell Server
SSH2/SFTP/FTPS file transfer server for Windows, Linux & Mac with fine-grain access control and configuration.
-使用心得-
缺點: 一樣,想要下載試用還要留下基本資料
結論: 非必要不用考慮了,不想測試



GlobalScape EFT Server
-使用心得-
我以為跑錯網站.....
結論:  非必要不用考慮了,不想測試



Titan FTP Server
SFTP, FTP/SSL and FTP server for Windows
-使用心得-
看影片介紹似乎還蠻符合需要的,但無法下載試用檔
結論:無法測試

CORE FTP



參考STP.NET
https://sftp.net/servers

2018年11月29日 星期四

[SERVER 2016] [SERVER 2012] [SERVER 2008] Share and Storage Management 檔案伺服器資源管理員

使用Windows Server 作各部門資料夾的分享時,我們會使用到Share and Storage Management 檔案伺服器資源管理員,這個在Server的Share Folder管理上很方便,可以看到誰正在開啟檔案,可以強制對方關閉檔案,釋放檔案讀寫的佔用

[Server 2008]

開啟StorageMgmt可以列出所有開啟分享的資料夾,選擇Manage Open Files 可以管理開啟中的檔案,此管理程式在Server 2012後就更換管理位置了,但你還是可以安裝這個程式去連接其他台 2008 的Server



左側點選要關閉的檔案後 ,右側點選Close Selected


[Server 2012]

要安裝StorageMgmt 可以從伺服器管理員中安裝,但Server 2016 就沒有看到這個選項了
Server manager> Add Roles and Features Wizard> go to Features option and choose below settings.
Remote Server Administrative Tools
Roles Administration Tools
Files services Tools
Share and Storage Management Tool



Server 2012 管理方式改在Computer Management (compmgmt.msc),可以看到開啟中的檔案,也能強制關閉使用中的檔案















2018年11月8日 星期四

在SQL Server 2012 or SQL Server 2016 設定連結的伺服器(Linked Server)






我在使用Linked Server主要用途在方便不同DB Server 之間 使用 CREATE VIEW來連結資料
使用Linked Server 可以使用多個連線方式,且可以使用Windows 認證(Windows Authentication) or Local SQL User連線

增加位置[Server Objects]-[Linked Servers]


在[Linked Servers]上右鍵選擇[New Linked Server...]




在Linked server 寫上IP(open TCP/IP and port) 或者是Server Name(open Named Pipes)



使用Windows 認證(Windows Authentication) 選擇 Be made using the login's current security context
使用SQL 認證(SQL Authentication) 選擇 Be made using this security context







參考連結:
https://docs.microsoft.com/en-us/sql/relational-databases/linked-servers/create-linked-servers-sql-server-database-engine?view=sql-server-2017