在CentOS上配置Postman可以通过以下步骤完成:
tar -xzf Postman-linux-x64-*.tar.gz -C /opt
请注意将“Postman-linux-x64-*.tar.gz”替换为您下载的实际文件名,并将“/opt”替换为您要安装Postman的目标目录。
sudo ln -s /opt/Postman/Postman /usr/bin/postman
请注意将“/opt/Postman/Postman”替换为实际的Postman可执行文件路径。
export PATH=$PATH:/path/to/postman/folder
请确保将 /path/to/postman/folder
替换为您实际保存Postman文件夹的路径。
sudo touch /usr/share/applications/postman.desktop
sudo vim /usr/share/applications/postman.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Postman
GenericName=Api Tools
Comment=Postman
Exec=/usr/bin/postman
Terminal=false
MimeType=text/plain
Icon=/usr/local/postman/app/resources/app/assets/icon.png
Categories=Development;
StartupNotify=true
Actions=Window;Document;
[Desktop Action Window]
Name=New Window
Exec=/usr/bin/postman -n
OnlyShowIn=Unity;
[Desktop Action Document]
Name=New File
通过以上步骤,您可以在CentOS上成功配置并启动Postman。