伴随国内的版权意识的提升,PhpStorm是无法免费使用到最新版。由于原来在Windows机器上免费使用过PhpStorm,发现使用的版本为17版,原来的破解方法为屏蔽IP,配置JetbrainsCrack.jar,填入一个code即可。但将旧版本的JetbrainsCrack.jar放在2020版上是无法正常使用的。所以需要进行以下步骤。
1.屏蔽ip
sudo vim /private/etc/hosts
#添加以下代码
0.0.0.0 account.jetbrains.com
0.0.0.0 www.jetbrains.com
2.安装PhpStorm2017版
http://gd.dh978.com/PhpStorm_36000.zip?key=d6d4e3c8056f0e8c6d2dac486aa5c761
3.将原有存放在Windows电脑上的JetbrainsCrack.jar
拷贝至/Applications/PhpStorm.app/Contents/bin
目录
4.配置JetbrainsCrack.jar
sudo vim /Applications/PhpStorm.app/Contents/bin/phpstorm.vmoptions
#文件底部添加以下内容
-javaagent:/Applications/PhpStorm.app/Contents/bin/JetbrainsCrack.jar
5.网上随便找一个code填入
激活码1
E70JHCOV2H-eyJsaWNlbnNlSWQiOiJFNzBKSENPVjJIIiwibGljZW5zZWVOYW1lIjoi5bGx5Lic55CG5bel5aSn5a2mIiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IkZvciBlZHVjYXRpb25hbCB1c2Ugb25seSIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb2RlIjoiSUkiLCJwYWlkVXBUbyI6IjIwMjEtMDItMTgifSx7ImNvZGUiOiJBQyIsInBhaWRVcFRvIjoiMjAyMS0wMi0xOCJ9LHsiY29kZSI6IkRQTiIsInBhaWRVcFRvIjoiMjAyMS0wMi0xOCJ9LHsiY29kZSI6IlBTIiwicGFpZFVwVG8iOiIyMDIxLTAyLTE4In0seyJjb2RlIjoiR08iLCJwYWlkVXBUbyI6IjIwMjEtMDItMTgifSx7ImNvZGUiOiJETSIsInBhaWRVcFRvIjoiMjAyMS0wMi0xOCJ9LHsiY29kZSI6IkNMIi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YIKwYBBQUHAwEwCwYDVR0PBAQDAgWgMA0GCSqGSIb3DQEBCwUAA4ICAQAF8uc+YJOHHwOFcPzmbjcxNDuGoOUIP+2h1R75Lecswb7ru2LWWSUMtXVKQzChLNPn/72W0k+oI056tgiwuG7M49LXp4zQVlQnFmWU1wwGvVhq5R63Rpjx1zjGUhcXgayu7+9zMUW596Lbomsg8qVve6euqsrFicYkIIuUu4zYPndJwfe0YkS5nY72SHnNdbPhEnN8wcB2Kz+OIG0lih3yz5EqFhld03bGp222ZQCIghCTVL6QBNadGsiN/lWLl4JdR3lJkZzlpFdiHijoVRdWeSWqM4y0t23c92HXKrgppoSV18XMxrWVdoSM3nuMHwxGhFyde05OdDtLpCv+jlWf5REAHHA201pAU6bJSZINyHDUTB+Beo28rRXSwSh3OUIvYwKNVeoBY+KwOJ7WnuTCUq1meE6GkKc4D/cXmgpOyW/1SmBz3XjVIi/zprZ0zf3qH5mkphtg6ksjKgKjmx1cXfZAAX6wcDBNaCL+Ortep1Dh8xDUbqbBVNBL4jbiL3i3xsfNiyJgaZ5sX7i8tmStEpLbPwvHcByuf59qJhV/bZOl8KqJBETCDJcY6O2aqhTUy+9x93ThKs1GKrRPePrWPluud7ttlgtRveit/pcBrnQcXOl1rHq7ByB8CFAxNotRUYL9IF5n3wJOgkPojMy6jetQA5Ogc8Sm7RG6vg1yow==
激活即可。
PhpStorm基于Java语言开发,除入口之外底层均是一样的,所以同版本的激活方式可以用在不通平台之上。个人觉得即使在2017之后的版本变化也不大,也没必要追求最新的版本