使用linux 內建指令做排程
[at] 指定時間一次性執行工作
[cron] 循環式排程
1. 如何管理可使用at 的名單
quantum2nd 發表在 痞客邦 留言(0) 人氣(6)
1. 用terminal 重新啟動apache
sudo apachectl restart
2. safari 網址輸入localhost
無法啟動?
quantum2nd 發表在 痞客邦 留言(0) 人氣(3)
w1. 用附件方式email 轉檔
1. 寄到username@kindle.com with title: Convert
2. 在kindle device 上 按 sync & check for itmes , 要開wireless
quantum2nd 發表在 痞客邦 留言(0) 人氣(2)
如果打ifconfig,service等等指令 卻出現
ifconfig: command not found
service:command not found
有可能是PATH 設定跑掉
quantum2nd 發表在 痞客邦 留言(0) 人氣(0)
當使用yum 時出現下列錯誤
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
quantum2nd 發表在 痞客邦 留言(0) 人氣(45)
Q1.
syntax error near unexpected token `('
S1: 找到相對的那一行
set path= ( $HOME/bin $path)
quantum2nd 發表在 痞客邦 留言(0) 人氣(1)
* change to tcsh for login
chsh -s /usr/bin/tcsh
* change to bash for login
chsh -s /bin/bash
* check which shell do you use when you login?
vi /etc/passwdd
* change shell to csh now
csh
* change shell to bash now
bash
* check which shell do you use now?
echo $shell
echo $SHELL
REFERENCEquantum2nd 發表在 痞客邦 留言(0) 人氣(4)
php 換行跟html一樣 使用 <br>
<?php
$fn=fopen("test.txt",w);
quantum2nd 發表在 痞客邦 留言(0) 人氣(4)
$str="Have a good day!"
1. "" :會取代變數
echo "$str<br>"
Have a good day!
quantum2nd 發表在 痞客邦 留言(0) 人氣(0)
Q1.有時候yum install pkgname , pkgname是對的 但是就是找找不到對應的ftp去download? (reference)
rpm 一個pkg安裝是有相依性的, 也就是說裝某個pkg A前可能需要先裝其他的pkg之後才能順利安裝, 而安裝pkg A所需要的相依pkg 會寫在header,
然後repo 給一個對照表, 哪個pkg 要去哪個ftp抓, 所以如果是找不到相對應的ftp, 就需要update 一下 repo
quantum2nd 發表在 痞客邦 留言(0) 人氣(25)