ubuntu - 如何在 Ubuntu 上安装 Postman Native?

标签 ubuntu postman

我已尝试以下步骤,但它对我不起作用:

(1) wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz

(2) sudo tar -xzf postman.tar.gz -C/opt

(3) rm postman.tar.gz

(4) sudo ln -s/opt/Postman/Postman/usr/bin/postman

引用: How to install/start Postman native v4.10.3 on Ubuntu 16.04 LTS 64-bit? 。 当我尝试步骤 4 时,遇到以下错误: “ln:无法创建符号链接(symbolic link)'/usr/bin/postman':文件存在”

然后我搜索了更多信息,然后尝试了这个命令: sudo unlink/usr/bin/utserver 输出这些错误“unlink:无法取消链接'/usr/bin/utserver':没有这样的文件或目录”。

我再次尝试了另一个命令sudo rm/usr/bin/utserver然后输出这些错误“rm:无法删除'/usr/bin/utserver':没有这样的文件或目录” 。 感谢您的帮助。

最佳答案

错误只是说您尝试创建的符号链接(symbolic link)已经存在......所以只需将其删除

ls -la /usr/bin/postman  #  issue this to confirm it exists

sudo rm /usr/bin/postman  #  remove it if it exists

现在只需再次运行您的 (4) 命令

sudo ln -s /opt/Postman/Postman /usr/bin/postman

通过发出确认安装有效

which  postman  # if installed it will say :  /usr/bin/postman

关于ubuntu - 如何在 Ubuntu 上安装 Postman Native?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48687296/

相关文章:

c++ - 我从哪里获得 qm 可执行文件?

javascript - postman 请求链接

ssl - 如何在 Postman 中使用自签名证书?

ubuntu - boost::posix_time' 尚未声明

rest - 在 HTTP 请求 '...' 中找到的 MAC 签名与任何计算签名都不相同

Postman 中的 Php 连接文件错误

spring - 尝试用 postman 上传 MultipartFile

ubuntu - 运行特定的剧本

python - 没有选择要创建的模式...错误

c - 删除 Lex 中的空白区域