1. 購買服務器地址:https://bwh81.net/clientarea.php,購買後會發送服務器的IP地址、端口、密碼到你註冊的郵件
2. 安裝Mysql,參考:centos7 mysql數據庫安裝和配置 - starof - 博客園 (cnblogs.com)
yum install mysql
yum install mysql-server
yum install mysql-devel
yum install mariadb-server mariadb
systemctl stop mariadb
systemctl enable mariadb
開啓mysql服務:systemctl start mysqld.service
停止mysql服務:systemctl stop mysqld.service
mysql配置文件:vim /etc/my.cnf
進入mysql:mysql -u root -p
設置訪問權限:grant all privileges on *.* to root@'%'identified by 'xxxxx*';
更改密碼:set password for 'root'@'localhost' =password('xxxx');
3. 安裝dotnet5
安裝微軟祕鑰:sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
安裝SDK:sudo yum install dotnet-sdk-5.0
安裝運行時:sudo yum install aspnetcore-runtime-5.0
查看dotnet版本信息:dotnet --info
安裝wget命令:yum -y install wget
4. 安裝jexus
安裝命令:curl https://jexus.org/release/x64/install.sh|sudo sh
配置文件:cd /usr/www/jexus/siteconf/
項目路徑:cd /var/www/default
必須先dotent運行成功:dotnet /var/www/dc/DC.Api.dll 或者:dotnet DC.Api.dll --urls http://173.82.238.100:2023
停止:sudo systemctl rtop jws
開啓:sudo systemctl start jws
重啓:sudo systemctl restart jws
查看端口:netstat -tunlp | grep 2023
nginx位置:/usr/share/nginx/html