在安裝或更新wordpress插件時,時有出現”cURL error 28: Connection timed out”,請檢視以下幾點﹕
1. 是否已使用最新的php及cURL
2. 嘗試增加系統記憶體及上載大小設定
3. 檢查/etc/hosts,直接加入download.wordpress.org的DNS
在安裝或更新wordpress插件時,時有出現”cURL error 28: Connection timed out”,請檢視以下幾點﹕
1. 是否已使用最新的php及cURL
2. 嘗試增加系統記憶體及上載大小設定
3. 檢查/etc/hosts,直接加入download.wordpress.org的DNS
Warning in ./libraries/plugin_interface.lib.php#532
count(): Parameter must be an array or an object that implements Countable
的錯誤
解決方法如下:
修改 plugin_interface.lib.php
位置是:/usr/share/phpmyadmin/libraries/plugin_interface.lib.php
行數是532,原始code如下:
if ($options != null && count($options) > 0) {
將其修改為
if ($options != null && count((array)$options) > 0) {
即可解決
若出現sql.lib.php#601出錯﹕
用nano编辑 sql.lib.php
sudo nano /usr/share/phpmyadmin/libraries/sql.lib.php
按CTRL+ W 搜索 (count($analyzed_sql_results[‘select_expr’] == 1)
替换为 ((count($analyzed_sql_results[‘select_expr’]) == 1)
Step 1:
sudo apt-get install cifs-utils
Step 2:
sudo mkdir /mnt/local_share
Step 3:
sudo mount -t cifs //vpsa_ip_address/export_share /mnt/local_share
備註:export_share不是路徑,是共享的資料夾名稱。
若要開機自動掛載,在客戶端/etc/fstab下,加入下列一句﹕
//vpsa_ip_address/export_share /mnt/local_share cifs rw,x-gvfs-show,user
在Linux mint安裝samba伺服器,與windows 10分享檔案。
在Linux上安裝samba server
sudo apt-get install samba
編輯/etc/samba/smb.conf
使用nano作文字編輯器﹕
sudo nano /etc/samba/smb.conf
在檔案最後端加上﹕
security = share
[share]
comment = share
path = /home/yourname/yourfolder
available = yes
browsable = yes
public = yes
writable = yes
create mask = 0777
儲存後退出,(^O ^W)
將分享的資料夾,設定為nobody:nogroup及權限為0777
sudo chown -R nobody:nogrpup /home/yourname/yourfolder
sudo chown -R 777 /home/yourname/yourfolder
重啟samber server
sudo service smbd restart
開啟windows 10在網絡中便可以使用共享的資料夾
首先要將blueberry解除安裝
apt-get remove blueberry
然後安裝blueman
apt-get install blueman
若要配對手機為例,打開手機的藍牙,掃描裝置,找到電腦進行配對,同時電腦與手機都要確認配對。
Drupal在維讛模式中意外登出,如何解決不能登入,方式如下﹕
https://yoursite.com/?q=user/login
便可以鍵入賬號及密碼登入。
Windows 10 自2017年起不支援SMB1,使Windows 10不能進入比較老舊的NAS,或由Linux經Smaba分享出來的資料夾或檔案。
最簡單的解決方法﹕
按Windows键 + R,在對話匣中鍵入 “optionalfeatures”,將全部SMB1.0 全選所有選項。
在Liunx方面,如Linux Mint先要安裝Samba,若資料夾的沒有分享選項,要安裝caja-share。
sudo apt-get install samba
sudo apt-get install caja-share