Browse Source

新增实例管理功能

Lemoe 3 năm trước cách đây
mục cha
commit
fff7370832
16 tập tin đã thay đổi với 703 bổ sung111 xóa
  1. 0 1
      Makefile
  2. 36 13
      README.md
  3. BIN
      doc/1.png
  4. BIN
      doc/2.png
  5. BIN
      doc/3.png
  6. BIN
      doc/4.png
  7. BIN
      doc/5.png
  8. BIN
      doc/6.png
  9. BIN
      doc/7.png
  10. BIN
      doc/8.png
  11. BIN
      doc/9.png
  12. BIN
      doc/api-key-1.png
  13. BIN
      doc/api-key-2.png
  14. BIN
      doc/api-key-3.png
  15. BIN
      doc/oci-help-ini.png
  16. 667 97
      main.go

+ 0 - 1
Makefile

@@ -30,7 +30,6 @@ clean:
 $(zip_release): %.zip : %
 	@zip -du $(BUILD_DIR)/$(NAME)-$<-$(VERSION).zip -j -m $(BUILD_DIR)/$</$(NAME)*
 	@zip -du $(BUILD_DIR)/$(NAME)-$<-$(VERSION).zip *.ini
-	@-zip -du $(BUILD_DIR)/$(NAME)-$<-$(VERSION).zip README.md
 	@echo "✅ $(NAME)-$<-$(VERSION).zip"
 
 all: linux-amd64 darwin-amd64 windows-amd64 # Most used

+ 36 - 13
README.md

@@ -1,26 +1,49 @@
 # 甲骨文实例抢购教程
 
-## 添加 API 密钥
+## 获取程序
+- 如果需要在本地电脑运行该程序,根据自己电脑的CPU架构类型,打开下面的 `下载地址` 下载对应的文件即可。如果需要在服务器上运行该程序,那么根据服务器的CPU架构类型选择对应的文件下载到服务器即可。
 
-登录甲骨文云官方网站,点击右上角头像 -> 用户设置 -> API 密钥 -> 添加API 密钥
+- 下载完成后解压压缩包,可以得到可执行程序 (Windows系统: `oci-help.exe` , 其他操作系统: `oci-help` ) 和 配置文件 `oci-help.ini` 
 
-![image](https://github.com/lemoex/oci-help/raw/main/doc/api-key-1.png)
-![image](https://github.com/lemoex/oci-help/raw/main/doc/api-key-2.png)
-![image](https://github.com/lemoex/oci-help/raw/main/doc/api-key-3.png)
+> 下载地址: https://github.com/lemoex/oci-help/releases/latest
 
 
-## 配置
-- 下载编译好的文件 [下载地址](https://github.com/lemoex/oci-help/releases/latest)
+## 获取配置信息
+![image](https://github.com/lemoex/oci-help/raw/main/doc/1.png)
+![image](https://github.com/lemoex/oci-help/raw/main/doc/2.png)
+![image](https://github.com/lemoex/oci-help/raw/main/doc/3.png)
+![image](https://github.com/lemoex/oci-help/raw/main/doc/4.png)
+![image](https://github.com/lemoex/oci-help/raw/main/doc/5.png)
+![image](https://github.com/lemoex/oci-help/raw/main/doc/6.png)
 
-- 解压压缩包,修改配置文件 `oci-help.ini`
 
-![image](https://github.com/lemoex/oci-help/raw/main/doc/oci-help-ini.png)
+## 编辑配置文件
+用文本编辑器打开在第一步获取到的 `oci-help.ini` 文件,进行如下配置:
 
-## 运行
+![image](https://github.com/lemoex/oci-help/raw/main/doc/7.png)
+![image](https://github.com/lemoex/oci-help/raw/main/doc/8.png)
+
+## Telegram 消息提醒配置
+![image](https://github.com/lemoex/oci-help/raw/main/doc/9.png)
+
+> BotFather: https://t.me/BotFather    
+> IDBot: https://t.me/myidbot
+
+
+## 运行程序
 ```bash
-# 前台运行
+# 前台运行程序
 ./oci-help
 
-# 或者在 screen 中后台运行
-screen -S oci-help ./oci-help
+# 前台运行需要一直开着终端窗口,可以在 Screen 中运行程序,以实现断开终端窗口后一直运行。
+# 创建 Screen 终端
+screen -S oci-help 
+# 在 Screen 中运行程序
+./oci-help
+# 离开 Screen 终端
+按下 Ctrl 键不松,依次按字母 A 键和 D 键。或者直接关闭终端窗口也可以。
+# 查看已创建的 Screen 终端
+screen -ls
+# 重新连接 Screen 终端
+screen -r oci-help
 ```

BIN
doc/1.png


BIN
doc/2.png


BIN
doc/3.png


BIN
doc/4.png


BIN
doc/5.png


BIN
doc/6.png


BIN
doc/7.png


BIN
doc/8.png


BIN
doc/9.png


BIN
doc/api-key-1.png


BIN
doc/api-key-2.png


BIN
doc/api-key-3.png


BIN
doc/oci-help-ini.png


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 667 - 97
main.go


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác