原创 windows 使用 nginx 命令報錯: nginx: [emerg] CreateFile() logs/nginx.pid

系統: win7 nginx:  1.17.10 命令行客戶端: 安裝 git 時的命令行客戶端(mingw) 在使用 命令行啓動時, 報如下錯誤:   我使用的解決方案:   1. 在 nginx 的目錄下創建一個 nginx.sh

原创 windows Probably xdebug.remote_host=docker.for.win.localhost is incorrect

系統: win7 在使用 phpstorm + docker 進行 cli debug 時, 報 windows Probably 'xdebug.remote_host=docker.for.win.localhost' is inco

原创 react-native init 項目後出現 unexpected token

在執行 react-native init projectName 初始化項目後, 通過 react-native run-android 初始啓動項目時,出現了 "unexpected token < ......" 的錯誤 我的解決方

原创 seata 註冊 nacos 失敗 ErrMsg:failed to req API:/api//nacos/v1/ns/instance

seata 註冊到 nacos , 在 seata 時報如下錯誤: 2020-04-26 10:55:14.530 ERROR[main]io.seata.server.Server.main:95 -rpcServer init er

原创 servlet 頁面中文亂碼

頁面:    代碼: protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOExceptio

原创 Yii2: Not Found (#404):Unable to find debug data tagged

yii2 開啓 debug 模式在頁面右下角不顯示調度按鈕,並在 控制檯報 Yii2: Not Found (#404):Unable to find debug data tagged ... 時 把 frontend/runtim

原创 ubuntu14.0(linux) 安裝 apache2.4+ 報 apr not found

當我在 ubuntu 安裝 apache2.4, 在編譯的時候,報了 apr not found 的錯誤,可是奇怪的是, apr 已經安裝好的.並且在編譯的時候也指定了 --with-apr=路徑 當出現在這種情況,我是這樣解決的, 到 

原创 linux 安裝 composer 提示 "If possible you should enable it or recompile php with --with-openssl"

在安裝 composer 的時候( 我的系統是 ubuntu ), 出現了 " Some settings on your machine make Composer unable to work pro

原创 mac plugin 'innodb' init function returned error. mariadb

在 mac 用 brew 安裝 mariadb 成功後( 先把原有的 mysql 卸載 ),然後啓動 mysql, 結果報如下的錯: 2017-02-24 22:13:27 140735232917504 [Note] mysqld (

原创 yii2 The file or directory to be published does not exist

在安裝 yii2 後,初始化也弄好,然後直接頁面,報了類似錯誤: The file or directory to be published does not exist 解決方法: 1.把 fxp/composer-asset-plug

原创 react-native ( om.android.support:appcompat-v7:23.0.1.)

react-native init projectName 出現 Could not resolve all dependencies for configuration ':app:_debugCompile'. Could not f

原创 react-native init 項目後出現 unexpected token <

在執行 react-native init projectName 初始化項目後, 通過 react-native run-android 初始啓動項目時,出現了 "unexpected token < ......" 的錯誤 我的解決方

原创 git 從儲藏中創建分支

查看儲藏列表: git stash list 從儲藏中創建分支: git stash branch 分支名稱; 如果要從指定的儲藏中創建分支,則要在最後加一個參數,這個參數就是對應的儲藏標識(stash@{*}): 如: git st