摘要: Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\Directory\shellex\PropertySheetHandlers][HKEY_CLASSES_ROOT\Directory\shellex\PropertySheetHandlers\Sharing]@="{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}"[HKEY_CLASSES_ROOT\Directory\shellex\PropertySheetHandlers\{1F2E5C40-9550-11CE-99D2-00 阅读全文
posted @ 2013-08-22 13:53 茗迹周 阅读(2171) 评论(1) 推荐(1) 编辑
摘要: 1.nginx日志格式设定log_format access '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" $http_x_forwarded_for';参数说明:$remote_addr 与$http_x_forwarded_for 用以记录客户端的ip地址;$remote_user :用来记录 阅读全文
posted @ 2013-07-28 14:20 茗迹周 阅读(836) 评论(0) 推荐(0) 编辑
摘要: 此脚本只是快速查看所在局域网中其它主机的IP地址,如果对方设置了禁ping,则无法显示出此主机的IP地址:#!/bin/bashfor i in `seq 1 254`do ping -c2 192.168.1.$i &>/dev/null && echo "192.168.1.$i is alive"done 阅读全文
posted @ 2013-07-17 15:26 茗迹周 阅读(1152) 评论(0) 推荐(0) 编辑
摘要: Shell支持作用控制,有以下命令实现前后台切换: 1. command& 让进程在后台运行 2. jobs 查看后台运行的进程 3. fg %n 让后台运行的进程n到前台来 4. bg %n 让进程n到后台去 5. kill %n 杀死job PS:"n"为jobs命令查看到的job编号,不是进程编号. fg、bg、jobs、&、ctrl + z都是跟系统任务有关的,虽然现在基本上不怎么需要用到这些命令,但学会了也是很实用的.一、& 最经常被用到 这个用在一个命令的最后,可以把这个命令放到后台执行二、ctrl + z 可以将一个正在前台执行的命令放 阅读全文
posted @ 2013-07-17 13:18 茗迹周 阅读(511) 评论(0) 推荐(0) 编辑
摘要: 1.安装桌面apt-get install ubuntu-desktop2.安装vncserverapt-get install vnc4server3.设置vncserver密码vncpasswd4.编辑~/.vnc/xstartup文件#[-x /etc/vnc/xstartup]]&& exec /etc/vnc/xstartup[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresourcesxsetroot -solid greyvncconfig -iconic &xterm -gemetry 80x24+1 阅读全文
posted @ 2013-07-16 14:23 茗迹周 阅读(3350) 评论(0) 推荐(0) 编辑
摘要: By default Ubuntu Desktop OS comes withssh clientpackage. It does not include sshserverpackage which is needed toaccessthis machine.ToinstallSSH on the newly installed Ubuntu 12.04 run following commandssudo apt-get updatesudo apt-get install sshservice ssh startThat’s it. To confirmthe workingssh. 阅读全文
posted @ 2013-07-16 11:16 茗迹周 阅读(353) 评论(0) 推荐(1) 编辑
摘要: 1.添加主机 php -q add_device.php --description="192.168.0.30" --ip="192.168.0.30" --template=7 --community="public"查询主机模板:php -q add_device.php --list-host-templates0 None4 Karlnet无线网桥5 Cisco路由交换7 Windows主机9 Linux主机11 F5 BIG-IP14 CactiEZ中文版15 Linux主机-Apahce16 Linux主机-Squid1 阅读全文
posted @ 2013-07-11 22:22 茗迹周 阅读(2555) 评论(0) 推荐(0) 编辑
摘要: <?$dbh = @mysql_connect("localhost:3306","root","9999");/* 定义变量dbh , mysql_connect()函数的意思是连接mysql数据库, "@"的意思是屏蔽报错 */if(!$dbh){die("error");}/* die()函数的意思是将括号里的字串送到浏览器并中断PHP程式 (Script)。括号里的参数为欲送出的字串。 */@mysql_select_db("ok", $dbh);/* 选择my 阅读全文
posted @ 2013-06-08 00:02 茗迹周 阅读(520) 评论(0) 推荐(0) 编辑
摘要: SQL Server数据库多种方式查找重复记录:示例:表stuinfo,有三个字段recno(自增),stuid,stuname建该表的Sql语句如下:CREATE TABLE [StuInfo] ([recno] [int] IDENTITY (1, 1) NOT NULL ,[stuid] [varchar] (10) COLLATE Chinese_PRC_CI_AS NOT NULL ,[stuname] [varchar] (10) COLLATE Chinese_PRC_CI_AS NOT NULL) ON [PRIMARY]GO1.查某一列(或多列)的重复值(只可以查出重复记录的 阅读全文
posted @ 2013-05-26 18:58 茗迹周 阅读(305) 评论(0) 推荐(0) 编辑
摘要: @user文件包下载:点击下载先下载@user文件包,将里面的三个文件上传至文件夹根目录(当然,js和css样式文件可以传到其它目录,确保路径正确就行了),这里为了省事,我上传的是根文件夹下面1、修改include文件夹下面的functions.php文件funtion.php搜索:1 print("<td align=\"left\"><textarea class=\"bbcode\" cols=\"100\" style=\"width: 650px;\" name=\" 阅读全文
posted @ 2013-05-21 17:31 茗迹周 阅读(924) 评论(2) 推荐(0) 编辑