|
|
@ -22,7 +22,7 @@ selectAction() { |
|
|
|
echo -e "${GREEN} \ 直接回车一起安装 / ${PLAIN}" |
|
|
|
echo -e "${GREEN} \ 直接回车一起安装 / ${PLAIN}" |
|
|
|
echo -e "${GREEN} ========================================================= ${PLAIN}" |
|
|
|
echo -e "${GREEN} ========================================================= ${PLAIN}" |
|
|
|
echo -e "${YELLOW} System requirements: ${PLAIN}${RED}CentOS 7${PLAIN}${YELLOW} or ${PLAIN}${RED}Ubuntu 20.04${PLAIN}${YELLOW}. ${PLAIN}" |
|
|
|
echo -e "${YELLOW} System requirements: ${PLAIN}${RED}CentOS 7${PLAIN}${YELLOW} or ${PLAIN}${RED}Ubuntu 20.04${PLAIN}${YELLOW}. ${PLAIN}" |
|
|
|
echo -e "${YELLOW} Version: ${PLAIN}${GREEN}1.0.9${PLAIN}${YELLOW} (29 Mar. 2022) ${PLAIN}" |
|
|
|
echo -e "${YELLOW} Version: ${PLAIN}${GREEN}1.1.0${PLAIN}${YELLOW} (15 Apr. 2022) ${PLAIN}" |
|
|
|
echo -e "${YELLOW} Copyright (C) 2021 liveJQ cloud@livejq.fun ${PLAIN}" |
|
|
|
echo -e "${YELLOW} Copyright (C) 2021 liveJQ cloud@livejq.fun ${PLAIN}" |
|
|
|
echo "" |
|
|
|
echo "" |
|
|
|
read -rp "请输入数字选择:" num |
|
|
|
read -rp "请输入数字选择:" num |
|
|
@ -155,6 +155,7 @@ configureUb() { |
|
|
|
#apache2 |
|
|
|
#apache2 |
|
|
|
sed -i 's/80/'${port1:-20000}'/g' /etc/apache2/ports.conf |
|
|
|
sed -i 's/80/'${port1:-20000}'/g' /etc/apache2/ports.conf |
|
|
|
sed -i 's/DirectoryIndex/DirectoryIndex smokeping.cgi/g' /etc/apache2/mods-available/dir.conf |
|
|
|
sed -i 's/DirectoryIndex/DirectoryIndex smokeping.cgi/g' /etc/apache2/mods-available/dir.conf |
|
|
|
|
|
|
|
sed -i 's/<##step##>/120/g' /etc/smokeping/basepage.html |
|
|
|
systemctl enable apache2 smokeping |
|
|
|
systemctl enable apache2 smokeping |
|
|
|
#TCPPing |
|
|
|
#TCPPing |
|
|
|
wget -O /usr/bin/tcpping http://www.vdberg.org/~richard/tcpping |
|
|
|
wget -O /usr/bin/tcpping http://www.vdberg.org/~richard/tcpping |
|
|
@ -215,6 +216,7 @@ configureCe() { |
|
|
|
#httpd |
|
|
|
#httpd |
|
|
|
sed -i 's/Require local/Require all granted/g;' /etc/httpd/conf.d/smokeping.conf |
|
|
|
sed -i 's/Require local/Require all granted/g;' /etc/httpd/conf.d/smokeping.conf |
|
|
|
sed -i 's/Listen 80/Listen '${port1:-20000}'/g' /etc/httpd/conf/httpd.conf |
|
|
|
sed -i 's/Listen 80/Listen '${port1:-20000}'/g' /etc/httpd/conf/httpd.conf |
|
|
|
|
|
|
|
sed -i 's/<##step##>/120/g' /etc/smokeping/basepage.html |
|
|
|
systemctl enable httpd smokeping |
|
|
|
systemctl enable httpd smokeping |
|
|
|
#TCPPing |
|
|
|
#TCPPing |
|
|
|
wget -O /usr/bin/tcpping http://www.vdberg.org/~richard/tcpping |
|
|
|
wget -O /usr/bin/tcpping http://www.vdberg.org/~richard/tcpping |
|
|
|