ubuntu安装postman
-
下载 Postman下载地址:https://www.getpostman.com/
-
解压安装
sudo tar -xzf Postman-linux-x64-6.0.10.tar.gz
在当前目录出现一个Postman文件夹, 启动Postman
./Postman/Postman
如果出现
error while loading shared libraries libgconf-2.so.4 cannot open shared object file
错误,则输入命令$sudo apt install libgconf2-4
即可。
-
创建启动图标
(1) 建立软链接
sudo ln -s /home/python/Downloads/Postman/Postman /usr/bin/postman (前面地址为安装目录,后面软链接地址)
(2) 创建启动项文件
sudo vim /usr/share/applications/postman.desktop
写入:
[Desktop Entry] Encoding=UTF-8 Name=postman Exec=postman Icon=/home/shylin/Downloads/Postman/app/resources/app/assets/icon.png Terminal=false Type=Application Categories=Development;
(3) 在dash里搜索Postman,找到图标后拖到侧栏
2018.08.17 出现问题,点击图标打不开Postman,终端使用命令也打不开应用。
下载新版本后(不知是否版本问题),进行如下操作可解决:
报错信息
shylin@shylin:~/Downloads$ ./Postman/Postman
Shared window not present!
解决方法
shylin@shylin:~/Downloads$ rm -rf $HOME/.config/Postman
Shylin