在Ubuntu上使用PhpStorm共享项目,通常有以下几种方式:
File
> Settings
(或 PhpStorm Preferences
on macOS)。Deployment
> Configuration
。SFTP
。sudo apt-get install nfs-kernel-server
。sudo mkdir -p /srv/nfs/shares
,sudo chown nobody:nogroup /srv/nfs/shares
,sudo chmod 777 /srv/nfs/shares
。/etc/exports
文件,例如 hostname(rw,sync,no_subtree_check)
。sudo systemctl restart nfs-kernel-server
。cd /var/www/html/my_project
,php -S localhost:8000
。File
> Settings
,选择 Version Control
> Git
,确保Git可执行文件路径正确。Git
> Initialize Repository
。Git
> Add
。Git
> Commit Directory
。以上就是在Ubuntu下使用PhpStorm共享项目的几种常见方法。您可以根据自己的需求选择合适的方式进行操作。