undefined
範例:
    CustomLog       /var/log/httpd/access_log.web1 combined

helloworld 發表在 痞客邦 留言(0) 人氣()

IMG_7963
材料: 首先備好小黃瓜和食鹽
調味料: 糖、香油、白醋、蒜泥
首先將小黃瓜洗淨、切片
加入食鹽混和均勻好讓他待會可以脫水
放進冰箱靜置約30分鐘後,瀝乾水分

helloworld 發表在 痞客邦 留言(1) 人氣()

假設往 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
 

helloworld 發表在 痞客邦 留言(0) 人氣()

undefined
錯誤訊息:
[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;

helloworld 發表在 痞客邦 留言(0) 人氣()

undefined
情境
server-1 不用輸入密碼遠端登入 server-2 
1. 在sever-1 執行以下程式
[demo@server-1 ~]$ ssh-keygen
Generating public/private rsa key pair.

helloworld 發表在 痞客邦 留言(0) 人氣()

undefined
# 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

helloworld 發表在 痞客邦 留言(0) 人氣()

undefined
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)

helloworld 發表在 痞客邦 留言(0) 人氣()

$ sudo apt install openssh-server
安裝完後測試使用 putty 等 clinet 工具登入
但如果出現以下錯誤訊息
Couldn't agree a key exchange algorithm (available: ecdh-sha2-nistp256, ......

helloworld 發表在 痞客邦 留言(0) 人氣()

博客來 2021愛T恤 一人衣愛助兒盟
2021愛T恤... 愛心大使 陳昊森
一人衣愛助兒盟12周年
贈原燒350元愛心折抵券乙張 
2021/05/04 開賣,限量4萬件,售完為止

helloworld 發表在 痞客邦 留言(0) 人氣()

如果 apache proxypass 的 backend 是 https 網址的話
ProxyPass / https://backend.pass.tw/test.html
ProxyPassReverse / https://backend.pass.tw/test.html

helloworld 發表在 痞客邦 留言(0) 人氣()

undefined
# 最小安裝預設沒有安裝 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

helloworld 發表在 痞客邦 留言(0) 人氣()

undefined
如果懶得查 log 到底是哪一筆 commit 出錯
可以用以下懶人排除法
SLAVE STOP;

helloworld 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。