├── README.md ├── finalspeed_client1.2.zip ├── finalspeed_install1.2.exe ├── finalspeed_server.zip ├── finalspeed_server_windows.zip └── install_fs.sh /README.md: -------------------------------------------------------------------------------- 1 | # finalspeed 2 | finalspeed 3 | 服务器TCP双边加速软件可达到90%的物理带宽利用率 4 | 5 | 6 | 安装脚本: 7 | 8 | rm -f install_fs.sh 9 | wget https://raw.githubusercontent.com/leesiyang/finalspeed/master/install_fs.sh 10 | chmod +x install_fs.sh 11 | ./install_fs.sh 2>&1 | tee install.log 12 | 13 | FinalSpeed介绍、服务端、客户端安装部署(完整说明) 14 | http://www.321wx.com/software/finalspeed-server-client.html 15 | -------------------------------------------------------------------------------- /finalspeed_client1.2.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leesiyang/finalspeed/9addd7711a8c11c3f35942027e4e153f9456a471/finalspeed_client1.2.zip -------------------------------------------------------------------------------- /finalspeed_install1.2.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leesiyang/finalspeed/9addd7711a8c11c3f35942027e4e153f9456a471/finalspeed_install1.2.exe -------------------------------------------------------------------------------- /finalspeed_server.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leesiyang/finalspeed/9addd7711a8c11c3f35942027e4e153f9456a471/finalspeed_server.zip -------------------------------------------------------------------------------- /finalspeed_server_windows.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/leesiyang/finalspeed/9addd7711a8c11c3f35942027e4e153f9456a471/finalspeed_server_windows.zip -------------------------------------------------------------------------------- /install_fs.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin 3 | export PATH 4 | 5 | 6 | install_path=/fs/ 7 | package_download_url=https://raw.githubusercontent.com/leesiyang/finalspeed/master/finalspeed_server.zip 8 | package_save_name=finalspeed_server.zip 9 | 10 | function checkjava(){ 11 | java -version 12 | #echo $? 13 | if [[ $? -le 1 ]] ;then 14 | echo " Run java success" 15 | else 16 | echo " Run java failed" 17 | echo $OS 18 | if [[ $OS = "centos" ]]; then 19 | echo " Install centos java ..." 20 | yum install -y java-1.8.0-openjdk 21 | fi 22 | if [[ $OS = "ubuntu" ]]; then 23 | echo " Install ubuntu java ..." 24 | apt-get install -y openjdk-7-jre 25 | fi 26 | if [[ $OS = "debian" ]]; then 27 | echo " Install debian java ..." 28 | apt-get install -y openjdk-7-jre 29 | fi 30 | fi 31 | # if [[ ! -d "$result" ]]; then 32 | # echo "不存在" 33 | # else 34 | # echo "存在" 35 | # fi 36 | echo $result 37 | } 38 | 39 | 40 | function checkunzip(){ 41 | unzip 42 | #echo $? 43 | if [[ $? -le 1 ]] ;then 44 | echo " Run unzip success" 45 | else 46 | echo " Run unzip failed" 47 | echo $OS 48 | if [[ $OS = "ubuntu" ]]; then 49 | echo " Install ubuntu unzip ..." 50 | apt-get -y install unzip 51 | fi 52 | if [[ $OS = "debian" ]]; then 53 | echo " Install debian unzip ..." 54 | apt-get -y install unzip 55 | fi 56 | if [[ $OS = "centos" ]]; then 57 | echo " Install centos unzip ..." 58 | yum install -y unzip 59 | fi 60 | fi 61 | # if [[ ! -d "$result" ]]; then 62 | # echo "不存在" 63 | # else 64 | # echo "存在" 65 | # fi 66 | echo $result 67 | } 68 | 69 | function checkwget(){ 70 | wget 71 | #echo $? 72 | if [[ $? -le 1 ]] ;then 73 | echo " Run wget success" 74 | else 75 | echo " Run wget failed" 76 | echo $OS 77 | if [[ $OS = "ubuntu" ]]; then 78 | echo " Install ubuntu wget ..." 79 | apt-get -y install wget 80 | fi 81 | if [[ $OS = "debian" ]]; then 82 | echo " Install debian wget ..." 83 | apt-get -y install wget 84 | fi 85 | if [[ $OS = "centos" ]]; then 86 | echo " Install centos wget ..." 87 | yum install -y wget 88 | fi 89 | fi 90 | echo $result 91 | } 92 | 93 | 94 | function checkenv(){ 95 | if [[ $OS = "ubuntu" ]]; then 96 | apt-get update 97 | apt-get -y install libpcap-dev 98 | apt-get -y install iptables 99 | fi 100 | if [[ $OS = "debian" ]]; then 101 | echo "apt-get updateapt-get updateapt-get update" 102 | apt-get update 103 | apt-get -y install libpcap-dev 104 | apt-get -y install iptables 105 | fi 106 | if [[ $OS = "centos" ]]; then 107 | #yum update 108 | yum -y install libpcap 109 | yum -y install iptables 110 | fi 111 | } 112 | 113 | 114 | 115 | function checkos(){ 116 | if [[ -f /etc/redhat-release ]];then 117 | OS=centos 118 | elif [[ ! -z "`cat /etc/issue | grep bian`" ]];then 119 | OS=debian 120 | elif [[ ! -z "`cat /etc/issue | grep Ubuntu`" ]];then 121 | OS=ubuntu 122 | else 123 | echo "Unsupported operating systems!" 124 | exit 1 125 | fi 126 | echo $OS 127 | } 128 | 129 | 130 | # Install finalspeed 131 | function install_finalspeed(){ 132 | rm -f $package_save_name 133 | echo "Download software..." 134 | if ! wget -O $package_save_name $package_download_url ; then 135 | echo "Download software failed!" 136 | exit 1 137 | fi 138 | 139 | if [[ ! -d "$install_path" ]]; then 140 | mkdir "$install_path" 141 | else 142 | echo "Update Software..." 143 | fi 144 | 145 | unzip -o $package_save_name -d $install_path 146 | 147 | sh ${install_path}"restart.sh" 148 | tail -f ${install_path}"server.log" 149 | } 150 | 151 | 152 | checkos 153 | checkenv 154 | checkwget 155 | checkjava 156 | checkunzip 157 | install_finalspeed 158 | --------------------------------------------------------------------------------