linux下安装启动rpc服务
1.上传包
rocky:~ # ls
Desktop dts.xml jdk1..0_41 oswbb rpc.rstatd-4.0. rpc.rstatd-4.0..tar.gz
rocky:~ # cd rpc.rstatd-4.0.
rocky:~/rpc.rstatd-4.0. # ls
aclocal.m4 config.h configure.in getdata22.c getdata24.h getdata.c install-sh missing rpc.rstatd. rstat_main.c rstat_svc.c rsysinfo. rup.c
AUTHORS config.h.in COPYING getdata22.h getdata26.c getdata.h Makefile.am mkinstalldirs rstat_clnt.c rstat_proc.c rstat.x rsysinfo.c
ChangeLog configure depcomp getdata24.c getdata26.h INSTALL Makefile.in README rstatd. rstat_proc.h rstat_xdr.c rup.
2.配置
rocky:~/rpc.rstatd-4.0. # ./configure
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
/root/rpc.rstatd-4.0./missing: Unknown `--run' option
Try `/root/rpc.rstatd-4.0./missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gawk... (cached) gawk
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for a BSD-compatible install... /bin/install -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for ANSI C header files... (cached) yes
checking return type of signal handlers... void
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
3.编译
rocky:~/rpc.rstatd-4.0. # make
rm -f rstat.h
rpcgen -h -o rstat.h rstat.x
make all-am
make[]: Entering directory `/root/rpc.rstatd-4.0.'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT rup.o -MD -MP -MF ".deps/rup.Tpo" -c -o rup.o rup.c; \
then mv -f ".deps/rup.Tpo" ".deps/rup.Po"; else rm -f ".deps/rup.Tpo"; exit ; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT rstat_xdr.o -MD -MP -MF ".deps/rstat_xdr.Tpo" -c -o rstat_xdr.o rstat_xdr.c; \
then mv -f ".deps/rstat_xdr.Tpo" ".deps/rstat_xdr.Po"; else rm -f ".deps/rstat_xdr.Tpo"; exit ; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT rstat_clnt.o -MD -MP -MF ".deps/rstat_clnt.Tpo" -c -o rstat_clnt.o rstat_clnt.c; \
then mv -f ".deps/rstat_clnt.Tpo" ".deps/rstat_clnt.Po"; else rm -f ".deps/rstat_clnt.Tpo"; exit ; fi
gcc -g -O2 -o rup rup.o rstat_xdr.o rstat_clnt.o
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT rsysinfo.o -MD -MP -MF ".deps/rsysinfo.Tpo" -c -o rsysinfo.o rsysinfo.c; \
then mv -f ".deps/rsysinfo.Tpo" ".deps/rsysinfo.Po"; else rm -f ".deps/rsysinfo.Tpo"; exit ; fi
gcc -g -O2 -o rsysinfo rsysinfo.o rstat_xdr.o rstat_clnt.o
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT rstat_svc.o -MD -MP -MF ".deps/rstat_svc.Tpo" -c -o rstat_svc.o rstat_svc.c; \
then mv -f ".deps/rstat_svc.Tpo" ".deps/rstat_svc.Po"; else rm -f ".deps/rstat_svc.Tpo"; exit ; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT rstat_proc.o -MD -MP -MF ".deps/rstat_proc.Tpo" -c -o rstat_proc.o rstat_proc.c; \
then mv -f ".deps/rstat_proc.Tpo" ".deps/rstat_proc.Po"; else rm -f ".deps/rstat_proc.Tpo"; exit ; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT rstat_main.o -MD -MP -MF ".deps/rstat_main.Tpo" -c -o rstat_main.o rstat_main.c; \
then mv -f ".deps/rstat_main.Tpo" ".deps/rstat_main.Po"; else rm -f ".deps/rstat_main.Tpo"; exit ; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT getdata.o -MD -MP -MF ".deps/getdata.Tpo" -c -o getdata.o getdata.c; \
then mv -f ".deps/getdata.Tpo" ".deps/getdata.Po"; else rm -f ".deps/getdata.Tpo"; exit ; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT getdata22.o -MD -MP -MF ".deps/getdata22.Tpo" -c -o getdata22.o getdata22.c; \
then mv -f ".deps/getdata22.Tpo" ".deps/getdata22.Po"; else rm -f ".deps/getdata22.Tpo"; exit ; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT getdata24.o -MD -MP -MF ".deps/getdata24.Tpo" -c -o getdata24.o getdata24.c; \
then mv -f ".deps/getdata24.Tpo" ".deps/getdata24.Po"; else rm -f ".deps/getdata24.Tpo"; exit ; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT getdata26.o -MD -MP -MF ".deps/getdata26.Tpo" -c -o getdata26.o getdata26.c; \
then mv -f ".deps/getdata26.Tpo" ".deps/getdata26.Po"; else rm -f ".deps/getdata26.Tpo"; exit ; fi
gcc -g -O2 -o rpc.rstatd rstat_svc.o rstat_xdr.o rstat_proc.o rstat_main.o getdata.o getdata22.o getdata24.o getdata26.o
make[]: Leaving directory `/root/rpc.rstatd-4.0.'
4.安装
rocky:~/rpc.rstatd-4.0. # make install
make install-am
make[]: Entering directory `/root/rpc.rstatd-4.0.'
make[]: Entering directory `/root/rpc.rstatd-4.0.'
test -z "/usr/local/bin" || mkdir -p -- . "/usr/local/bin"
/bin/install -c 'rup' '/usr/local/bin/rup'
/bin/install -c 'rsysinfo' '/usr/local/bin/rsysinfo'
test -z "/usr/local/sbin" || mkdir -p -- . "/usr/local/sbin"
/bin/install -c 'rpc.rstatd' '/usr/local/sbin/rpc.rstatd'
make[]: Nothing to be done for `install-data-am'.
make[]: Leaving directory `/root/rpc.rstatd-4.0.'
make[]: Leaving directory `/root/rpc.rstatd-4.0.'
5.测试
rocky:~/rpc.rstatd-4.0. # /usr/local/sbin/rpc.rstatd
Cannot register service: RPC: Unable to receive; errno = Connection refused
rocky:~/rpc.rstatd-4.0. #
rocky:~/rpc.rstatd-4.0. # /etc/rc.d/init.d/portmap start
Starting portmap...
rocky:~/rpc.rstatd-4.0. # /etc/rc.d/init.d/portmap status
portmap is running with Process ID(s) .
rocky:~/rpc.rstatd-4.0. # /usr/local/sbin/rpc.rstatd
rocky:~/rpc.rstatd-4.0. #
rpc 包下载 http://pan.baidu.com/s/1mhjHaJI
linux下安装启动rpc服务的更多相关文章
- Linux下安装配置SNMP服务
一.安装snmp服务 1.检查系统是否已经安装snmp的rpm包 以下是安装snmp服务需要的rpm包: libsensors3-2.10.6-55.el5.i386.rpm lm_sensors-2 ...
- Linux下安装启动多个Mysql
网上找了N多资料,没有一个可以顺利成功的,郁闷,可能是水平有限吧...!本人经过不断的研究.测试,完整实现Linux下启动两台MySQL,而且对mysql有了更深入的了解...废话不多说,走着! 步骤 ...
- Linux下安装启动nginx的过程
1.首先将nginx的安装包传到虚拟机里的/home目录下 2.为了方便nginx运行而不影响linux安全需创建组合用户 groupadd -r nginxuseradd -r -g nginx ...
- Centos | Linux 下安装启动 mysql 出现 8618 [ERROR] Aborting,查看日志:Plugin 'FEDERATED' is disabled.
1.试试启动时指定配置文件 ./bin/mysqld_safe --defaults-file=mysql.cnf 或 ./bin/mysqld_safe --defaults-file=mysql. ...
- Linux下的启动oracle服务 启动监听 开放端口操作
尝试登录oracle 使用root用户将没有sqlplus命令 [root@localhost ~]# sqlplus /nolog bash: sqlplus: 未找到命令... [root ...
- Linux下安装Tomcat服务器
Linux下安装Tomcat服务器 一.总结 一句话总结: linux多用才能熟 1.阿里云上面我们买的服务器,怎么让它可以访问特定的端口? 就是给服务器的安全组添加规则:实例-->更多--&g ...
- 自动化服务部署(二):Linux下安装jenkins
jenkins是一个Java开发的开源持续集成工具,广泛用于项目开发,具有自动化构建.测试和部署等功能,它的运行需要Java环境. 上篇博客介绍了Linux下安装JDK的步骤,这篇博客,介绍下Linu ...
- 在Win7环境下安装启动Linux
在Win7环境下安装启动Linux 在Win7系统下,安装启动Linux特别的不方便,由于XP下的boot.ini配置文件不在了,要加入�一下启动选项的话, 仅仅能使用专门的工具,这或多或少给人带来不 ...
- (转) Linux安装启动FTP服务
Linux安装启动FTP服务 Linux服务器默认是没有开启FTP服务的.也没有FTP服务器,为了文件的传输需要用到FTP服务器,以典型的vsftpd为例.vsftpd作为FTP服务器,在Linux系 ...
随机推荐
- iOS 9学习系列:打通 iOS 9 的通用链接(Universal Links)
在WWDC 2015 上, Apple 为 iOS 9 宣布了一个所谓 通用链接 的深层链接特性, 视频地址为 [无缝链接到您的 App].虽然它不是一个必须实现的功能, 但还是需要引起一些注意. 在 ...
- linux的安装
在CentOS 7中提供了两种桌面"GNOME DESKTOP" 和 "KDE Plasa Workspaces",我们以安装"GNOME DESKT ...
- <c:if test="value ne, eq, lt, gt,...."> 用法
类别 运算符 算术运算符 + . - . * . / (或 div )和 % (或 mod ) 关系运算符 == (或 eq ). != (或 ne ). < (或 lt ). > (或 ...
- 替换Jar包里文件
jar uvf test.jar com/test/test.class 这里值得注意的是 test.class 必须放在com/test 文件下,要和jar的路径对应起来.不然会说 没有这个文件或 ...
- 如何设置Vimrc
.title { text-align: center } .todo { font-family: monospace; color: red } .done { color: green } .t ...
- 利用C# Winform做Windows系统任务栏
最近公司做一个考试系统,需要一个答题栏,要求:占用屏幕上方一部分区域,而且始终置顶,当其他窗口最大化时"答题栏"始终置前并且不遮挡最大化窗口的任何部分!就像windows任务栏一样 ...
- memcache的lru删除机制
惰性删除,get时才删除 LRU原理:当某个单元被请求的时候,维护一个计数器,通过计数器来判断最近谁最少使用,那就把谁踢出去. 注:即使某个key设置的永久有效,也会被踢出来,这个就是永久数据被踢的现 ...
- 《UML大战需求分析》阅读随笔(五)
在处理复杂事物的时候,用到一种基本手段就是抽象.抽象的目的是区别事物之间的本质和不同,面向对象编程(OOP)的实质就是利用 类和对象来建立抽象模型. 类表示对象的类别,是创建对象的蓝本.建立一个事物的 ...
- Delphi的三目运算 ifthen 和iif
system.Math和system.StrUtils都有IfThen方法, 返回字符串和 返回 数值型 system.Math.IfThen(vehicle.MILE=0,0,StrToFloat( ...
- Java 正则表达式匹配模式[贪婪型、勉强型、占有型]
Greediness(贪婪型):最大匹配 X?.X*.X+.X{n,} 是最大匹配.例如你要用 “<.+>” 去匹配 “a<tr>aava </tr>abb”,也许 ...