informix Shared memory 错误
其他用户运行onstat -时出错[back@tonykorn97 ~]$ onstat -onstat: Shared memory: permission denied.[back@tonykorn97 ~]$[@more@]关闭数据库后重新启动出错[informix@tonykorn97 ~]$ oninit -vChecking group membership to determine server run mode...succeededReading configuration file '/home/informix/etc/txfront.cfg'...succeededCreating /INFORMIXTMP/.infxdirs...succeededCreating infos file "/home/informix/etc/.infos.ontxfront"...succeededLinking conf file "/home/informix/etc/.conf.ontxfront&
rpm.statd进程属于哪个服务
在上一篇文章中(http://tonykorn97.itpub.net/post/6414/462027)我们看到了rpm.statd进程,现在我们来看看这个进程属于哪个服务。[@more@]共享和加载NFS文件系统需要什么服务? 解决方法:红帽企业Linux使用核心级的支持和守护进程的组合来提供NFS文件共享.NFS依靠远程过程调用(RPC)在客户端和服务器端路由请求。在Linux下RPC服务由portmap服务控制. 为了共享和加载NFS文件系统,下面的服务要一起工作: * nfs - 启动相应RPC服务进程来服务对于NFS文件系统的请求. * nfslock - 一个可选的服务,用于启动相应的RPC进程,允许
rsync 客户端同步的时候报错
已经做过好几台服务器的rsync配置了,可是有遇到了一个怪异的问题rsync客户机同步的时候报错:[root@tonykorn02 test]# /usr/bin/rsync -vzrtopg --progress --delete 192.168.1.250::test /testrsync: connection unexpectedly closed (0 bytes received so far) [receiver]rsync error: error in rsync protocol data stream (code 12) at io.c(463) [receiver=2.6.8][@more@]服务端配置[root@tonykorn ~]# uname -aLinux tonykorn 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux[root@tonykorn ~
一台AppManager服务器断电后,启动Mysql报错
一台AppManager服务器断电后,启动Mysql报错:[root@RedHat5 AppManager7]# ./startApplicationsManager.sh ./bin/mysqladmin: connect to server at 'localhost' failederror: 'Can't connect to local MySQL server through socket '/opt/AdventNet/ME/AppManager7/working/mysql/mysql.sock' (111)'Check that mysqld is running and that the socket: '/opt/AdventNet/ME/AppManager7/working/mysql/mysql.sock' exists![root@RedHat5 AppManager7]# [@more@]把mysql.sock改名[root@RedHat5 AppManager7]# mv /opt/AdventNet/ME/AppMa
做Informix HDR 的时候出现这样的错误
设置本机为主服务器模式:[informix@test ~]$ onmode -d primary ontest02出现的日志信息为:[@more@][informix@test etc]$ onstat -m02:02:55 On-Line Mode02:03:43 DR: Reservation of the last logical log for log backup turned on02:03:43 DR: new type = primary, secondary server name = ontest02 02:03:43 DR: Trying to connect to secondary server = ontest0202:03:44 DR: Turned off on primary server02:03:44 DR: Local and Remote server type and/or last change(LC) incompatible [Local type: Pri
安装xp sp3了
开始体验一下,呵呵!远程桌面连接不一样了![@more@]
为灾区的朋友祈祷
对于5月12号四川发生的地震,我所做的一切就是为灾区的朋友祈祷,希望把损失减少到最小![@more@]
mount by example
重新加载mount -o remount,rw /dev/sda3 /mount NFS文件系统mkdir /mnt/server1mount -t nfs server1:/var/ftp/pub /mnt/server1Mount iso文件mount -t iso9660 -o loop /iso/documents.iso /mnt/cdimage[@more@]
tune2fs和dumpe2fs 命令用法
tune2fs是linux下面重要的文件系统调整工具,其中的几个选项解释如下:[@more@]-c:表示文件系统在mount次数达到设定后,需要运行fsck检查文件系统。-i:文件系统的检查间隔时间。系统在达到时间间隔时,自动检查文件系统。-l:显示文件系统的很多参数。-j:转换为ext3文件系统。-m: Set the percentage of reserved filesystem blocks。 设置保留的空间百分比-o: Set or clear the indicated default mount options in the filesystem.设置默认加载参数通常如果使用ext3文件系统的话,使用-c 0关掉mount次数达到后的文件系统检查。t
e2label
[root@tsm04 /]# e2label /dev/sda5 disk5[root@tsm04 /]# e2label /dev/sda5disk5[root@tsm04 /]# e2label /dev/sda4e2label: No such file or directory while trying to open /dev/sda4Couldn't find valid filesystem superblock.[root@tsm04 /]# mkdir /sda5[root@tsm04 /]# mount LABEL=disk5 /sda5[@more@]
partprobe命令
Red Hat Enterprise Linux 3上,在安装系统之后,可否创建分区并且在不重新启动机器的情况下系统能够识别这些分区? 解决方法:解决方法:[@more@] 你可以使用一个叫做partprobe的工具。它包含在parted的rpm软件包中。在Red Hat Enterprise Linux 3上他的版本是parted-1.6。 partprobe 是一个可以修改kernel中分区表的工具。可以使kernel重新读取分区表。如下命令可以查看你的系统是否安装了parted软件包 rpm -q parted举例来说: # rpm -q parted parted-1.6.3-29你可以使用up2date命令安装这个软件包,如果在你的系统已经正确地注
seliunx的一些简单命令
还原文件上下文restorecon /root/*[@more@]其他的一些命令ls -Z /etc/shadow /etc/aliasesls -Zd /etc/ etc/hostsps -ZC syslogd,bashgetenforcesetenforce 0|1system-config-securitylevelsystem-config-selinuxchcon -t etc_t install.logchcon --reference /etc/shadow anaconda-ks.cfg
access control lists (ACLs)
Grant rwx access to files and directories for multiple users or groupsmount -o acl /directory查看aclgetfack file|directory设置aclsetfacl -m u:gandolf:rwx file|directorysetfacl -m g:nazgul:rw file|directorysetfacl -m d:u:frodo:rw directory删除aclsetfacl -x u:samwise file|directory[@more@]
Linux ACL学习笔记(zt)
1. 为什么要使用ACL先让我们来简单地复习一下Linux的file permission. 在linux下,对一个文件(或者资源)可以进行操作的对象被分为三类: file owner(文件的拥有者), group(组,注意不一定是文件拥有者所在的组), other (其他)而对于每一类别又分别定义了read, write and execute/search permission (这里不讨论SUID, SGID以及Sticky bit的设置)通过ls -l命令就我们就可以列出一个文件的permission[@more@]代码:# ls -l[leonard@localhost ~]$ ls -l-rw-rw---- 1 leonard admin 0 Jul 3 20:12 test.txt在这里说明了对于test.txt这个文件leona
Linux文件特殊权限 SUID/SGID/Sticky Bit (zt)
前面一直提到文件的重要权限,就是rwx这3个读、写、执行的权限。但是,怎么 /tmp权限有些奇怪?还有, /usr/bin/passwd也有些奇怪,怎么回事呢? [root@linux ~]# ls -ld /tmp ; ls -l /usr/bin/passwddrwxrwxrwt 5 root root 4096 Jul 20 10:00 /tmp-r-s--x--x 1 root root 18840 Mar 7 18:06 /usr/bin/passwd [@more@] 不是只有rwx吗?为什么还有其他的特殊权限呢?不要担心,我们这里先不谈这两个权限,只是先介绍一下而已。因为必须要有账号的ID概念,以及程序的进程(process)概念后,才能够进一步了解这些特殊权限所表示
如何强制定期更改Linux密码(zt)
口令时效是一种系统机制,用于强制口令在特定的时间长度后失效。对用户来说,这可能带来了一些麻烦,但是它确保了口令会定期进行更改,是一项很好的安全措施。默认情况下,绝大多数的Linux分装版本并没有打开口令时效,不过要想打开却非常简单。 [@more@]通过编辑/etc/login.defs,你可以指定几个参数,来设置口令实效的默认设定: PASS_MAX_DAYS 99999PASS_MIN_DAYS 0PASS_WARN_AGE 7 当设置口令时效的天数为99999时,实际上相当于关闭了口令时效。一个更明智的设定一般是60天——每2个月强制更改一次密码。 PASS_MIN_DAYS参数则设定了在本
Linux / Unix Command: logger
NAMElogger - a shell command interface to the syslog(3) system log module SYNOPSISlogger [-isd ] [-f file ] [-p pri ] [-t tag ] [-u socket ] [message ... ] DESCRIPTIONLogger makes entries in the system log. It provides a shell command interface to the syslog(3) system log module. Options: [@more@]-i Log the process id of the logger process with each line. -s Log the message to standard error, as well as the system log. -f file Log the specified file. -p pri Enter the message with the specifi
把日志写到其他服务器上的操作步骤
1,first, on the log server set up syslogd to accept remote memmages. a, EDIT /etc/sysconfig/syslog; YSSLOGD_OPTIONS="-r -m 0 " b, restart syslogd; # service syslog restart[@more@]2, on the log client set up syslogd to send messages from the user facility to the log server. a, Append in /etc/syslog.conf the following line: user.* @172.25.1.114 b, restart syslogd #service syslog restart3, test the new setup by using logger to generate a syslog mess
SSD固态硬盘过人之处和当前困境解析
[2008-2-29] 【ChinaDram.com网讯】 一、SSD是何方神圣 SSD主要分为以下两种类别:基于闪存的SSD:采用FLASH芯片作为存储介质,这也是我们通常所说的SSD。它的外观可以被制作成多种摸样,例如:笔记本硬盘、微硬盘、存储卡、优盘等样式。这种SSD固态硬盘最大的优点就是可以移动,而且数据保护不受电源控制,能适应于各种环境,但是使用年限不高,适合于个人用户使用。[@more@]基于DRAM的SSD:采用DRAM作为存储介质,目前应用范围较窄。它仿效传统硬盘的设计、可被绝大部分操作系统的文件系统工具进行卷设置和管理,并提供工业标准的PCI
优酷看钢铁侠
优酷看电影:钢铁侠2008年4月30日刚上映的,还不错!剧情:钢铁般的盔甲是他最强有力的力量之源,没有它,他和任何一个富家子没什么实质区别,有了它,他就成了整个世界的保护神--钢铁侠。[@more@]