linux 查看网段内所有IP
方法一: 如果没有下载nmap , 需要先下载nmap 软件 [crayon-6810d13a5b9… 继续阅读 linux 查看网段内所有IP
方法一: 如果没有下载nmap , 需要先下载nmap 软件 [crayon-6810d13a5b9… 继续阅读 linux 查看网段内所有IP
情景: 有两台服务器,A服务器可以访问外网也可以访问B服务器, B服务器只可以访问A服务器(不可以访… 继续阅读 使用网络代理实现上网
Ubuntu安装ifconfig工具 [crayon-6810d13a5bfa2378980155/… 继续阅读 Ubuntu安装ifconfig工具
报错提示: PHP Fatal error: Maximum execution time of 3… 继续阅读 debian修改PHP因为执行时间太长,报500错误
1 2 3 4 5 6 7 8 9 10 |
1. 查看时间 date; 2. 查看硬件时间 hwclock 3. 修改时间 date -s “要修改的时间” 4. 修改硬件时间 hwclock -w 5. 同步硬件时钟(hwclock)到系统时间(date): hwclock <span class="token parameter variable">--hctosys</span> 6. 同步系统时间(date)到硬件时钟(hwclock): hwclock <span class="token parameter variable">--systohc </span> |
1 |
history |
1 |
free -m |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
#!/bin/bash outdir=/home/files ip=${REMOTE_ADDR} dir=`date +%Y%m` time=`date +%Y%m%d%H%M%S` file=`date +%Y%m%d%H%M%S`_$ip.pdf file2=`date +%Y%m%d%H%M%S`_$ip.txt file3=`date +%Y%m%d%H%M%S`_$ip.raw mkdir -p $outdir/$dir cp $1 /tmp/file3 mv $1 $outdir/$dir/$file if [ "`file ${SPOOLFILE} | grep 'ostScript'`" ] ; then pdftotext $outdir/$dir/$file $outdir/$dir/$file2 else cp ${SPOOLFILE} $outdir/$dir/$file3 fi chmod -R 777 $outdir/$dir #cp ${SPOOLFILE} $outdir/$dir/$file3 mysql -uwater -p111111 water -e"insert into pdf set `file`='$dir/$file',`ip`=INET_ATON('$ip')" cp ${SPOOLFILE} /tmp/1.ps |
注: -uwater 是数据库用… 继续阅读 lims_cups_pdf.sh文件下内容
Linux下cups打印服务配置文件cups-pdf.conf [crayon-6810d13a5d… 继续阅读 Linux下cups打印服务配置文件cups-pdf.conf