| 17 |
(For CentOS / RHEL 用户) |
(For CentOS / RHEL 用户) |
| 18 |
sudo dnf install -y libssh-devel systemd-devel |
sudo dnf install -y libssh-devel systemd-devel |
| 19 |
(MSYS2 with MinGW-w64 toolchain 用户) |
(MSYS2 with MinGW-w64 toolchain 用户) |
| 20 |
pacman -S --needed msys2-runtime-devel mingw-w64-x86_64-libssh mingw-w64-x86_64-pcre2 mingw-w64-x86_64-libiconv mingw-w64-x86_64-libmariadbclient |
pacman -S --needed msys2-runtime-devel libssh libssh-devel pcre2-devel mingw-w64-x86_64-libiconv mingw-w64-x86_64-libmariadbclient |
| 21 |
|
|
| 22 |
2) 从Github导出或下载源代码文件 |
2) 从Github导出或下载源代码文件 |
| 23 |
运行以下命令来初始化autoconf/automake环境: |
运行以下命令来初始化autoconf/automake环境: |
| 41 |
6) 修改以下配置文件 |
6) 修改以下配置文件 |
| 42 |
默认配置文件被命名为*.default,请先将其改名。 |
默认配置文件被命名为*.default,请先将其改名。 |
| 43 |
$LBBS_HOME_DIR/conf/bbsd.conf |
$LBBS_HOME_DIR/conf/bbsd.conf |
| 44 |
|
$LBBS_HOME_DIR/conf/bbsnet.conf |
| 45 |
$LBBS_HOME_DIR/conf/badwords.conf |
$LBBS_HOME_DIR/conf/badwords.conf |
| 46 |
$LBBS_HOME_DIR/utils/conf/db_conn.conf.php |
$LBBS_HOME_DIR/utils/conf/db_conn.conf.php |
| 47 |
|
|
| 51 |
|
|
| 52 |
8) 将MySQL服务器的CA证书文件,复制到$LBBS_HOME_DIR/conf/ca_cert.pem |
8) 将MySQL服务器的CA证书文件,复制到$LBBS_HOME_DIR/conf/ca_cert.pem |
| 53 |
|
|
| 54 |
9) 创建SSH2 RSA证书 |
9) 创建SSH2 RSA / ED25519 证书 |
| 55 |
ssh-keygen -t rsa -C "Your Server Name" -f $LBBS_HOME_DIR/conf/ssh_host_rsa_key |
ssh-keygen -t rsa -C "Your Server Name" -f $LBBS_HOME_DIR/conf/ssh_host_rsa_key |
| 56 |
|
ssh-keygen -t ed25519 -C "Your Server Name" -f $LBBS_HOME_DIR/conf/ssh_host_ed25519_key |
| 57 |
|
ssh-keygen -t ecdsa -C "Your Server Name" -f $LBBS_HOME_DIR/conf/ssh_host_ecdsa_key |
| 58 |
|
|
| 59 |
10) 启动服务程序 |
10) 启动服务程序 |
| 60 |
sudo -u bbs $LBBS_HOME_DIR/bin/bbsd |
sudo -u bbs $LBBS_HOME_DIR/bin/bbsd |