The Day Of 20070427
时间:2007-04-27 来源:heamon
一:查看某端口是否被占用:
1.netstat -tnlp | grep :21 二:crontab 一php 程序:
1.normal:
wget /www/a.php 即ok
2.corps if want to run in crontab
需要桌面环境的:
#bin/sh export DISPLAY=":0.0" mozilla http://www.xxx.com/a.php
mozilla 需要有 X 环境,X环境需要抓DISPLAY的变量来显示,但是 cron 这类背景 daemon没有这一变量 三:关于mysql search 支持最小长度
通过更改my.cnf中的 ft_min_word_len
标准写法:set-variable = ft_min_word_len=2
可以在sql中通过 show variables; 查看其对应的值 杀掉某服务的所有进程: 1.killall rsync pkill rsync killall -9 rsync 2.ps -efww|grep rsync|grep -v grep|cut -c 9-15|xargs kill -9 挂载移动硬盘: 1.插入
2.fdisk -l 看一下硬盘情况 为hda 还是 sdb
3.进入/mnt mkdir 一目录
然后:mount /dev/sda1 /mnt/yourdir
1.netstat -tnlp | grep :21 二:crontab 一php 程序:
1.normal:
wget /www/a.php 即ok
2.corps if want to run in crontab
需要桌面环境的:
#bin/sh export DISPLAY=":0.0" mozilla http://www.xxx.com/a.php
mozilla 需要有 X 环境,X环境需要抓DISPLAY的变量来显示,但是 cron 这类背景 daemon没有这一变量 三:关于mysql search 支持最小长度
通过更改my.cnf中的 ft_min_word_len
标准写法:set-variable = ft_min_word_len=2
可以在sql中通过 show variables; 查看其对应的值 杀掉某服务的所有进程: 1.killall rsync pkill rsync killall -9 rsync 2.ps -efww|grep rsync|grep -v grep|cut -c 9-15|xargs kill -9 挂载移动硬盘: 1.插入
2.fdisk -l 看一下硬盘情况 为hda 还是 sdb
3.进入/mnt mkdir 一目录
然后:mount /dev/sda1 /mnt/yourdir
相关阅读 更多 +