- Jul 06 Tue 2021 15:37
-
將 apache access log 另外以日期格式儲存
- Jun 29 Tue 2021 11:24
-
台式涼拌小黃瓜DIY
- Jun 21 Mon 2021 15:56
-
在 MacOS 新增 static route
假設往 192.168.10.0/24 要改走 192.168.20.253 路由出去
在macos 下如果要調整 static route 的語法如下
sudo route -n add -net 192.168.10.0/24 192.168.20.253
檢查剛剛設定的route 有沒有成功
netstat -rn
在macos 下如果要調整 static route 的語法如下
sudo route -n add -net 192.168.10.0/24 192.168.20.253
檢查剛剛設定的route 有沒有成功
netstat -rn
- Jun 11 Fri 2021 15:52
-
解決 mysql stored procedure 無執行權限問題

錯誤訊息:
[Fri Jun 11 13:48:51 2021] [error] [client xx.xx.xx.xx] FastCGI: server "/usr/local/sbin/php-fpm" stderr: PHP message: PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1370 execute command denied to user 'user1'@'192.168.0.%' for routine 'mydatabase1.myprocedure1'' in /var/www/html/xxx.php:88, referer: http://myip.pass.tw/example.php
解決方式:
GRANT EXECUTE ON PROCEDURE mydatabase1.myprocedure1 TO 'user1'@'192.168.0.%';
flush privileges;
- Jun 03 Thu 2021 16:17
-
如何ssh登入遠端 Linux 免輸入密碼

情境
server-1 不用輸入密碼遠端登入 server-2
1. 在sever-1 執行以下程式
[demo@server-1 ~]$ ssh-keygen
Generating public/private rsa key pair.
- May 14 Fri 2021 11:16
-
解決 mysql 5.7 無法備份舊版 mysql 問題

# mysqldump -h 10.1.1.100 -u root -p mydb
Enter password:
-- MySQL dump 10.13 Distrib 5.7.xx-xx, for Linux (x86_64)
--
-- Host: 10.1.1.100 Database: mydb
-- ------------------------------------------------------
-- Server version 5.0.xx-log
- May 06 Thu 2021 16:19
-
CentOS 安裝 nfs server

1. 安裝 nfs-utils 套件
[root@example test]# yum -y install nfs-utils
2. 依需求編輯 /etc/exports 設定檔
[root@example test]# vi /etc/exports
/home/backup 192.168.1.100 (rw,async,no_root_squash)
/tmp 192.168.1.55(rw,sync)
- May 05 Wed 2021 15:49
-
ubuntu 20.04 安裝 open ssh server
$ sudo apt install openssh-server
安裝完後測試使用 putty 等 clinet 工具登入
但如果出現以下錯誤訊息
Couldn't agree a key exchange algorithm (available: ecdh-sha2-nistp256, ......
安裝完後測試使用 putty 等 clinet 工具登入
但如果出現以下錯誤訊息
Couldn't agree a key exchange algorithm (available: ecdh-sha2-nistp256, ......
- May 04 Tue 2021 10:09
-
2021愛T恤 一人衣愛助兒盟
- May 03 Mon 2021 17:11
-
解決 proxypass 的 backend 如果是 https 網址無法顯示問題
如果 apache proxypass 的 backend 是 https 網址的話
ProxyPass / https://backend.pass.tw/test.html
ProxyPassReverse / https://backend.pass.tw/test.html
ProxyPass / https://backend.pass.tw/test.html
ProxyPassReverse / https://backend.pass.tw/test.html
- May 03 Mon 2021 13:56
-
解決 CentOS /RHEL 找不到 showmount 指令

# 最小安裝預設沒有安裝 showmount 指令
[root@example ~]# showmount -e nas
-bash: showmount: command not found
# 安裝 nfs-utils 套件
[root@example ~]# yum install nfs-utils
Last metadata expiration check: 0:49:59 ago on Mon 03 May 2021 01:03:19 PM CST.
Dependencies resolved.
========================================================================================
Package Architecture Version Repository Size
========================================================================================
Installing:
nfs-utils x86_64 1:2.3.3-35.el8 baseos 494 k
Installing dependencies:
gssproxy x86_64 0.8.0-16.el8 baseos 118 k
keyutils x86_64 1.5.10-6.el8 baseos 63 k
libverto-libevent x86_64 0.3.0-5.el8 baseos 16 k
python3-pyyaml x86_64 3.12-12.el8 baseos 193 k
quota x86_64 1:4.04-10.el8 baseos 214 k
quota-nls noarch 1:4.04-10.el8 baseos 94 k
rpcbind x86_64 1.2.5-7.el8 baseos 70 k
- Apr 06 Tue 2021 15:18
-
修正 mysql replication 同步失敗



