博客统计信息

用户名:lanlfeng
文章数:31
评论数:25
访问量:66792
无忧币:20
博客积分:640
博客等级:2
注册日期:2008-03-12

我最近发表的评论

本地时间与UTC(.. 回复
哈哈,是这样的,找点比unix差了一..
Linux LVM管理 回复
扩充卷组(增加新的pv进来):vgext..
去掉FC9 用户桌面.. 回复
呵呵,其实是一样的,都使用的是gco..
linux 卷标设置与.. 回复
哈哈,其实很简单的。 E2LA..
redhat/FC中找不.. 回复
哈哈,类似的错误。不过这个前提是..
Oracle10G常用维护语句
1 创建表空间





CREATE TABLESPACE CPORTAL LOGGING DATAFILE '/dev/raw/raw1' SIZE 30000M REUSE EXTENT MANAGEMENT LOCAL
    2 创建用户





CREATE USER CPORTAL PROFILE DEFAULT IDENTIFIED BY CPORTAL  DEFAULT
    TABLESPACE CPORTAL TEMPORARY  TABLESPACE TEMP ACCOUNT UNLOCK;
GRANT CONNECT TO CPORTAL;
GRANT RESOURCE TO CPORTAL; 
    3 参数修改





ALTER SYSTEM SET sga_target = 1000M SCOPE=SPFILE;..
首先我们了解一下时间的相关概念,以及之间的区别,需要了解的时间概念有:
本地时间(locale time)
格林威治时间(Greenwich Mean Time GMT)
时间协调时间 (Universal Time Coordinated UTC)
  本地时间,显而易见不用解释了
  先看看时间的标准:
(1)世界时

世界时是最早的时间标准。在1884年,国际上将1s确定为全年内每日平均长度的1/8.64×104。以此标准形成的时间系统,称为世界是,即
UT1。1972年国际上开始使用国际原子时标,从那以后,经过格林威治老天文台本初子午线的时间便被称为世界时,即UT2,或称格林..
2009-01-03 21:50:10
                                      


Linux内核参数--/proc

1)     Linux Proc文件系统,通过对Proc文件系统进行调整,达到性能优化的目的。

2)     Linux性能诊断工具,介绍如何使用Linux自带的诊断工具进行性能诊断。

二、/proc/sys/kernel/优化

1)    &n..
在redhat as5上安装oracle11g时不能启动GUI报错如下:
[oracle@sense disk1]$ ./runInstaller
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 80 MB.   Actual 1184 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 3027 MB    Passed
Checking monitor: must be configured to display at least 256 colors
    >>> Could not execute auto check for display colors using command /usr..
在redhat as5上安装oracle11g时不能启动GUI报错如下:
[oracle@sense disk1]$ ./runInstaller
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 80 MB.   Actual 1184 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 3027 MB    Passed
Checking monitor: must be configured to display at least 256 colors
    >>> Could not execute auto check for display colors using command /usr..
想在虚拟机里面安装oracle10g,发现默认的swap交换空间不满足最低要求,因为我分配的物理内存是1G,那么就按照要求需要2G的swap交换空间,默认只有1G的交换空间。添加swap交换空间的步骤如下:

第一步:确保系统中有足够的空间来用做swap交换空间,我使用的是KVM,准备在一个独立的文件系统中添加一个swap交换文件,在/opt/image中添加2G的swap交换文件
第二步:添加交换文件并设置其大小为2G,使用如下命令
[root@sense image]# dd if=/dev/zero of=/opt/image/swap bs=1024 count=2048000

过段时间就返回如下结果..
一直以来,很纳闷,为什么我的本地FC9就不能作为remote的X Server呢,每次运行GUI程序,都会报错:
Error: Can't open display: ip:0.0

今天终于找到问题了,原因是我登录远程系统使用的是ssh,而ssh默认是关闭x显示的,所以要想在本地运行远程的GUI程序,必须在登录的时候就带上参数-X
实现步骤:
第一步:在本地的FC9上允许x client显示,使用命令xhost +(或者xhost + remote ip[hostname]),解禁访问控制
[user@myfc9]xhost +
access control disabled, clients can connect from any host

      &nb..
晚上在redhat as5上安装一个java界面软件,但是必须用非root用户安装,创建一个安装用户后,发现报错如下:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

原来是这个用户没有权限去连结X server。解决的办法是在root用户下执行命令:
xhost local:user-name
返回结果:non-network local connections being added to access control list


使用xclock测试,ok解决
今天在Redhat上安装webtop2.2,运行安装脚本:./install.sh,后发现报出如下错误:

Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...

Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

Stack Trace:
java.lang.NoClassDefFoundError: com.zerog.u..
最近加了个托盘,分区多了些,看到桌面商的分区图标就烦,一直想着怎么能去掉,让我的FC9桌面变得干净一些,尝试了好多配置的地方都不可以,偶尔google中看到了安装gconf-editor工具可以对FC的gnome进行配置管理。

#sudo yum install gconf-editor
#rpm -qa|grep editor
gconf-editor-2.22.0-1.fc9.x86_64

配置步骤:applications--->system tools--->Configruation Editor-->apps--->nautilus-->desktop--将volumes_visible后面的对号去掉就ok了

这个工具很强大,也可以配置其他的一些相关属性,等有属性了慢慢研究
1.1 界面

gftp是基于gtk程序界面一般漂亮。得分 8
virgoftp是java写的ftp客户端,界面一般漂亮。 得分 8
lglooftp也是java写的ftp客户端,界面一般漂亮 得分 8
[编辑]
1.2 功能

gftp实现的功能
1。gftp不仅可以作为ftp客户端,也可以作为ssh客户端
2。gftp支持托拽,方便用户使用
3. 支持代理 得分 9
virgoftp实现的功能
1。支持ftp ssl协议
2。支持代理 得分 8
lglooftp实现的功能
1 支持ftp ssl协议
2 支持多种加密协议
得分 8
[编辑]
1.3 操作

1 gftp操作简单,而且支持托拽,方便用户使用 得分9
2 virgoftp操作简单(在删除文件..
12款Linux下浏览器大阅兵



加入收藏 推荐给朋友



  会员写作投稿请先登录>-->











-->
   
在Windows下,形成了IE和Firefox楚汉对峙,Opera、Avant等各路诸侯并立的局面。在Linux操作系统下,没有了微软的
IE,Firefox份额过半,但Linux下的浏览器竞争同样精彩,不同的浏览器各具特色,Opera和Konqueror对Firefox构成了一定
挑战。本文带领读者检阅Linux下的12款浏览器,其中包括7个图形界面浏览器和5个命令行浏览器。
图形界面(GUI)浏览器
 Firefox
    Mozilla
Firefox自从2004年11月发布后,人气越来越高,今天已经是Linux用户的主流选择。尽管跟其它超过10年历史的浏览器比,还很年轻,但
Firefox却创造了浏览器世界的神话,不仅在Linux下,Windows下也是如此。它使用开源的Gecko排版引擎,其以安全性、管理密码和
cookies等著称。它能通过大量的扩展(add-ons)增加功能,它支持主题(themes)。新推出的Firefox
3.0增加了易用性,如新的地址栏,使你快速地查找网址。它具有高度的可定制性,但不是在“选项”窗口中,你需要在地址栏输入
“about:config”命令。虽然有些不足,但仍是Linux平台下最好的浏览器。

    官方网站:[url]http://www.mozilla.com/en-US/firefox/[/url]
 
Opera
    基于Qt工具包,封闭源代码,其包括了很多功能,如BitTorrent和IRC终端等等。Opera还支持widgets和很多的设置选项,很漂亮的默认界面,整合系统托盘。Opera可能是目前为止提供最多功能的图形界面浏览器,堪称全功能浏览器。
    官方网站:[url]http://www.opera.com/[/url]
在redhat或者FC中在安装有些包或者软件时报错找不到libstdc.so.5库文件,其实这个库文件是在compat-libstdc++这个rpm包中包含着,只要装了这个包就可以解决问题,可以从安装光盘中找到compat-libstdc++****.rpm或者从google搜索一个也可以。
提供一个很好的RPM resouce:[url]http://rpmfind.net[/url]
2008-12-21 22:58:30
在新装的AS5上打开vsftpd服务,发现用户无法登录,报:“500 OOPS错误”
原来是selinux阻止了ftp通信。解决办法

输入命令:setsebool -P ftpd_disable_trans 1
service vsftpd restart
就ok



2008-12-21 21:17:46
最近在感觉小黑的磁盘空间有些紧张,就加了一块托盘。将分区挂载上后,发现每个分区挂载到文件系统上的卷标都是“新加卷”分区多了,一时半会先找不到自己要找的东西在那个分区里面,总是要浪费时间,一个一个分区打开看看。后来想想在windows中每个分区通过点击鼠标右键就可以修改分区的卷标。那么在如此喜爱的linux上应该也会有卷标管理功能的,经过查阅大量资料,终于找到了linux上的卷标管理方法,今天就写出来供大家参考,也备自己技术回顾用。哈哈,具体内容如下:
      首先需要说明的是,我们必须明..
2008-12-21 16:36:40




触发器与存储过程





触发器一 触发器介绍

触发器是一种特殊的存储过程,它在插入,删除或修改特定表中

的数据时触发执行,它比数据库本身标准的功能有更精细和更复杂的

数据控制能力。数据库触发器有以下的作用:

* 安全性。可以基于数据库的值使用户具有操作数据库的某种权利。

# 可以基于时间限制用户的操作,例如不允许下班后和节假日

修改数据库数据。

# 可以基于数据库中的数据限制用户的操作,例如不允许股票

的价格的升幅一次超过10%。

* 审计。可以跟踪用户对数据库的操作。

# 审计用..








用Perl实现高级远程操作系统探测
创建时间:2001-05-24
文章属性:翻译
文章来源:[url]http://www.xfocus.org/[/url]
文章提交:stardust (bugmail_at_telekbird.com.cn)

------------------------------------------------------------------

------[ Feb 03, 2001 - by f0bic - [url]http://www.low-level.net[/url] ]------





"Half of the work that is done is this world,

is to make things appear what they are not."

         &nbs..
2008-12-18 20:33:14
Module Version: 3.03  
Source  




NAME
SYNOPSIS
DESCRIPTION
What To Know Before Using
Debugging
Style of Named Parameters
Connecting to a Remote MS-Windows Machine

METHODS
SEE ALSO
EXAMPLES
AUTHOR
COPYRIGHT



NAME ^
Net::Telnet - interact with TELNET port or other TCP ports
SYNOPSIS ^
use Net::Telnet ();
see METHODS section below
DESCRIPTION ^
Net::Telnet allows you to make client connections to a TCP port and
do network I/O,
especially to a port using the TELNET protocol.
Simple I/O methods such as print,
get,
and getline are provided.
More sophisticated interactive features are provided because connecting
to a TELNET port ultimately means communicating with a program designed
for human interaction.
These interactive features include the ability to specify a time-out
and to wait for patterns to appear in the input stream,
such as the prompt from a shell.
Other reasons to use this module than strictly with a TELNET port are:
You're not familiar with sockets and you want a simple way to make client connections to TCP services.You want to be able to specify your own time-out while connecting,
reading,
or writing.You're communicating with an interactive program at the other end
of some socket or pipe and you want to wait for certain patterns to
appear.
Here's an example that prints who's logged-on to the remote host sparky.
In addition to a username and password,
you must also know the user's shell prompt,
which for this example is bash$
use Net::Telnet ();
$t = new Net::Telnet (Timeout => 10,
Prompt => '/bash\$ $/');
$t->open("sparky");
$t->login($username, $passwd);
@lines = $t->cmd("who");
print @lines;
More examples are in the EXAMPLES section below.
Usage questions should be directed to the Usenet newsgroup comp.lang.perl.modules.
Contact me, Jay Rogers <jay@rgrs.com>, if you find any bugs or have suggestions for improvement.
What To Know Before Using
All output is flushed while all input is buffered. Each object contains its own input buffer.The output record separator for print() and cmd() is set to "\n" by default, so that you don't have to append all your commands with a newline. To avoid printing a trailing "\n" use put() or set the output_record_separator to "".The methods login() and cmd() use the prompt
setting in the object to determine when a login or remote command is
complete. Those methods will fail with a time-out if you don't set the
prompt correctly.Use a combination of print() and waitfor() as an alternative to login() or cmd() when they don't do what you want.Errors such as timing-out are handled according to the error mode
action. The default action is to print an error message to standard
error and have the program die. See the errmode() method for more information.When constructing the match operator argument for prompt() or waitfor(), always use single quotes instead of double quotes to avoid unexpected backslash interpretation (e.g. '/bash\$ $/'). If you're constructing a DOS like file path, you'll need to use four backslashes to represent one (e.g. '/c:\\\\users\\\\bill>$/i').
Of course don't forget about regexp metacharacters like ., [, or $. You'll only need a single backslash to quote them. The anchor metacharacters ^ and $
refer to positions in the input buffer. To avoid matching characters
read that look like a prompt, it's a good idea to end your prompt
pattern with the $ anchor. That way the prompt will only match if it's the last thing read.
In the input stream, each sequence of carriage return and line feed (i.e. "\015\012" or CR LF) is converted to "\n". In the output stream, each occurrence of "\n" is converted to a sequence of CR LF. See binmode() to change the behavior. TCP protocols typically use the ASCII sequence, carriage return and line feed to designate a newline.Timing-out while making a connection is disabled for machines that don't support the alarm() function. Most notably these include MS-Windows machines.You'll need to be running at least Perl version 5.002 to use this
module. This module does not require any libraries that don't already
come with a standard Perl distribution.
If you have the IO:: libraries installed (they come standard with
perl5.004 and later) then IO::Socket::INET is used as a base class,
otherwise FileHandle is used.
Contact me, Jay Rogers <jay@rgrs.com>, if you find any bugs or have suggestions for improvement.
Debugging
The typical usage bug causes a time-out error because you've made
incorrect assumptions about what the remote side actually sends. The
easiest way to reconcile what the remote side sends with your
expectations is to use input_log() or dump_log().
dump_log() allows you to see the data being sent from the remote side before any translation is done, while input_log()
shows you the results after translation. The translation includes
converting end of line characters, removing and responding to TELNET
protocol commands in the data stream.
Style of Named Parameters
Two different styles of named parameters are supported. This document only shows the IO:: style:
Net::Telnet->new(Timeout => 20);
however the dash-option style is also allowed:
Net::Telnet->new(-timeout => 20);
Connecting to a Remote MS-Windows Machine
By default MS-Windows doesn't come with a TELNET server. However
third party TELNET servers are available. Unfortunately many of these
servers falsely claim to be a TELNET server. This is especially true of
the so-called "Microsoft Telnet Server" that comes installed with some
newer versions MS-Windows.
When a TELNET server first accepts a connection, it must use the
ASCII control characters carriage-return and line-feed to start a new
line (see RFC854). A server like the "Microsoft Telnet Server" that
doesn't do this, isn't a TELNET server. These servers send ANSI
terminal escape sequences to position to a column on a subsequent line
and to even position while writing characters that are adjacent to each
other. Worse, when sending output these servers resend previously sent
command output in a misguided attempt to display an entire terminal
screen.
Connecting Net::Telnet to one of these false TELNET servers makes
your job of parsing command output very difficult. It's better to
replace a false TELNET server with a real TELNET server. The better
TELNET servers for MS-Windows allow you to avoid the ANSI escapes by
turning off something some of them call console mode.
METHODS
本文档主要介绍讲述在 Debian系统下安装和配置OpenLDAP的简单方法.2. 基本概念 (Ctrl+c, Ctrl+v)2.1 目录服务的组成   目录服务就是按照树状信息组织模式,实现信息管理和服务接口的一种方法。目录服务系统一般由两部分组成:第一部分是数据库,一种分布式的数据库,且拥有一个描述数据的规划;第二部分则是访问和处理数据库有关的详细的访问协议。  
 目录服务与关系型数据库不同的是,目录不支持批量更新所需要的事务处理功能,目录一般只执行简单的更新操作,适合于进行大量数据的检索;目录具有广泛复
制信息的能力,从而在..
关键字:
OpenLDAP






ReiserFS



SCTP



nmon



正则表达式







使用轻量级目录访问协议(LDAP)构建集中的身份验证系统可以减少管理成本,增强安全性,避免数据复制的问题,并提高数据的一致性。随着
Linux&reg; 的不断成熟,已经出现了很多工具用来简化用户帐号信息到 LDAP
目录的迁移。还开发了一些工具用来在客户机和目录服务器之间启用加密通信配置,并通过复制提供容错性。本文将向您展示如何配置服务器和客户机在 Red
Hat Linux 上使用 OpenLDAP。














..
 <<   1   2   >>   页数 ( 1/2 )