切換 快速遮色片模式
漸層工具
切換 標準模式
曲線工具 調整反差 (天空拉暗)
選取--> 反轉
曲線工具 調整反差 (地面拉亮)
搜尋此網誌
2012年7月23日 星期一
Socket.IO出現 listen EACCES
資料來源
執行Socket.IO server出現以下錯誤訊息:
info - socket.io started
warn - error raised: Error: listen EACCES
只有root權限才可執行1024以下的port,
所以要碼將http server啟動的port改成超過1024,
或是用sudo啟動node app。
執行Socket.IO server出現以下錯誤訊息:
info - socket.io started
warn - error raised: Error: listen EACCES
只有root權限才可執行1024以下的port,
所以要碼將http server啟動的port改成超過1024,
或是用sudo啟動node app。
無法使用sudo npm
資料來源
使用./configure -> make -> sudo make install安裝node
但是無法下指令像是: sudo npm install -g socket.io
解法:
使用./configure -> make -> sudo make install安裝node
但是無法下指令像是: sudo npm install -g socket.io
解法:
sudo ln -s /usr/local/bin/node /usr/bin/node
sudo ln -s /usr/local/lib/node /usr/lib/node
sudo ln -s /usr/local/bin/npm /usr/bin/npm
sudo ln -s /usr/local/bin/node-waf /usr/bin/node-waf
2012年6月13日 星期三
2012年5月20日 星期日
tree -a
好用的tree -a 指令
list contents of directories in a tree-like format.
-a All files are printed. By default tree does not print hidden files
(those beginning with a dot `.'). In no event does tree print the
file system constructs `.' (current directory) and `..' (previous
directory).
list contents of directories in a tree-like format.
-a All files are printed. By default tree does not print hidden files
(those beginning with a dot `.'). In no event does tree print the
file system constructs `.' (current directory) and `..' (previous
directory).
2012年5月16日 星期三
用cat指令新建檔案
用 cat 建立文件並且輸入內容,
使用指令:
cat > userdoc
就會建立建立文件userdoc
就會建立建立文件userdoc
然後輸入你的文件內容,
結束按ctrl + d 終止輸入,
訂閱:
文章 (Atom)