2012年10月6日 星期六
開機執行(command OR script)
http://blog.xuite.net/misgarlic/weblogic/37343210-%E9%96%8B%E6%A9%9F%E4%B9%8B%E5%BE%8C%E5%9F%B7%E8%A1%8C%E6%9F%90%E4%BA%9B+scripts
在 ubuntu 上是要改 /etc/rc.local 這個檔
(1) /etc/rc.local
這個檔案就放一些你想要執行的 command, scripts
2012年8月30日 星期四
複製備份資料夾指令:cp -r
關鍵字:
win shell copy directory
網址:
http://commandwindows.com/xcopy.htm
XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W]
[/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U]
[/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z]
[/EXCLUDE:file1[+file2][+file3]...] /E
Copies directories and subdirectories, including empty ones.
Same as /S /E. May be used to modify /T.XCOPY source /E關鍵字:
ubuntu cp directory
網址:
http://askubuntu.com/questions/35779/what-does-cp-omitting-directory-mean
內容:
By default,
cp copies only the direct files in, and not subdirectories in the directory. The message cp: omitting directory 'directory' warns you that the mentioned directory is not copied.To do so, specify the
-r (or --recursive) option:sudo cp -r ~/Transfers/ZendFramework-1.11.4-minimal/library/Zend/* ~/public_html/cmsk.dev/library/
2012年8月29日 星期三
xampp ubuntu 開機時自動啟動
xampp ubuntu 開機時自動啟動
ubuntu server (startup OR boot)xampp
http://ubuntuforums.org/showthread.php?t=1584852
1) Navigate to /etc/init.d
eg '
cd /etc/init.d/
'
2) Create a new file with nano eg 'nano'
sudo vi startup_lampp
3) Put the following into the file
#!/bin/sh
/opt/lampp/lampp start
4) Give execution permission to the file
eg '
sudo chmod +x startup_lampp
'
5) Check this by typing 'ls -l lampp' , the filename should be green if it worked
6) now use the following command to add it to startup runlevels
'
update-rc.d -f startup_lampp defaults
sudo update-rc.d -f startup_lampp defaults
'
2012年8月27日 星期一
安裝 xampp 到 64 bit ubuntu
sudo tar xvfz download.php?xampp-linux-1.8.0.tar.gz -C /opt
我遇到一個問題:安裝 xampp 到 64 bit ubuntu
所以我使用以下的關鍵字:
64 bit ubuntu xampp
google 到一個網頁:
http://preprocess.me/how-to-run-xampp-on-64-bit-linux
網頁中看到了一個指令:sudo apt-get install ia32-libs指令執行結果:xampp 順利執行了
訂閱:
文章 (Atom)