Centos7 安裝PhpStorm

來源:互聯網
上載者:User

Centos7 安裝PhpStorm

1.官網下載PhpStorm最新的包,PhpStorm-2017.2.4.tar.gz

解壓tar -zxfPhpStorm-2017.2.4.tar.gz

2然後將解壓出來的目錄移動到你喜歡的目錄

mv PhpStorm /usr/local/phpstorm

cd /usr/local/phpstorm/bin

chmod 777 phpstorm.sh

./phpstorm.sh

3.開始安裝,根據運行提示,輸入相應license,從網上找了一個這個版本的license,測試能用

然後 ln -s /usr/local/phpstorm/bin/phpstorm.sh /usr/local/bin/phpstorm 這個就是給phpstorm建立環境變數,可以在命令列直接輸入phpstorm命令來啟動

(ps:由於安裝後發現沒有案頭表徵圖,所以加入捷徑

1.建立檔案 touch phpstorm.desktop

2.編輯檔案 vim phpstorm.desktop

以下是我的內容:

[Desktop Entry]
Categories=Development;
Comment[zh_CN]=
Comment=
Exec=/usr/local/phpstorm/bin/phpstorm.sh
GenericName[zh_CN]=IDE
GenericName=IDE
Icon=/usr/local/phpstorm/bin/phpstorm.png
MimeType=
Name=PHPStorm
Path=
StartupNotify=true
Terminal=false
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=eddie

儲存,退出。

3.將phpstorm.desktop移動到目錄

sudo mv phpstorm.desktop /usr/share/applications/

4、給檔案添加可執行許可權cd /usr/share/applicationschmod +x phpstorm.desktop)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.