postman下载
或者通过snap安装
snap install postman
从官网下载之后,下载文件为 postman-linux-x64.tar.gz
解压缩:
tar -zxvf postman-linux-x64.tar.gz
# move to /opt
sudo mv Postman /opt
或者直接指定解压缩目录
tar -zxvf postman-linux-x64.tar.gz -C /opt
运行
cd /opt/
./Postman/Postman
运行白屏解决
可能是环境变量的问题:
设置临时环境变量验证一下:export POSTMAN_DISABLE_GPU=true
运行发现问题解决了:
sudo gedit /etc/profile
末尾加入:
export POSTMAN_DISABLE_GPU=true
export PATH=$PATH:$POSTMAN_DISABLE_GPU
创建快捷方式
创建软链接:
sudo ln -s /opt/Postman/Postman /usr/bin/postman
创建快速启动:
sudo vim /usr/share/applications/postman.desktop
输入以下内容:
[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=postman
Icon=/opt/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;
赋予可执行权限
sudo chmod +x /usr/share/applications/postman.desktop
复制到桌面
cp /usr/share/applications/postman.desktop ~/Desktop