在Ubuntu上安装Postman有多种方法,以下是一些常用的安装步骤:
Snap是Ubuntu推荐的安装方式,因为它包含了应用程序所需的所有库,并且与应用程序本身捆绑在一起。
sudo apt update
sudo apt install snapd
sudo snap install postman
postman
命令启动Postman。wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
sudo tar -xzf postman.tar.gz -C /opt
sudo ln -s /opt/Postman/Postman /usr/local/bin/postman
sudo nano /usr/share/applications/postman.desktop
在打开的文件中,复制并粘贴以下内容:
[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=/opt/Postman/Postman
Icon=/opt/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;
按 Ctrl + X
保存并退出nano编辑器。
5. 更新桌面启动器:
sudo update-desktop-database
postman
命令启动Postman。sudo
命令启动Postman,因为它可能会在Postman创建的文件上产生权限问题。libgconf-2.so.4
缺失的错误,可以输入以下命令安装所需的库:sudo apt install libgconf2-4
通过以上步骤,您可以在Ubuntu上成功安装并选择所需的Postman版本。建议使用Snap安装,因为它更易于管理和更新。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:Postman Ubuntu版本如何更新