网谋旗下
WANGMOU.COM

Linux版:Fikker缓存一键安装脚本

安装脚本命令

以 CentOS 7.x/8.x 的 64 位版本为例,以 root 根用户登录,一键脚本包含的功能:
a、默认会关闭 iptables/nginx/httpd 服务,避免与 Fikker 的 80/443/6780 端口冲突。
b、默认会下载并解压 Fikker 安装包,推荐默认安装在 /root 目录下面,最后注册成系统服务,并立即启动起来。
打开SSH客户端工具(Linux终端),输入并执行下面这段命令:

FikkerInstallDir="/root" # default installation directory
FikkerNewVersion="fikkerd-3.8.3-linux-x86-64" # package name
service iptables stop 2> /dev/null ; chkconfig iptables off 2> /dev/null ; service httpd stop 2> /dev/null ; service nginx stop 2> /dev/null ; chkconfig httpd off 2> /dev/null ; chkconfig nginx off 2> /dev/null ; systemctl stop firewalld.service 2> /dev/null ; systemctl disable firewalld.service 2> /dev/null ; systemctl stop httpd.service 2> /dev/null ; systemctl stop nginx.service 2> /dev/null ; systemctl disable httpd.service 2> /dev/null ; systemctl disable nginx.service 2> /dev/null ; if [ -f "/usr/bin/apt-get" ]; then apt-get install -y wget tar; fi ; if [ -f "/usr/bin/yum" ]; then yum install -y wget tar; fi ; cd $FikkerInstallDir ; rm -rf $FikkerNewVersion.tar.gz ; wget -c --no-check-certificate https://www.fikker.com/dl/$FikkerNewVersion.tar.gz && tar zxf $FikkerNewVersion.tar.gz && rm -rf $FikkerNewVersion.tar.gz && cd $FikkerNewVersion && ./fikkerd.sh install && ./fikkerd.sh start && cd $FikkerInstallDir && sleep 5 && echo 'finished!'

其他脚本命令

a、停止 Fikker 程序的一键脚本:

service fikkerd stop ; sleep 5 ; echo 'finished!'

b、启动 Fikker 程序的一键脚本:

service fikkerd start ; sleep 5 ; echo 'finished!'

c、重启 Fikker 程序的一键脚本:

service fikkerd restart ; sleep 5 ; echo 'finished!'

d、完全卸载/完全删除 Fikker 程序的一键脚本(默认安装在 /root 目录下面):

cd /root && cd fikkerd-3.?.?-linux-x86-64 && ./fikkerd.sh stop 2> /dev/null ; sleep 2 ; ./fikkerd.sh uninstall ; cd /root && rm -rf fikkerd-3.?.?-linux-x86-64 && echo 'finished!'
赞(0)
本站内容主要由AI生成,但部分资源(内容)整理收集于互联网,版权归原作者所有,如有侵权,联系删除([email protected]),谢谢!