摘要:
所谓tomcat6 其实就系 支持Jsp的 apache, web 服务器.打开终端: 输入 apt-get install tomcat6 就安装完成了浏览器打开 localhost:8080,会见到测试页配置端口:/etc/tomcat6/server.xml默认系8080关闭服务:/etc/init.d/tomcat6 stop打开服务:/etc/init.d/tomcat6 start可以在包管理器安装附加功能:例如: admin web applications, 可以在浏览器打开tomcat管理页但系要账户密码:系呢度设置账户密码:/etc/tomcat6/tomcat-users 阅读全文
posted @ 2013-04-02 00:52
Gateman
阅读(104)
评论(0)
推荐(0)
摘要:
有个文件 test.txt 内容如下:bash-3.00$ cat test.txt user user user_hiuser #注:呢行系空行T JGATEMANGATTTTTEMANGABBEMANAAABbash-3.00$下面介绍下常用的通配符 配合grep 命令:1. "." 匹配单字符例如:bash-3.00$ grep -n u..r test.txt1: user2: user3: user_hi4:userbash-3.00$ grep -n u..r.h.. test.... 阅读全文
posted @ 2013-04-02 00:52
Gateman
阅读(225)
评论(0)
推荐(0)
摘要:
grep 可以立即为筛选, 一般的用法系 grep + 要查询的字段 + 文件(或者内容 例如| 传递既内容)1.grep + 要查询的字段 + 文件gateman@GPC:~/shell/SQL_GSI$ grep OID a.sqlWHERE OID=@BuildNOWHERE OID INWHERE OID=@BuildNOWHERE OID IN上面的意思就系 筛选文件a.sql 将含有OID的行 列出来.gateman@GPC:~/shell/SQL_GSI$ grep ^WHERE a.sqlWHERE BuildNO=@BuildNO AND Year=@Year AND Mo. 阅读全文
posted @ 2013-04-02 00:52
Gateman
阅读(229)
评论(0)
推荐(0)
摘要:
系ubuntu 下面打开终端输入:sudo apt-get install sendmail一般就安装完成噶啦跟住进入 /etc/mail/目录输入:m4 sendmail.mc > sendmail.cf意思系跟住.mc文件 生成 sendmial.cf文件输入呢个命令:ps aux | grep sendmailroot 5721 0.0 0.0 11496 2136 ? Ss 23:31 0:00 sendmail: MTA: accepting connections gateman 5836 0.0 0.0 4020 768 pts/1 S+ 23:4... 阅读全文
posted @ 2013-04-02 00:52
Gateman
阅读(291)
评论(0)
推荐(0)
摘要:
两个命令都可以用来提交job,但是crontab 主要用来提交不断循环执行的job, 而at 用来提交一段时间后执行的job(执行完就自动删除整个job)crontab用法:首先求其写1个crontab用的脚本showdate.sh例如:echo "Hi Gateman" >> /home/gateman/cron/crontext.txtecho `date +\%Y\%m\%d\%t\%X` >> /home/gateman/cron/crontext.txt跟住写个cron文件 mycron:#Just a text0,28,35,45,52 阅读全文
posted @ 2013-04-02 00:52
Gateman
阅读(486)
评论(0)
推荐(0)
摘要:
部亚太版defy已经入手一年有余啦,上网查过系印度产的, 当时系中华广场买水货,叫个老细帮手从2.1刷成2.2....宜家终于下定决心靠自己刷成2.3...希望唔好变砖头啦~~第一步,梗系备份先啦======================================================================================1.豌豆精灵更新:开机入win7,打开豌豆精灵...距话要更新, 由距啦, 反正唔系好耐, 更新完如下啦:2.手动备份:自动备份唔系好信得过啊, 都系自己来啦~好慢啊...3.手尾都系觉得vcf格式唔系好可靠..点算咧 保存成csv 阅读全文
posted @ 2013-04-02 00:52
Gateman
阅读(373)
评论(0)
推荐(0)
摘要:
网上关于gcc -I 的教程好少,试左成晚终于试左出来。假如系目录 ~/testmake/下面有2个c文件同1个makefile: file1.c file2.c Makefile系另个目录 ~/testmake/headfiles/ 有1个头文件: file2.h其中file2.h内容为:#ifndef __FILE2_H_#define __FILE2_H_ void File2Print();#endif即系头文件同埋c文件唔系同1个目录, 有两种写法:==================================================================.. 阅读全文
posted @ 2013-04-02 00:51
Gateman
阅读(611)
评论(0)
推荐(0)
摘要:
本文总结了Linux添加或者删除用户和用户组时常用的一些命令和参数。 转自:http://www.phpq.net/linux/linux-add-delete-user-group.html 1、建用户:adduser phpq //新建phpq用户 passwd phpq //给phpq用户设置密码 2、建工作组groupadd test //新建test工作组 3、新建用户同时增加工作组useradd -g test phpq //新建phpq用户并增加到test工作组 注::-g 所属组 -d 家目录 -s 所用的S... 阅读全文
posted @ 2013-04-02 00:51
Gateman
阅读(162)
评论(0)
推荐(0)
摘要:
添加用户 hexan 到目录 /home/hexan 下。$ sudo adduser hexan -home /home/hexan添加一个普通用户adduser [--home DIR] [--shell SHELL] [--no-create-home] [--uid ID][--firstuid ID] [--lastuid ID] [--gecos GECOS] [--ingroup GROUP | --gid ID][--disabled-password] [--disabled-login] USER添加一个系统用户adduser --system [--home DIR] [ 阅读全文
posted @ 2013-04-02 00:51
Gateman
阅读(344)
评论(0)
推荐(0)
摘要:
转自:目的:基本掌握了make的用法,能在Linux系统上编程。环境:Linux系统,或者有一台Linux服务器,通过终端连接。一句话:有Linux编译环境。准备:准备三个文件:file1.c, file2.c, file2.hfile1.c:#include <stdio.h>#include "file2.h"int main(){printf("print file1$$$$$$$$$$$$$$$$$$$$$$$$\n");File2Print();return 0;}file2.h:#ifndef FILE2_H_#defineFIL 阅读全文
posted @ 2013-04-02 00:51
Gateman
阅读(112)
评论(0)
推荐(0)

浙公网安备 33010602011771号