[root@example ~]# killall sftp
-bash: killall: command not found
[root@example ~]# yum -y install  psmisc
Loaded plugins: fastestmirror
varnishcache_varnish5/x86_64/signature                                                         |  836 B  00:00:00
varnishcache_varnish5/x86_64/signature                                                         | 1.0 kB  00:00:00 !!!
varnishcache_varnish5-source/signature                                                         |  836 B  00:00:00
varnishcache_varnish5-source/signature                                                         | 1.0 kB  00:00:00 !!!
Loading mirror speeds from cached hostfile
 * base: ftp.stu.edu.tw
 * epel: mirror01.idc.hinet.net
 * extras: ftp.stu.edu.tw
 * updates: ftp.stu.edu.tw
No package install available.
Resolving Dependencies
--> Running transaction check
---> Package psmisc.x86_64 0:22.20-15.el7 will be installed
---> Package yum.noarch 0:3.4.3-154.el7.centos will be updated
---> Package yum.noarch 0:3.4.3-154.el7.centos.1 will be an update
--> Finished Dependency Resolution

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

undefined
檢查iptables 狀態
systemctl status firewalld
手動關閉 iptables
systemctl stop firewalld

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

CentOS 網卡限速
CentOS 7 預設裝有iproute 套件
可以用其中的tc 指令來達到網卡限速的目的

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

undefined
愛心大使-張軒睿-2018愛T恤 | 一人衣愛助兒盟10周年
http://www.books.com.tw/exep/assp.php/es/fashion/activity/2018/02/lovekids/
認購愛T送原燒五折券+升級券,【早鳥優惠】3月份到店使用5折券再送松阪豬一份

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

如果檢查http的錯誤訊息出現
/home/website/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
請檢查 httpd.conf
LoadModule rewrite_module libexec/apache24/mod_rewrite.so
是否有把# 拿掉
重新啟動apache 即可生效
apachectl restart
 

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

undefined
以下內容轉載自博客來網站,活動辦法以網站公告為主
http://www.books.com.tw/exep/assp.php/es/activity/2018/02/fet/
活動期間: 2018/2/6 ~ 2018/2/28

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

curl -G --data-urlencode "a=1 1 1" --data-urlencode "b=2 2 2"  https://servername/test.php
man curl
       -G, --get
              When  used,  this  option  will make all data specified with -d,
              --data, --data-binary or --data-urlencode to be used in an  HTTP
              GET  request instead of the POST request that otherwise would be
              used. The data will be appended to the URL with a '?' separator.

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

從varnish 4.x 以後設定檔有大幅度的改變
如果不想一行一行debug 的話,可以使用這個方便的工具
https://github.com/fgsch/varnish3to4
節錄文章的內容

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

sudo yum install pygpgme yum-utils
vi /etc/yum.repos.d/varnishcache_varnish5.repo

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

undefined
如果要搜尋一個欄位裡面有沒有特定關鍵字
常用的sql語法是
select id from books where title like '%快快樂樂學%';
聽說有幾個替代語法效能會比較好
1. SELECT id from books where instr(title,'快快樂樂學')>0;

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


以往如果要修改FreeBSD 除了修改 /etc/rc.conf 之外
還有一個好用的命令 sysinstall
但新版FreeBSD 已經用 bsdconfig 及 bsdinstall 取代了

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

undefined
varnish 是一套效能不錯的reverse proxy server 
但美中不足的,他不支援https
所以如果要讓網站同時支援https , 就必須要另外加裝其他套件來做 ssl termination 的角色
以下範例是利用nginx 來當 ssl termination
cd /etc/nginx/ssl
cat STAR_pass_tw.crt COMODORSADomainValidationSecureServerCA.crt COMODORSAAddTrustCA.crt AddTrustExternalCARoot.crt > pass.tw.bundle.crt

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

Blog Stats
⚠️

成人內容提醒

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

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