mac连接easyconnnect显示“本地环境出现异常”
解决方法:
- 终端下输入:
vim ~/.zprofile
- 文件内加入如下内容,如下图:
####解决连接easyconnnect显示“本地环境出现异常问题
function EC_start(){/Applications/EasyConnect.app/Contents/Resources/bin/EasyMonitor > /dev/null 2>&1 &/Applications/EasyConnect.app/Contents/MacOS/EasyConnect > /dev/null 2>&1 &open /Applications/EasyConnect.app
}function EC_kill(){pkill EasyMonitorpkill ECAgentpkill ECAgentProxypkill EasyConnect
}
3. 终端输入:source ~/.zprofile
4. 命令行启动:EC_start
5. 命令行结束:EC_kill