系统运维
文章平均质量分 54
普通网友
这个作者很懒,什么都没留下…
展开
-
通过Remote Desktop连接到localhost,即打开本机的多个session
我使用的Windows系统的版本如下:当前登录的就是第一个session啦,打开第二个session: Connect Remote Desktop Connection (RDC) to 127.0.0.2打开第三个session:mstsc /v:ip_addr /f -console,例如:mstsc /v:140.84.131.1 /f -console原创 2012-02-22 13:37:15 · 1928 阅读 · 0 评论 -
在Linux上编译安装apache http server
=============在ubuntu上安装============= 在linux上安装Apache,要首先确保以下程序事先安装aprapr-utilpcre 安装步骤如下:1、安装apr下载:http://apr.apache.org/download.cgitar -zxvf apr-1.4.6转载 2013-10-22 15:07:37 · 3171 阅读 · 0 评论 -
Windows 查询占用端口的进程并杀掉
1.查询占用8009的进程,得到进程ID: 7584C:\Users\Will>netstat -aon|findstr "8009" TCP 0.0.0.0:8009 0.0.0.0:0 LISTENING 75842.查看进程7584被哪个应用程序占用,得到javaw.exeC:\Users\Will原创 2013-09-05 13:30:49 · 1127 阅读 · 0 评论 -
VNC 复制粘贴
在Windows上使用VNC打开Linux,将Windows上的内容复制粘贴到Linux上1. 首先在VNC相应的窗口的Terminal上执行以下命令:vncconfig -nowin&2.将Windows上的内容复制后,在VNC窗口里面ctrl+shift+V,就可以粘贴了。原创 2013-07-26 16:20:19 · 10765 阅读 · 1 评论 -
High CPU caused by TortoiseSVN process TSVNCache.exe
Problem:The TortoiseSVN process "TSVNCache.exe" constantly occupies the CPU.TSVNCache.exe is one of TortoiseSVN processes running in background and searching for directories on hard drive th原创 2013-05-21 11:17:21 · 1046 阅读 · 0 评论 -
Vim: QuickFix and Grep
QuickFix is designed to display compiler errors -- a list of errors is displayed and can be selected to jump to a specific file and line. It's also used for:vimgrep -- each item in the results list转载 2013-04-25 14:31:09 · 1228 阅读 · 0 评论 -
Linux / UNIX: Change Crontab Email Settings ( MAILTO )
Q. I'd like to send email to [email protected] instead of default root user. How do I change email settings undercrontab file?A. A crontab file contains instructions to the cron daemon.An a转载 2013-03-13 14:09:40 · 2664 阅读 · 0 评论 -
Bat批处理之for/f详解
含有/F的for格式:FOR /F ["options"] %%i IN (file) DO commandFOR /F ["options"] %%i IN ("string") DO commandFOR /F ["options"] %%i IN (command) DO command这个可能是最常用的,也是最强的命令,主要用来处理文件和一些命令的输出结转载 2012-06-18 23:36:01 · 950 阅读 · 0 评论 -
BAT自动从SVN上checkout最新的代码
TortoiseSVN是一个比较好用的SVN GUI Client。但是其命令行使用,不是full command line的,例如下面的co操作,必须人工点击Check out dialog的ok按钮,co才能继续完成。TortoiseProc.exe /command:checkout /path:"D:\svnrepo\myprj" /url:"svn://hostname/mypr原创 2012-06-17 13:57:07 · 3212 阅读 · 0 评论 -
如何在一个bat批处理文件中调用另一个bat批处理文件?
我们有两个批处理文件outter和批处理文件inner,其内容如下:outter.batecho "start to call inner bat here"inner.bat //第2行echo "Back to outter bat" //注意这一行,它并未运行inner.bat echo "inner bat has been cal原创 2012-06-07 14:08:31 · 14697 阅读 · 0 评论 -
Java执行wmic命令获取系统环境变量
1.首先编写文件setenv.bat设置系统环境变量:echo %cd%set framework_home=%cd%echo %framework_home%wmic ENVIRONMENT create name="framework_home",username="",VariableValue="%framework_home%"Note:此处假设framewor原创 2012-05-30 21:14:12 · 1274 阅读 · 0 评论 -
DOS永久设置系统环境变量-WMIC
wmicWindows Management Instrumentation Command-line(Windows管理规范命令行) WMIC扩展WMI(Windows Management Instrumentation,Windows管理规范) ,提供了从命令行接口和批命令脚本执行系统管理的支持。在WMIC出现之前,如果要管理WMI系统,必须使用一些专门的WMI应用,例如SM原创 2012-05-30 16:33:50 · 2859 阅读 · 0 评论 -
xcopy复制指定目录下的文件夹并且排除不需要的文件或者文件夹
1. 编写一个xcopydate.bat,内容如下:@echo offrem transfers all files in all subdirectories ofrem the source drive or directory (%1) to the destinationrem drive or directory (%2)rem lastModifyTime (%3原创 2012-05-10 13:07:26 · 9717 阅读 · 0 评论 -
Subversion 服务器的使用
1. 首先创建SVN储存库(repository) svnadmin create/home/svnroot/repositoryrepository创建完毕后会在目录下生成若干个文件和文件夹,dav目录是提供给Apache与mod_dav_svn使用的目录,让它们存储内部 数据;db目录就是所有版本控制的数据文件;hooks目录放置hook脚本文件的目录;locks用来放置Sub原创 2012-05-03 11:18:22 · 729 阅读 · 0 评论 -
Weblogic server是ADMIN状态
Here we are going to see a Scenario which is very common but troublesome. Many times we observe that while trying to restart the Managed Servers the Servers move to ADMIN State rather than moving to t转载 2012-03-30 15:27:30 · 15914 阅读 · 0 评论 -
windows 远程桌面的session管理
1.查看有多少个session登陆了某台机器qwinsta /server:2.结束某次登陆的sessionlogoff sessionId> /server:或者:rwinsta /server:SERVERIP SESSIONIDrwinsta /server:10.10.1.10 2可以通过qwinsta命令查看当前相应的sessi转载 2012-02-23 16:31:38 · 3452 阅读 · 0 评论 -
Windows命令行在文件中搜索匹配的字符串
在Linux系统中我们使用grep命令,而在windows系统可以使用findstrfindstrExamplesfindstr "computer help" myfile.txtIn the above example, any lines containing "computer help" would be printed to the screen.fin原创 2012-02-23 16:14:18 · 2082 阅读 · 0 评论 -
TortoiseSVN中Branching和Merging实践
使用svn几年了,一直对分支和合并敬而远之,一来是因为分支的管理不该我操心,二来即使涉及到分支的管理,也不敢贸然使用合并功能,生怕合并出了问题对团队造成不良影响,最主要的原因是,自己对分支的目的和合并的方法不甚了解,这才是硬伤。最近由于适配机型的需要(本人从事手机客户端的开发),需要经常接触分支和合并两项工作,突然发现这玩意整不明白很难开展工作,遂这两天着重研究了一下,有点收获,怕以后转载 2014-05-27 15:25:00 · 122 阅读 · 0 评论