Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

37 total results found

windows指令

windows指令

維修指令(使用進階管理員) Dism /Online /Cleanup-Image /CheckHealth Dism /Online /Cleanup-Image /ScanHealth Dism /Online /Cleanup-Image /RestoreHealth sfc /scannow 使用安全模式 Step 1: 按下「 win + R」 打開運行框。輸入「msconfig」,按下「enter」鍵。 Step 2: 在「啟動」選項下,選取「安全啟動」,單擊「確定」繼續。(見下圖) ...

Wordpress學習筆記

Wordpress

安裝wprdpress wget https://tw.wordpress.org/latest-zh_TW.zip unzip mysql -u root -p create database wordpress; create user 'wpadmin'@'localhost' identified by 'P@ssw0rd'; grant all on wordpress.* to 'wpadmin'@'localhost'; flush privileges; php建議設定 memor...

xfs設定

資料格式

xfs_admin: 調整 xfs 文件系統的各種參數xfs_copy: 拷貝 xfs 文件系統的內容到一個或多個目標系統(並行方式)xfs_db: 調試或檢測 xfs 文件系統(查看文件系統碎片等)xfs_check: 檢測 xfs 文件系統的完整性xfs_bmap: 查看一個文件的塊映射xfs_repair: 嘗試修復受損的 xfs 文件系統xfs_fsr: 碎片整理xfs_quota: 管理 xfs 文件系統的磁碟配額xfs_metadump: 將 xfs 文件系統的元數據 (metadata) 拷貝到一個文...

ZFS操作說明

資料格式

限制zfs記憶體使用量 zfs status zpool import —取得zpool資訊 zpool import zpool名稱 —回復zpool儲存池 zpool list —看有無zfs zpool get freeing zpool名稱       --檢查已經釋放的zpool空間 cat /proc/spl/kstat/zfs/arcstats --檢視運行參數 /etc/modprobe.d/zfs.conf options zfs zfs_arc_max=4299967296 --...

Cisco 指令

Cisco

設定Switch名稱 hostname {主機名稱}   啟用特權、設定模式 en #or enable configure terminal 設定連線方式 ip ssh version 2 #使用ssh v2協定 line vty 0 6 #開啟0~6vty連線(即最大連線人數7人) transport input ssh #啟用ssh transport input telnet #啟用telnet transport input ...

Postgresql指令快取

Posrgresql

從Postqresql 16 轉移到17 檢視現有的Postqresql版本。 pg_lsclusters 將最新的版本關掉。 pg_dropcluster 17 main --stop 看17是否已經關閉。 pg_lsclusters 做資料轉移。 pg_upgradecluster 16 main 完成後可以關閉跟移除舊版本。 # pg_dropcluster 16 main # apt purge postgresql-16 postgresql-client-...

OPENVAS(GVM) 使用說明

資訊安全與管控

openvas安裝 使用Kali安裝 sudo apt install gvm 備註:其他linux版本請參閱官方安裝文件 https://greenbone.github.io/docs/latest/22.4/source-build/index.html 人家整理好的debian快速安裝方式https://github.com/Kastervo/OpenVAS-Installation 初始化gvm sudo gvm-setup 備註:完成後會自動產生新密碼,如果忘記可用以下指令修改。 su...

php相關設定

HTML

PHP升級版本方式 檢視現在php程式的詳細資料跟版本 sudo dpkg -l | grep php | tee packages.txt 備註:請注意自己安裝跟需要的套件去做更新 建立資料來源資料庫 debian sudo apt install apt-transport-https sudo curl -sSLo /usr/share/keyrings/deb.sury.org-php.gpg https://packages.sury.org/php/apt.gpg sudo sh -...

bookstack快取指令

bookstack

Bookstack安裝 wget https://codeberg.org/bookstack/devops/raw/branch/main/scripts/installation-ubuntu-22.04.sh chmod a+x installation-ubuntu-22.04.sh sudo ./installation-ubuntu-22.04.sh 備註:1.此為官方製作快速安裝方式。2.適合各ubuntu版本,但請下在相同版本的sh檔。 參考資料: https://www.booksta...

openssl憑證使用設定

SSL憑證管理

憑證轉移 使用Linux的openssl做設定將cer轉成crt openssl x509 -in server.cer -out server2.crt -inform DER crt轉成cer(DER格式) openssl x509 -in server.crt -out server.cer -outform DER 將crt與key合併成pfx和ca openssl pkcs12 -export -in server.crt -inkey server.key -out server.pfx -...

轉移相關設定

實體機與虛擬機轉換

Windows使用disk2vhd備份工具加virtualbox轉換 disk2vhd載點 下載界壓縮後disk2vhd64.exe, 並勾取要備份的磁區跟右上角的3個選項,跟儲存的路徑。 完成後得到一個.vhdx檔案,在使用Virtualbox指令進行格式轉移(Virtualbox需要先安裝(路徑)) VboxManage.exe clonehd "原始VHDX檔案絕對路徑.vhdx" "轉換後的vdi檔案路徑.vdi" –format vdi 備註:1.該指令需要在Virtualbo...

M365使用筆記

M365相關

Exchange 系統管理中心 郵件審核 M365 admin center Entra系統管理中心 Microsoft Defender 反垃圾郵件設定原則 可以在這裡這定寄信的規則,黑白名單等等。 解除被封鎖的使用者帳號

SMART使用指令

Linux Shell

S.M.A.R.T. (Self-Monitoring, Analysis, and Reporting Technology)相關介紹 smart指令的使用 安裝 apt install smartmontools -y 檢視基本資料 smartctl -i {硬碟} 開啟SMART功能 smartctl -s on (硬碟) 簡單檢測(只回覆pass/failed) smartctl -H (硬碟) 檢查硬碟 smartctl -t (檢查方式) (硬碟) 備註:檢查方式:offline...

VirtualBox筆記

實體機與虛擬機轉換

指令使用無標頭啟動(headless) VBoxManage startvm "VM名稱|uuid" --type headless VBoxHeadless --startvm {VM名稱|uuid} 問題處理 l開啟虛擬機出現kernel driver not installed(rc=-1908) 執行虛擬機出現以下圖示 使用root或sudo執行下方指令進行virtualbox設定 sudo /sbin/vboxconfig 會出現下方回應 這是因為安裝的時候少了一些重要核心程...

簡易工具與指令

資訊安全與管控

nslookup 可以查詢網域所對應的ip nslookup 2022.4inlibra.com {可指定使用的dns} whois 可以得知域名註冊、Dns伺服器等相關資訊 whatweb 除網域登記者、ip等等網域資料外,還有網站的相關內容分析,如使用何種語言、網頁伺服器還有版本等等

IIS Crypto使用

SSL憑證管理

很方便的工具,可以直接設定SSL相關的參數,不用自己設定機碼,但缺點是支援server 2012跟Win8之後的Windows系統。 下在網址:https://www.nartac.com/Products/IISCrypto/Download 開啟程式後會顯示現在有使用的設定,Windows預設式全部開啟。 點下左下Best Practices會留下建議的設定,如果可以直接重開機點選reboot,再點擊apply。 備註: 1.推薦設定可能會導致舊OS的Client連不上(Server Protoc...

暴力密碼破解工具

資訊安全與管控

crowbar 安裝(kali) sudo apt install crowbar 使用方式 crowbar -b {ssh,ftp...} -u {username} -c {password} -n {session number} -l {logfile} #-u可以改成-U 用使用者txt名單,-c也可以變成-C 使用密碼txt名單 備註:注意如果只掃一個ip也要輸入/32,不然會顯示錯誤。