上一页 1 2 3 4 5 6 7 ··· 14 下一页
摘要: procedure TForm1.btn1Click(Sender: TObject);var Http:TIdHTTP;begin Http := TIdHTTP.Create(nil); Http.ProxyParams.ProxyServer := '91.211.141.249'; //代理IP Http.ProxyParams.ProxyPort := 8080; Http.ProxyParams.ProxyUsername := ''; Http.ProxyParams.ProxyPassword := ''; //百度和GG屏蔽了i 阅读全文
posted @ 2011-03-18 13:52 冷寒生 阅读(1053) 评论(0) 推荐(0) 编辑
摘要: //CMD 要执行的文件路径//Visiable 是否显示窗口Function WinExecExW(CMD:Pchar; Visiable:integer):DWORD;var StartupInfo : TStartupInfo; ProcessInfo : TProcessInformation;begin FillChar( StartUpInfo, SizeOf(StartUpInfo), $00 ); StartUpInfo.dwFlags := STARTF_USESHOWWINDOW; StartUpInfo.wShowWindow := SW_HIDE; if CreateP 阅读全文
posted @ 2010-03-22 20:54 冷寒生 阅读(3384) 评论(0) 推荐(0) 编辑
摘要: # /usr/local/nginx/sbin/nginx -s stop #停止# /usr/local/nginx/sbin/nginx #启动 阅读全文
posted @ 2010-03-21 16:07 冷寒生 阅读(590) 评论(0) 推荐(0) 编辑
摘要: 修改文件夹权限:chmod 777 /home/wmzhi修改文件夹属主:chown wmzhi /home/wmzhi/www 阅读全文
posted @ 2010-03-21 15:41 冷寒生 阅读(305) 评论(0) 推荐(0) 编辑
摘要: #!/usr/local/bin/bashcase $1 instart) /usr/local/sbin/nginx;;stop) killall -9 nginx;;test) nginx -t -c /usr/local/etc/nginx/nginx.conf;;restart) ps auxww | grep nginx | grep master | awk '{print $2}' | xargs kill -HUP;;show) ps -aux|grep nginx;;esac保存为nginx.sh使用方法为:nginx.sh start #启动nginxngi 阅读全文
posted @ 2010-03-21 13:45 冷寒生 阅读(244) 评论(0) 推荐(0) 编辑
摘要: df -h 阅读全文
posted @ 2010-03-21 13:03 冷寒生 阅读(450) 评论(0) 推荐(0) 编辑
摘要: FreeBSD 安裝 wget在 Redhat/Fedora 是預設安裝好 wget,而 FreeBSD 則預設沒有安裝,要在文字模式下載檔案很不便。在 FreeBSD 要安裝 wget 很容易,只要使用 ports 就行了,方法如下:cd /usr/ports/ftp/wgetmake install clean那麼系統就會自動替你完成安裝了。 阅读全文
posted @ 2010-03-20 17:10 冷寒生 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 今天遇到一台FreeBSD6.1的服务器系统没有安装ports,想更新一些软件非常不方便,能搜到的资料比较小,但也找到了一个可行的方法。使用 portsnap 安装/同步 ports 系统使用portsnap不需要事先安装 ports tree,并且能够在任何时候恢复到已知的最新状态(即使手工对ports tree进行了修改)。使用 portsnap 分成两个步骤:下载压缩的 portsnap 快照,和更新现有系统。下载或更新 portsnap 快照的方法是 portsnap fetch;首次安装,或希望将 ports tree 恢复到快照的样子,应使用 portsnap extract;之. 阅读全文
posted @ 2010-03-20 17:02 冷寒生 阅读(1394) 评论(0) 推荐(0) 编辑
摘要: # /sbin/mount -a# passwd 阅读全文
posted @ 2010-03-20 16:26 冷寒生 阅读(181) 评论(0) 推荐(0) 编辑
摘要: function TRATServer.GetDefaultBrowser:string;//获取默认浏览器varreg: TRegistry;beginreg := TRegistry.Create;tryreg.RootKey := HKEY_CLASSES_ROOT;reg.OpenKey(‘HTTP\shell\open\ddeexec\Application’,false);result:=reg.ReadString(”);reg.CloseKey;finallyreg.Free;end;end; 阅读全文
posted @ 2010-03-20 04:00 冷寒生 阅读(1015) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 14 下一页
IT知识库