33 Home
Mr Chen edited this page 2023-11-28 20:29:54 +08:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

欢迎使用mdserver-web软件,请查看说明,如果你有更好的想法请提issue。

Debian10安装FAQ

sudo sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
apt update -y
apt install curl -y

针对DVdebian镜像中127.0.0.1无法使用的问题。

  • cat /etc/network/interfaces
# network-config
auto lo
iface lo inet loopback
    dns-nameservers 8.8.8.8
    dns-search local

auto eth0
iface eth0 inet static
    address 10.0.11.2
    netmask 255.255.255.0
    gateway 10.0.11.1
  • 修改配置为如下,重启服务器即可正常使用了。
# network-config
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
    address 10.0.11.2
    netmask 255.255.255.0
    gateway 10.0.11.1
    dns-nameservers 8.8.8.8
    dns-search local

国内换源

bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)

登录操作

1.正确登录之后修改密码不会在【mw default】显示。
2.验证码错误和密码错误再超过4次之后就会关闭需要管理员删除特定文件才能继续登录。 

Debian 32位安装FAQ

//安装rust
curl https://sh.rustup.rs -sSf | sh 
或
apt install rustc

pip install bcrypt==3.1.3
cd /www/server/mdserver-web && source bin/activate && pip install bcrypt==3.1.3

pip install psutil
cd /www/server/mdserver-web && source bin/activate && pip install psutil

进入虚拟环境

cd /www/server/mdserver-web && source bin/activate

手动执行插件

cd /www/server/mdserver-web && python3 /www/server/mdserver-web/plugins/swap/index.py status 1.0

cd /www/server/mdserver-web && python3 /www/server/mdserver-web/plugins/varnish/index.py run_info
cd /www/server/mdserver-web/plugins/php && /bin/bash install.sh install 74
cd /www/server/mdserver-web && python3 /www/server/mdserver-web/plugins/mysql/index.py fix_db_access
cd /www/server/mdserver-web && python3 /www/server/mdserver-web/plugins/mysql-apt/index.py fix_db_access
cd /www/server/mdserver-web && python3 /www/server/mdserver-web/plugins/mysql/index.py do_full_sync {"db":"ALL","sign":"","begin":0} 

DEBUG[PHP]

cd /www/server/mdserver-web/plugins/php && sh -x /www/server/mdserver-web/plugins/php/versions/56/install.sh install
cd /www/server/mdserver-web && python3 /www/server/mdserver-web/plugins/php/index.py install_lib 53 {"name":"intl","version":"53","type":"1"}

负载简述

负载状态图表中百分比的含意:
  50% 以下  -  此时服务器正以低负载状态运行
  50 ~ 90%  - 服务器负载正常,用户的请求可以及时得到服务器响应
  90% ~ 100% - 表示服务器资源已耗尽,无法及时响应用户请求,需尽快排查项目是否运行异常,或增加服务器配置。

影响服务器负载的因素:
  1、CPU使用率
  2、线程数量
  3、IO使用率
  4、swap使用率
  5、因宿主机负载过高导致资源分配不足