文章列表
-
在LINUX文字介面下查各資料夾的空間
Linux 指令 du -chd 1 | sort -h
-
Centos7 安裝mysql8 GPG-KEY 過期事件
Failing package is: mysql-community-libs-compat-8.0.29-1.el7.x86_64 GPG Keys are configured as: file:///etc/…
-
Let's Crypt 的SSL
超快速的設定 sudo apt install python3-certbot-apache sudo certbot --apache -d my.domain 輸入你常的email 然後要不要把apache設定成自動導向443 &nbs…
-
pptpd for fail2ban 設定
原本的fail2ban並沒有pptpd的選項 我們假設pptpd vpn都設定好, 都連的上可以用了. yum install epel-release yum install fail2ban #找個…
-
centos7 Postifix+Dovecot+Sasl(no ssl) 基本設置 -資料來源-網路
Postifix+Dovecot+Sasl(no ssl) 基本設置 (Centos 7) version Centos 7 postfix-2.10.1-6.el7.x86_64 dovecot-2.2.10-7.el7.x86_64 -…
-
mysql 指令- old db 2 new db
MySql資料庫複製表資料 將 production 資料庫中的 mytbl 錶快速複製為 mytbl_new,2個命令如下: CREATE TABLE mytbl_new LIKE production.mytbl; INSERT myt…
-
phpmyadm MySQL8.0報錯 - The server requested authentication method unknown to the client
add in /etc/my.cnf default_authentication_plugin=mysql_native_password :wq 在mysql -u root -p ALTER USER 'root'@'localhos…
-
OpenCart 實裝錯誤 php73 mysql8
出現php 500 tail -30 /var/log/httpd/error_log [Sun May 30 18:32:48.970395 2021] [php7:error] [pid 6609] [client 111.242.65…
-
度分秒轉成10進位
度分秒轉成10進位 22.623186 22 0.623186° => 0.623186 *60 =37.19116', 0.39116*60 = 23.4696" 22°37'23.4696" 22+37/60+23.4696/36…
-
C#修改AD使用者的密碼
/// <summary> /// 修改AD 密碼 /// </summary> &nbs…
-
robocopy 取代 xcopy
robocopy c:\abc d:\monday /mir /copyall /dcopy:DAT /maxage:1 /mt:8 效果是將C\abc 內一天內所有修改過的文件備份到Monday文件夾內。 加/z 可以在檔案…
-
Centos7 mount SynologyNAS 掛載群暉的NAS
1.群暉NAS 檔案服務NFS要開啟 2.接下來, 在指定的分享夾設定 3.Centos7 LINUX yum install samba-client samba-com…
-
iptables 只限制指定IP NAT 去指定的虛擬IP
/sbin/iptables -t nat -A PREROUTING -p tcp -i $EXTIF --dport 8011 -j DNAT --to 192.168.7.7:8011 /sbin/ipta…
-
Centos7 with MYSQL8 root 密碼的置換
CentOS7 重置 MySQL 8.0 密碼 安裝完成後 MySQL會給我們自動生成一個隨機密碼 檢視命令如下: grep 'temporary password' /var/log/mysqld.log 因為自動的生成的密…
-
C# mqtt 是可以自建topic 不需要server
如題 所以只要有SERVER PORT 也開好之後. 就能自己連線 如圖. Project_Name 改變就能用了. 【當…
-
Centos7 Mosquitto install totorua
yum install mosquitto cd /etc/mosquitto cp pwfile.example pwfile mosquitto_passwd -c /etc/mosquitto/pwfile seven …
-
C# M2Mqtt函式庫安裝
於套件管理器主控台貼上安裝指令:Install-Package M2Mqtt 就可以使用 using uPLibrary.Networking.M2Mqtt; using uPLibrary.Networking.M2Mqtt.Messag…
-
Datagridview.Rows.Add 一次性加入陣列
string[] fileLine = File.ReadAllLines(textBox1.Text); 把每列讀進來. ex: xxx,1476,,,921,動中心,黨員 &…
-
GPS 度分秒 and 度(double形態) 互換
當浮球取得位置時我們需要換成GOOGLE MAP 認得的資料 Source from mysql 的數據 2417.2620N 12030.9700E 先轉成度分秒 latitude : 2417.26…
-
C# 指定Administrator來執行process start
SecureString password = ConvertStringToSecureStrin…
-
5分鐘架設OpenVPN伺服器 CentOS 7.0 Set Up OpenVPN Server In 5 Minutes [轉貼]
CentOS 7.0 Set Up OpenVPN Server In 5 Minutes last updated July 13, 2019 in CategoriesCentOS, Linux,…
-
C# Process.Start()方法詳解[轉貼]
Sstat 字符串 檔案 atd 一個 用戶名 菜單 簡單介紹 run System.Diagnostics.Process.Start(); 能做什麽呢?它主要有以下幾個功能: 1、打開某個鏈接網址(彈窗)。 2、定位打開某…
-
[Mysql8] root登入後沒有權限建立 & 使用舊認證方式登入
首先新的phpadmin登入時發現 caching_sha2_password以及另一個. 代表新的驗證取代了舊有的方式. 等一下我們會談到怎麼登入. 當發現root登入後不能建立新資料庫。代表權限的設…
-
win7改成簡體版手動流程
如果沒有出現"安裝及解除語言"選項,就要用修改的 = =+ 注意本篇為測試 Windows 7 SP1 語言系統,不具備教學意義,僅為整理心得分享使用ψ(._. )> 筆記 請了解修改 Windows 7 SP1 系統語言…
-
android8 撥話 的寫法
Button按鍵 try { if (Build.VERSION.SDK_INT < 23) { phoneCall(); } else { if (ActivityCompat.checkSelfPermission(MainAct…
-
[mysql]錯誤修正-The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
grant all on *.* to root@'localhost' identified by 'password'; flush privileges;
-
centos7.5 安裝mysql (不是mariadb) 之後mysql_secure_installation 無法建立root密碼
mysql_secure_installation 失敗之後. 請先關閉mysqld systemctl stop mysqld 然後輸入本串 systemctl set-environment MYSQLD_OPTS="--skip-gr…
-
centos7.5 無法順利安裝 webmail ( php-pdo or dom 導致ssl 失敗)
把php5.* 移除. 昇級到php7 再加上有的沒的資料庫就完成了 ... 不然php-pdo dom 會破壞掉ssl . 即使重裝也是壞的.
-
[Linux] 指令- 找port 然後kill -9
lsof -wni tcp:xxxxxx 找出 PID kill -9 PID
-
[流量監控] monitorix
CentOS7: https://www.monitorix.org/downloads.html # yum install monitorix # yum install epel-release # yum…