原创 兩種方式創建你自己的 Docker 基本映像

兩種方式創建你自己的 Docker 基本映像https://linux.cn/article-5427-1.html

原创 忘記mysql密碼解決方法

解決方法:1、停止mysql進程# /etc/init.d/mysql stop執行後輸出:Stopping MySQL database server: mysqld.2、安全模式啓動mysql,跳過授權表# mysqld_safe --

原创 rsync

#rm -rf $otpath#mv  $otpath_tmp  $otpath/usr/local/bin/rsync --delete -avz ${otpath_tmp}/  ${otpath}/ 

原创 JS循環PHP數組

PHP:<?php $info = ['name'=>'xxx', 'age' => 10, 'number' => 191314]; echo json_encode($info); ?>js<script type="text/java

原创 rsync

#rm -rf $otpath#mv  $otpath_tmp  $otpath/usr/local/bin/rsync --delete -avz ${otpath_tmp}/  ${otpath}/ 

原创 Sphinx搜索結果分頁total和total_found的區別

關於max_matches,sphinx.conf配置默認值爲1000,舉個粟子,一次搜索中實際2000個匹配,但是sphinx搜索結果只會返回1000個,因爲受到max_matches的限制,此時total=1000,total_foun

原创 http referrer,https request http conent,mix content

臨時解決方法,頁面頂部添加<meta content="always" name="referrer">支持chrome,safari瀏覽器

原创 在sphinx中處理使用特殊字符時所引起錯誤的辦法

    用sphinx搜索引擎時,有時會遇到一些特殊字符,這些特殊字符可能會是sphinx致命性錯誤來源:如 “$”、“^”,在sphinx搜索關鍵字的最前或最尾出現這樣的字符時(單獨使用也一樣),就會導致sphinx致命的錯誤。例如用“$