IDW設計工作室
IDW設計工作室
  • 首頁
  • 案例分享
    • Wordpress
    • 客制化設計
  • 服務項目
  • 聯絡我們
    • 住宿
  • 經驗分享
    • php
    • Linux
    • python
    • laravel
    • Mac
    • nas技巧
  • 好物推薦

使用 php composer 出現 PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes)

使用 php composer require phpoffice/phpspreadsheet 出現

PHP Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar

解決方法:

改用 php -d memory_limit=-1 composer require phpoffice/phpspreadsheet 即可解決

參考:

https://getcomposer.org/doc/articles/troubleshooting.md#memory-limit-errors

在Linux底下還原ssh key

打開終端機輸入

ssh-agent bash

再輸入 ssh 檔案的位置

ssh-add /path/ssh-key.pem

會出現要輸入金錀的密碼

Enter passphrase for ssh-key.pem:

然後就會 ssh-key 載入的訊息

Identity added: ssh-key.pem

這樣就可以還原了

參考連結:

https://askubuntu.com/questions/362280/enter-ssh-passphrase-once

 

ubuntu底下使用root登入mysql(mariadb)出現access denied的解決方法

安裝好初次用root登入時,會出現#1698 - Access denied for user 'root'@'localhost'

很順利的找到的解法(原來不是只有我遇到呀(汗

只要先用root的權限登入本機mysql

sudo mysql -u root -p

然後打入

CREATE USER 'pmauser'@'%' IDENTIFIED BY '輸入自訂密碼';
GRANT ALL PRIVILEGES ON *.* TO 'pmauser'@'%' WITH GRANT OPTION;

※pmauser 可自訂

這樣無論是本機使用mysql登入還是phpmyadmin就都可以順利使用囉

參考網址

http://it.givemepower.net/%E9%8C%AF%E8%AA%A4%E8%A8%8A%E6%81%AF%EF%BC%9A1698-access-denied-for-user-rootlocalhost/

https://devanswers.co/phpmyadmin-access-denied-for-user-root-localhost/

卡在Started Gnome Display Manager開機狀態中解決方法

今天開機進 zorin os 的時候

卡在 [OK] Started Gnome Display Manager 的狀態中

started gnome display manager

先按ctrl+alt+F2-F6到任一終端畫面上登入

如無法正常登入 請先進入 recovery mode

如不知如何進 可參考這裡

https://blog.csdn.net/xixihaha331/article/details/64919059

輸入

sudo apt purge nvidia-* -y

再重新開機就可以正常開機了

參考資料:

https://blog.csdn.net/weixin_43860881/article/details/87965708

https://blog.csdn.net/BigData_Mining/article/details/102548368

Vmware開啟出現Could not connect 'Ethernet0' to virtual network '/dev/vmnetx'

在開啟虛擬機時會出現 Could not connect 'Ethernet0' to virtual network '/dev/vmnet0' 之類的錯誤提示訊息

只要打開命令提示字元

輸入 sudo modprobe vmnet && sudo vmware-networks --start

vmware could not connect ethernet0

就可以正常使用了

更多文章...

  1. Vmware啟用時出現could not open vmmon module
  2. 解決Manjaro中文方框
  3. vmware-networks執行錯誤的問題
  4. VMware Kernel Module Updater Error
  • 1
  • 2

第 1 頁 共 2 頁