透過smbpasswd 指令可以建立samba 使用者並設定密碼
[root@smbsrv samba]# smbpasswd -a test
New SMB password:
Retype new SMB password:
Failed to add entry for user test.

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

undefined
安裝 percona-release-lastest.noarch.rpm
[root@pxc57 ~]# yum install 'https://repo.percona.com/yum/percona-release-latest.noarch.rpm'
看看提供哪些套件
[root@pxc57 ~]# sudo yum list | grep percona

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

Nortel Alteon Radware Offload
在一個現有的網站架構下,我們可能不方便再調整 web server 的架構
但又想讓網站服務支援https 的話
可以利用 alteon/radware  的 SSL Offload 功能來實現
1. 匯入金鑰及憑證
匯入金鑰及憑證時建議使用web管理介面會比較好操作
Configuration -> Application Delivery -> Application Services -> SSL -> Certificate Repository

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

undefined
comodo 憑證核發的信件中,會有一個zip 壓縮檔附件
裡面會有包含以下幾個檔案
Root CA Certificate - AddTrustExternalCARoot.crt
Intermediate CA Certificate - COMODORSAAddTrustCA.crt
Intermediate CA Certificate - COMODORSADomainValidationSecureServerCA.crt
Your PositiveSSL Wildcard Certificate - STAR_example_com.crt
Apache:
1. mkdir -p /usr/local/etc/apache22/ssl/example.com/
2. 將所有檔案連同之前產生的 key 複製到該資料匣
3. cat COMODORSADomainValidationSecureServerCA.crt COMODORSAAddTrustCA.crt AddTrustExternalCARoot.crt > ssl-bundle.crt
4. 編輯apache 設定檔
SSLCertificateFile /usr/local/etc/apache22/ssl/example.com/STAR_example_com.crt
SSLCertificateKeyFile /usr/local/etc/apache22/ssl/example.com/example.com.key
SSLCertificateChainFile /usr/local/etc/apache22/ssl/example.com/ssl-bundle.crt
5. 重啟apache
apachectl restart

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

undefined
情境:
當目的ip 為 192.168.50.0/24 的時候,不走default route,改經由eth1 到 192.168.10.254
編輯 /etc/sysconfig/network-scripts/route-eth1

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

undefined
<?php
function microtime_float()
{
    list($usec, $sec) = explode(" ", microtime());
    return ((float)$usec + (float)$sec);
}

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


為了讓使用者可以加速下載網頁,加上台灣流量不便宜
我們可以在伺服器上做壓縮網頁的處理
如果要測試你的網站有沒有壓縮過
可以利用以下的網站
http://www.gidnetwork.com/tools/gzip-test.php

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

undefined
之前試用過其他的吸盤,但是效果不是很理想
餐椅也坐了幾分鐘就坐不住了
但是測試 Calibowl 吸盤碗 + 費雪小餐椅 這個組合真的可以牢牢吸住,不怕小寶貝會突然把食物打翻一地
現在已經可以陪伴大人穩定的吃完一餐
真心推薦給開始餵副食品,或是寶寶已經在自己學吃飯的爸媽

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


FreeBSD:
# cd /usr/ports/ftp/tftp-hpa/
# make install clean

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


條件
tls 1.2 以上 , apache 2.4.17 以上
安裝 apache2.4 時記得一併安裝HTTP2 模組

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

apache 出現以下錯誤訊息
[error] Oops, no RSA or DSA server certificate found for 'xxx.xxx.xxx:0'?!
檢查vhost 裡面是否有
SSLEngine On
如果沒有的話,補上再試試

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


yum -y install wondershaper
使用語法
Usage: /sbin/wondershaper [device] clean|[upload speed in Kb/s] [download speed in Kb/s]
Example: /sbin/wondershaper eth0 20 500

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

Blog Stats
⚠️

成人內容提醒

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

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