Veritas Linux Cluster
Get Redhat Enterprise 3.0 from:
Your local RedHat rep�
Get Veritas’ VCS and VM products from:
ftp://ftp.veritas.com/pub/products/fst_ha.lxrt2.2.redhatlinux.tar.gz
ftp://ftp.veritas.com/pub/products/fst_ha.lxrt2.2MP1.redhatlinux.tar.gz
You will need a temporary key to complete this install. Please
contact your local Veritas account team or email me at
rich@robotthoughts.com
Install RedHat Enterprise Linux 3.0:
Put CD1 in your CD drive and reboot.
Make sure you select the smb-server packages during the install. You need that package to run Samba for Windows file-sharing.
Follow the install for your hardware and set up the boot disk to
your liking. Be sure and leave some extra room on the disk (a least an
extra 2-5 Gb) if you plan to encapsulate the boot volume.
Pay attention to how you setup the Ethernet cards. In Linux your
cards will most likely be eth0, eth1, eth2. In my case I had two
on-board Ethernet ports and one PCI based Ethernet card. Most Linux
installs will recognize the on-board NIC ports first and then any PCI
slots. During the install, I configured the public interface as eth2
and left the on-board cards (eth0 and eth1) for the heartbeat network.
Keep that in mind for the VCS install later.
Finally, you should try to configure X for your hardware. This will
come in handy later for running the GUIs locally. Of course, you can
always connect remotely from another workstation.
After both systems have rebooted, make sure you add the other node�s
hostname to the /etc/hosts file on both machines. So linuxnode1 will
look like this and linuxnode2 should be just the opposite:
[root@linuxnode1]# cat /etc/hosts
127.0.0.1 linuxnode1 localhost.localdomain localhost
192.168.1.113 linuxnode2
Install VM:
Time to install the RPMs. Order is important.
cd to the rpms directory on the fst_ha.lxrt2.2 CD and run this command:
rpm -Uvh VRTSvlic-3.00-008.i686.rpm
VRTSvxvm-3.2-update4_RH.i686.rpm VRTSvmdoc-3.2-update4
相关文档:
准备工作:
用到的perl 扩展组件(modules)在上篇贴出.( win32::odbc 模块
)下载组件后按照Readme文件安装倒响应目录.配置好相应的odbc数据源.
程序实现:
使用
use
Win32::ODBC;
语句包含应使用的模块是win32::odbc,写出数据库
连接字符串
$DSN = "DSN =
My DSN ......
在Linux里面一切皆文件,从文件学起来,最常见的命令就是查看文件和搜索文件。
下面简单的总结下这几个命令:
查看文件(cat,tac,more,less,head,tail,od)
cat:
cat [file]
查看文件的内容。全程式concatenate的意思,将文件内容连续输出到屏幕上。第一行到最后一行显示。
tac:
tac [file]
和cat刚好相反 是从 ......
一 、Linux文件结构
文件结构是文件存放在磁盘等存贮设备上的组织方法。主要体现在对文件和目录的组织上。
目录提供了管理文件的一个方便而有效的途径。
Linux使用标准的目录结构,在安装的时候,安装程序就已经为用户创建了文件系统和完整而固定的目录组成形式,并指定了每个目录的作用和其中的文件类型 ......
转自:http://www.cic.tsinghua.edu.cn/jdx/book1/CHAPTER3.htm
在源文件开始增加#include <winsock.h>语句。
调用WSAStartup()函数初始化Windows Sockets DLL,并在结束时调用WSACleanup()函数通知Windows Sockets DLL释放资源。
将套接字的类型为int改为SOCKET。
获取、设置错误码不要使用全局变量er ......
功能描述:
获取一些文件相关的信息。
用法:
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
int stat(const char *path, struct stat *buf);
int fstat(int filedes, struct stat *buf);
int lstat(const char *path, struct stat *buf);
参数:
path:文件 ......