原创 solr服務查看、啓動、停止

查看 狀態命令:/etc/init.d/solr status 重啓命令:/etc/init.d/solr restart 停止命令:/etc/init.d/solr stop

原创 windows下nginx支持https

nginx下載地址:http://nginx.org/en/download.html openssl下載地址:http://slproweb.com/products/Win32OpenSSL.html 官網地址:https

原创 解決laravel5中auth用戶登錄其他頁面獲取不到登錄信息的問題

今天小編就爲大家分享一篇解決laravel5中auth用戶登錄其他頁面獲取不到登錄信息的問題,具有很好的參考價值,希望對大家有所幫助。一起跟隨小編過來看看吧 首先創建user表,裏面有:id, name, pass

原创 sublime text 3使用格式化代碼插件CodeFomatter時報錯 PHP Deprecated: The each() function is deprecated.

##問題描述 sublime text 3使用Ctrl+Alt+f快捷鍵對代碼格式化的時候報錯如下: CodeFomatter Format error: PHP Deprecated: The each() function i

原创 Sublime text 3格式化代碼插件psr2風格

常用的格式化插件有CodeFomatter 和 phpfmt,個人更喜歡CodeFormatter一點兒。 ##安裝: 1、Ctrl+Shift+P,輸入CodeFormatter,然後回車,即可安裝。 ##配置: 1、Prefe

原创 git revert 撤銷合併(commit)

問題描述 有三個分支:master、develop、debug develop分支合併了修復bug的debug分支的內容,develop上又因爲開發等原因產生了幾個新的commit,然後將develop分支合併到master進行上線,

原创 php實現redis消息隊列將數據保存到mysql

需求: 將消息先保存到redis,然後將redis中的數據定時保存到mysql中 分析: redis保存爲list,然後使用系統的定時任務調用腳本程序,通過腳本調用php文件進行處理。 windows腳本(live.bat): "D:

原创 從遠程分支獲取代碼到本地

Command line instructions Git global setup git config --global user.name "leedaning" git config --global user.email "le

原创 php+nginx+mysql環境配置windows

之前一直使用的集成環境phpStudy,但是cakephp需要使用php的intl擴展,不知道怎麼回事兒集成環境裏不能使用,只好自己手動搭建環境來使用了。 準備工作如下: nginx下載地址:http://nginx.org/en/do

原创 Linux實現使用定時任務執行php程序(以及定時任務url帶參數)

php程序已經寫好了,位置:/data/html/XXX/redis_to_mysql.php,php安裝位置爲:/app/bin/php, 查找php安裝位置使用 whereis php which php php -v

原创 查看YII版本

Yii中查看框架的版本用:echo Yii::getVersion(); Author:leedaning 本文地址:http://blog.csdn.net/leedaning/article/details/78403302

原创 Thinkphp 2.0 路由模式

ThinkPHP的訪問模式分爲四種模式 0 普通模式 http://www.leedaning.com/index.php?m=user&a=show 1 pathinfo模式 http://www.leedaning.com/index

原创 Call to undefined method Illuminate\Foundation\Application::bindShared()

照之前的方法composer一個叫illuminate/html的Package,使用中發現不能用,並且composer update的時候會拋出錯誤: [Symfony\Component\Debug\Exception\FatalEr

原创 php擴展下載

下載地址:https://windows.php.net/downloads/pecl/releases/ Author:leedaning 本文地址:https://blog.csdn.net/leedaning/article/de

原创 https頁面打不開

問題:在手機微信客戶端內置瀏覽器打開https網址空白,但是在微信PC客戶端內置瀏覽器和其他PC瀏覽器、手機瀏覽器都可以打開(後來才發現打開的時候是不受瀏覽器信任的) 環境:windows+nginx+微信(PC、手機) 原因:網站服務器