Skip to content

MacOS遇到的问题总结+解决方法 #169

@Pine1201

Description

@Pine1201

1.版本选择

我的配置是M1` mac,版本 macOS Monterey 12.5
Arm64版本不可用,使用Darwin64。
所以只要MacOS 就选Darwin64。

2.stairspeedtest不可用

iShot_2022-08-01_19 45 52

不清楚

3..webserver.sh 打开127.0.0.1:10870会跳转。

use webgui.sh rather than webserver.sh then turn to the page 127.0.0.1:10870 or localhost:10870 and click the gui.html
Originally posted by @ExAxoncel in #133 (comment)

使用webgui.sh
怀疑被劫持,建议使用webgui.sh。

4. 自带的websocketd在Mac 12 monterey上已经不能使用

自带的websocketd在Mac 12 monterey上已经不能使用,需要到 https://github.com/joewalnes/websocketd 下载新版本替换 Originally posted by @knightdf in #160 (comment)

未实验,建议替换。

5. gui显示后端无法连接

我mac也是这样,我研究了下,现在可以测速了
1.下载stairspeedtest_reborn_darwin64.tar.gz
2.解压缩,得到stairspeedtest文件夹
3.终端cd到该文件夹内
4.输入命令: sudo bash webgui.sh,看log拿到websocket端口号(Starting WebSocket server这条)
5.进入tools/gui,编辑gui.html
6.第367行,将this.connect("ws://" + window.location.href)改成this.connect("ws://127.0.0.1:65430");,65430为websocket端口号
7.chrome打开gui.html,就可以了
Originally posted by @damyeX in #133 (comment)

直接把gui.html 中this.connect("ws://" + window.location.href)改成this.connect("ws://127.0.0.1:65430") 貌似不需要改端口,默认都是65430。

6.gui.html 无法上传文件

问题在于html,作者写了一个函数判断文件类型和大小的代码。
所以只能上传json和二进制文件。
代码修改为
beforeUpload(file) { // const isType = file.type === 'text/plain' || file.type === 'text/yaml' const fsize = file.size / 1024 / 1024 <= 2; /*if (!isType) { this.$message.error('选择的文件格式有误!'); } */ if (!fsize) { this.$message.error('上传的文件不能超过2MB!'); } //return isType && fsize; return fsize; },
即可上传所有类型文件,实测txt和yaml都可以识别。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions