提交代码

This commit is contained in:
zpc 2024-06-30 17:50:13 +08:00
parent 5edfe6dda3
commit 74549c2fc2
9 changed files with 2389 additions and 15 deletions

View File

@ -73,3 +73,9 @@ sudo cat /etc/mysql/debian.cnf
```sh
GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY "密码";
```
### 导入备份
```sh
mysql -uroot -p your_database_name < /path/to/backup.sql
```

View File

@ -0,0 +1,23 @@
# Docker
## 安装
```sh
# 更新系统包列表:
sudo apt update
# 安装依赖包:
sudo apt install apt-transport-https ca-certificates curl software-properties-common
# 添加 Docker 的官方 GPG 密钥:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
# 添加 Docker APT 仓库:
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
# 更新包列表:
sudo apt update
# 安装 Docker CE社区版
sudo apt install docker-ce
# 启动 Docker 并设置为开机启动:
sudo systemctl start docker
sudo systemctl enable docker
# 验证 Docker 是否安装成功:
sudo docker run hello-world
```

View File

@ -0,0 +1,17 @@
## 安装 mysql 5.7
```sh
## 拉去镜像
docker pull mysql:5.7
## 安装
docker run --name mysql5.7 -e MYSQL_ROOT_PASSWORD=yourpassword -d mysql:5.7
## --name mysql5.7:容器的名称。
## -e MYSQL_ROOT_PASSWORD=yourpassword设置 root 用户的密码。
## -d后台运行容器。
## -p 3306:3306 映射端口
#docker run --name mysql5.7 -e MYSQL_ROOT_PASSWORD=root -d mysql:5.7
## docker run --name mysql5.7 -e MYSQL_ROOT_PASSWORD=root -p 3306:3306 -d mysql:5.7
```

View File

@ -16,7 +16,8 @@ uname -a
hostnamectl
# 删除指纹
ssh-keygen -R 106.75.209.57
ssh-keygen -R 101.43.1.207
ssh-keygen -R 101.43.1.207
#安装ip查看工具
sudo apt-get install net-tools

View File

@ -13,4 +13,6 @@ netsh interface portproxy delete v4tov4 listenport=7860 listenaddress=117.50.182
# 重启
netsh interface portproxy reset
netsh interface portproxy add v4tov4 listenport=5001 listenaddress=192.168.195.4 connectport=5000 connectaddress=127.0.0.1
```

Binary file not shown.

View File

@ -1,14 +0,0 @@
# 星岚魔盒
## linux 账户和控制面板
默认账户为 root初始密码为g3[(ebSUq)6DL
外网面板地址: https://129.211.213.92:25032/275a36c5
内网面板地址: https://10.206.0.10:25032/275a36c5
username: r6ftdo1y
password: a4a78696
## 数据库
xinglanmh.shequtuangou.vip
xinglanmh_shequt
9dG2b5E5cWkzkAya
## 后台管理

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,48 @@
# 星岚魔盒
## linux 账户和控制面板
默认账户为 root初始密码为g3[(ebSUq)6DL
外网面板地址: https://129.211.213.92:25032/275a36c5
内网面板地址: https://10.206.0.10:25032/275a36c5
username: r6ftdo1y
password: a4a78696
## 数据库
xinglanmh.shequtuangou.vip
xinglanmh_shequt
9dG2b5E5cWkzkAya
utf8mb4
utf8mb4_general_ci
docker run --name mysql5.7 -e MYSQL_ROOT_PASSWORD=9dG2b5E5cWkzkAya -p 3306:3306 -d mysql:5.7
docker exec -i mysql5.7 sh -c 'exec mysql -uroot -p"$9dG2b5E5cWkzkAya"' < xinglanmh_shequt_2024-06-30_04-51-20_mysql_data_BR20C.sql
mysql -uroot -p xinglanmh_shequt < /disk/xinglanmh_shequt.sql
## 测试环境数据库
101.43.1.207
xinglanmh_shequt
mhSJjMeS5erzxEX7
## 后台管理
http://101.43.1.207/
后台 admin6 xu258258
## [开发文档](https://www.kancloud.cn/manual/thinkphp6_0/1037483)
```sh
# 运行
php think run
```
外网面板地址: http://101.43.1.207:8888/tencentcloud
内网面板地址: http://10.0.4.3:8888/tencentcloud
username: 1rk9uzos
password: 44fd15edcf5f
Warning:
If you cannot access the panel,
release the following port (8888|888|80|443|20|21) in the security group
注意:初始密码仅在首次登录面板前能正确获取,其它时间请通过 bt 5 命令修改密码
==================================================================