(linux系统必须安装了rstatd服务,如果没有就按下面的步骤安装)service rstatd status
1)下装rstatd包(http://sourceforge.net/projects/rstatd;)
2)安装:
a、解压 tar -zxvf rpc.rstatd-4.0.1.tar.gz
cd rpc.rstatd-4.0.1.tar.gz
./configure
make
make install
结束后,运行./rpc.rstatd命令,启动服务
查看是否正常启动,
rpcinfo -p 如果出现下面所示就表示成功了
备注:在安装过程中可能会出现下面的问题
1、系统没有安装gcc编译器(gcc -v)
gcc编译器安装:gcc-4.7.0.tar.bz2
如果没有安装:下装安装
安装过程中出现的问题(用户获得root权限su):
no acceptable c compiler found in $PATH
装yum install gcc
this system is not registored with RHM(该系统没有有红帽子注册)
注册红帽子:
/root(su命令)
cd /etc/yum/repos.d
进入/etc/yum.repos.d/目录,终端中输入wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo即可在此目录下得到CentOS- Base.repo文件,这是centos的源文件,只需将其重命名为rhel-debuginfo.repo即可,以前的文件做个备份。
2、no targets specified and no makefile fond stop
[
你如果要在redhat5编译C/C++程序,你必须安装以下的软件包:
=> autoconf:configure用的
=> make/automake: make的主程序
=> GNU GCC C 编译器(gcc) version 4.1: 编译C的
=> GNU GCC C++ 编译器 (gcc-c++): 编译C++的
]
解决方法:
#yum install gcc gcc-c++ autoconf automake
3、开启rpc服务(service rstatd start)
4、关闭linux防火墙[root@localhost ~]# /etc/init.d/iptables stop