使用sudo apt-get install phpstorm 安装php后,没有在桌面生成phpstorm的快捷方式,如果将phpstorm.sh的链接放到/usr/local/bin ,虽然可以从终端启动phpstrom但是当终端关闭时,phpstorm也会被关闭。

1.查找phpstorm.sh的位置

whereis phpstorm|grep ".sh"

Ubuntu安装PhpStorm并设置快速启动phpstorm

看到我的安装位置是:/opt/phpstrom/bin/phpstorm.sh

2.编辑.bashrc

sudo vim ~/.bashrc

最后一行添加:

alias phpstorm='nohup sh /opt/phpstrom/bin/phpstorm.sh >/dev/null >/dev/null 2>&1 &'

3.更新.bashrc

source ~/.bashrc

4.运行phpstorm即可启动phpstorm,而且关闭终端也不会影响软件的正常运行

 

相关文章:

  • 2021-12-05
  • 2021-12-05
  • 2022-12-23
  • 2021-05-11
  • 2021-08-08
  • 2021-07-20
  • 2021-12-08
  • 2022-12-23
猜你喜欢
  • 2021-07-26
  • 2022-12-23
  • 2021-12-05
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案