新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
php后臺服務(wù)防止交叉執(zhí)行
sudo mkdir /alidata/www/office/orderlog/
sudo chown www:www /alidata/www/office/orderlog/ -R
sudo chmod 777 /alidata/www/office/orderlog/ -R
sudo vim /alidata/www/office/allocate_order.sh
創(chuàng)新互聯(lián)建站主要從事成都網(wǎng)站制作、網(wǎng)站設(shè)計、網(wǎng)頁設(shè)計、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務(wù)。立足成都服務(wù)樂業(yè),十年網(wǎng)站建設(shè)經(jīng)驗,價格優(yōu)惠、服務(wù)專業(yè),歡迎來電咨詢建站服務(wù):18982081108
#!/bin/bash count=`ps aux|grep 'hh/auto-process-order'|grep -v 'grep'|wc -l` if [ 0 == ${count} ];then orderlog_dir=/alidata/www/office/orderlog/`date +%y%m%d`/ orderlog_file=${orderlog_dir}`date +%H` if [ ! -d ${orderlog_dir} ]; then mkdir -p ${orderlog_dir} fi if [ ! -f ${orderlog_file} ]; then touch ${orderlog_file} fi /alidata/server/php/bin/php /alidata/www/office/yii hh/auto-process-order >> ${orderlog_file} fi
sudo chown www:www /alidata/www/office/allocate_order.sh
crontab -e
*/1 * * * * /alidata/www/office/allocate_order.sh
網(wǎng)頁標題:php后臺服務(wù)防止交叉執(zhí)行
文章源于:http://fisionsoft.com.cn/article/picojs.html