Skip to content

Commit

Permalink
Merge pull request #645 from midoks/dev
Browse files Browse the repository at this point in the history
面板安装脚本优化
  • Loading branch information
midoks authored Dec 17, 2024
2 parents 3acbad4 + f6786b3 commit 99fcfa5
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,17 @@ Talk is cheap, show me the code. -- linus

### 特别赞助

- [找资源 - 阿里云盘资源搜索引擎](https://zhaoziyuan1.cc)
- [虚位以待](https://bbs.midoks.icu)

### 主要插件介绍

* OpenResty - 轻量级,占有内存少,并发能力强。
* PHP[53-84] - PHP是世界上最好的编程语言。
* MySQL - 一种关系数据库管理系统。
* MariaDB - 是MySQL的一个重要分支。
* MySQL[APT/YUM] - 一种关系数据库管理系统。
* MySQL[community] - 一种关系数据库管理系统。
* MongoDB - 一种非关系NOSQL数据库管理系统。
* PostgreSQL - 功能强大的开源数据库。
* phpMyAdmin - 著名Web端MySQL管理工具。
* Memcached - 一个高性能的分布式内存对象缓存系统。
* Redis - 一个高性能的KV数据库。
Expand Down
2 changes: 1 addition & 1 deletion plugins/data_query/sql_mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def getServerList(self):

local_mysql_yum = "{}/mysql-community/etc/my.cnf".format(mw.getServerDir())
if os.path.exists(local_mysql_yum):
data.append({'name':'本地服务器[community]', 'val':'mysql-community'})
data.append({'name':'本地服务器[Tar]', 'val':'mysql-community'})
return mw.returnData(True, 'ok', data)

@singleton
Expand Down
2 changes: 2 additions & 0 deletions scripts/install/alma.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ dnf install -y mysql-devel
dnf install -y pv
yum install -y bzip2
yum install -y bzip2-devel
yum install -y ncurses-compat-libs
yum install -y numactl

SSH_PORT=`netstat -ntpl|grep sshd|grep -v grep | sed -n "1,1p" | awk '{print $4}' | awk -F : '{print $2}'`
if [ "$SSH_PORT" == "" ];then
Expand Down
2 changes: 2 additions & 0 deletions scripts/install/amazon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ yum install -y pv
yum install -y bc
yum install -y bzip2
yum install -y bzip2-devel
yum install -y ncurses-compat-libs
yum install -y numactl

SSH_PORT=`netstat -ntpl|grep sshd|grep -v grep | sed -n "1,1p" | awk '{print $4}' | awk -F : '{print $2}'`
if [ "$SSH_PORT" == "" ];then
Expand Down
1 change: 1 addition & 0 deletions scripts/install/centos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ yum install -y bc
yum install -y bzip2
yum install -y bzip2-devel
yum install -y ncurses-compat-libs
yum install -y numactl


# if [ -f /usr/sbin/iptables ];then
Expand Down
1 change: 1 addition & 0 deletions scripts/install/euler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ yum install -y bc
yum install -y bzip2
yum install -y bzip2-devel
yum install -y ncurses-compat-libs
yum install -y numactl


# if [ -f /usr/sbin/iptables ];then
Expand Down
1 change: 1 addition & 0 deletions scripts/install/fedora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config
yum install -y wget curl lsof unzip
yum install -y expect
yum install -y ncurses-compat-libs
yum install -y numactl
dnf install crontabs -y

SSH_PORT=`netstat -ntpl|grep sshd|grep -v grep | sed -n "1,1p" | awk '{print $4}' | awk -F : '{print $2}'`
Expand Down
1 change: 1 addition & 0 deletions scripts/install/freebsd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ pkg install -y pv
pkg install -y bc
pkg install -y bzip2
pkg install -y bzip2-devel
pkg install -y numactl

# curl https://sh.rustup.rs -sSf | sh
pkg install -y rust
Expand Down
1 change: 1 addition & 0 deletions scripts/install/opensuse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ zypper install -y freetype2-devel
zypper install -y libargon2-devel

zypper install -y net-tools-deprecated
zypper install -y numactl

# zypper install -y php-config

Expand Down
4 changes: 2 additions & 2 deletions scripts/install/rhel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ if [ "$VERSION_ID" -ge "8" ];then
openssl openssl-devel patchelf libargon2-devel \
ImageMagick ImageMagick-devel libyaml-devel \
pv bc \
ncurses-compat-libs \
ncurses-compat-libs numactl \
readline-devel rpcgen sqlite-devel rar unrar tar unzip vim-minimal wget zip zlib zlib-devel;
do
# dnf --enablerepo=remi,appstream,baseos,epel,extras,powertools install -y oniguruma5php-devel
Expand All @@ -219,7 +219,7 @@ else
make mysql-devel ncurses ncurses-devel net-tools oniguruma oniguruma-devel openldap openldap-devel \
openssl openssl-devel patch pcre pcre-devel perl perl-Data-Dumper perl-devel psmisc python-devel \
pv bc\
ncurses-compat-libs \
ncurses-compat-libs numactl \
python3-devel python3-pip re2c readline-devel rpcgen sqlite-devel tar unzip rar unrar vim-minimal vixie-cron \
wget zip zlib zlib-devel ImageMagick ImageMagick-devel libyaml-devel patchelf libargon2-devel;
do
Expand Down
1 change: 1 addition & 0 deletions scripts/install/rocky.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ yum install -y bzip2-devel
yum install -y libzip-devel
yum install -y re2c
yum install -y ncurses-compat-libs
yum install -y numactl

if [ -f /usr/sbin/iptables ];then

Expand Down

0 comments on commit 99fcfa5

Please sign in to comment.