
linux下飞信安装详细过程 安装过程

首先是下载包 包名是fetion20091117-linux.tar.gz

http: //www.it-adv.net/fetion/downng/fetion20091117-linux.tar.gz 包下载地址

本机环境安装到独立的目录

[root@10vps ~]# mkdir /feixin

上传到这个目录中

cd /feixin

[root@10vps feixin]# tar -zxvf fetion20091117-linux.tar.gz

[root@10vps feixin]# cd fx

[root@10vps feixin]# ./fetion

./fetion: error while loading shared libraries: libACE-5.7.2.so: cannot open shared object file: No such file or directory

[root@10vps fx]# cp libACE-5.7.2.so /lib/

[root@10vps fx]# ./fetion

./fetion: error while loading shared libraries: libACE_SSL-5.7.2.so: cannot open shared object file: No such file or directory

[root@10vps fx]# cp libACE_SSL-5.7.2.so /lib

[root@10vps fx]# ./fetion

./fetion: error while loading shared libraries: libssl.so.4: cannot open shared object file: No such file or directory

[root@10vps fx]# cp libssl.so.4 /lib

[root@10vps fx]# ./fetion

./fetion: error while loading shared libraries: libcrypto.so.4: cannot open shared object file: No such file or directory

[root@10vps fx]# cp libcrypto.so.4 /lib/

上面的意思也就是lib里面缺少这几个文件直接拷贝即可,我只是把出错过程也记录下来,文件就在下载的软件包里

出现下面的界面表示飞信安装成功了已经可以运行了

[root@10vps fx]# ./fetion

************************ IMPORTANT STATEMENT ************************

** **

** PLEASE DON’T USE THIS SOFTWARE TO SEND JUNK SHORT MESSAGES. **

** OTHERWISE PLEASE BEAR YOUR OWN CONSEQUENCES. **

** **

** Version:[20091117002-linux] **

*********************************************************************

This program is the console version of China Fetion!

It’s free for personal user.

This project website: http: //www.it-adv.net/

AUTHOR:KelvinH MSN/EMAIL:
[email protected]

Usage:

�Cmobile=[mobile]

�Csid=[sid]

�Cpwd=[pwd]

�Cconfig=[config file] *format:index mobile password

�Cindex=[index no in config file,refer to sample.conf]

�Cdebug *debug mode on

�Chide *login fetion in hidden state

�Cto=[mobile/sid]

�Cadd=[uri]

�Ccommand-path=[command file path]

�Crobotmode

�Cdaemon(linux only)

�Cproxy-ip(http proxy ip)

�Cproxy-port(http proxy port)

�Cmsg-gb=[gb2312/gbk message]

�Cmsg-utf8=[utf8 message]

�Cmsg-type=[0/1/2/3 sms longsms smartmsg mms]

�Cfile-gb=[gb2312/gbk file]

�Cfile-utf8=[utf8 file]

�Cquery-cmcc-no

�Ctestaccount

�Cauto-retry

�Cget-web-session

�Caction=getpiccode �Cmobile=13910000000 �Cpwd=[pwd] (�Cpiccode-url=[url])

�Caction=appsubscribe �Cmobile=[mobile] �Cpwd=[pwd] �Cpic-certificate-id=[certid] �Cpic-cert-code=[certcode] �Capply-sub-service-url=[url]

�Caction=subscribe �Cmobile=[mobile] �Cpwd=[pwd] �Csms-code=[smscode] �Csubscribe-url=[url]

�Caction=updatepwd �Cmobile=[mobile] �Cpwd=[pwd] �Csms-code=[smscode] �Cupdate-pwd-url=[url]

此时即可用下面的命令发送信息了,达到的效果和飞信一样 ,134的用户也就你本人给159的好友发送消息成功(要加了好友才可以发)

[root@10vps feixin]# ./fetion �Cmobile=134******** �Cpwd=password �Cto=159******** �Cmsg-utf8=10vps-test

除此之外你还可以直接发送txt文件内的内容给你的好友发送方法见下

[root@10vps feixin]# vi /tmp/10vps-test.txt

内容随便写 10vps-test 保存后 直接发送即可

[root@10vps feixin]# ./fetion �Cmobile=158******** �Cpwd=password �Cto=159******** �Cfile-utf8=/tmp/10vps-test.txt

发送后好友即可收到你发的信息

后期还可以使用交互的脚本来使用短信重启apache

测试中!本文出自 51CTO.COM技术博客