内容说明
IntelliJ IDEA
价格不菲,但是如果有机会,各位请支持正版,教程仅供学习有交流,IntelliJ IDEA官网
如需激活,可以直接使用http://idealicenseserver.eoekun.top
进行激活.
部署说明
参考IntelliJ IDEA License Server本地搭建教程
以centerOS
为例开始本教程
部署步骤
- 下载IntelliJIDEALicenseServer1.5,并解压
$ wget https://www.erbuxiu.com/wp-content/uploads/2017/10/IntelliJIDEALicenseServerv1.5.tar.gz $ tar -xzvf IntelliJIDEALicenseServerv1.5.tar.gz
- 选择服务器系统对应的程序
$ cd IntelliJIDEALicenseServerv1.5 $ ls IntelliJIDEALicenseServer_darwin_386 IntelliJIDEALicenseServer_linux_amd64 IntelliJIDEALicenseServer_openbsd_386 IntelliJIDEALicenseServer_darwin_amd64 IntelliJIDEALicenseServer_linux_arm IntelliJIDEALicenseServer_openbsd_amd64 IntelliJIDEALicenseServer_freebsd_386 IntelliJIDEALicenseServer_linux_mips IntelliJIDEALicenseServer_windows_386.exe IntelliJIDEALicenseServer_freebsd_amd64 IntelliJIDEALicenseServer_linux_mips64le IntelliJIDEALicenseServer_windows_amd64.exe IntelliJIDEALicenseServer_freebsd_arm IntelliJIDEALicenseServer_linux_mipsle IntelliJIDEALicenseServer_linux_386 IntelliJIDEALicenseServer_netbsd_386
3.
centOS
的64位选择IntelliJIDEALicenseServer_linux_amd64
$ ./IntelliJIDEALicenseServer_linux_amd64 2017/11/01 17:16:19 ************************************************************* 2017/11/01 17:16:19 ** IntelliJ IDEA License Server ** 2017/11/01 17:16:19 ** by: ilanyu ** 2017/11/01 17:16:19 ** http://www.lanyus.com/ ** 2017/11/01 17:16:19 ** Alipay donation: lanyu19950316@gmail.com ** 2017/11/01 17:16:19 ** Please support genuine!!! ** 2017/11/01 17:16:19 ** listen on 0.0.0.0:1017... ** 2017/11/01 17:16:19 ** You can use http://127.0.0.1:1017 as license server ** 2017/11/01 17:16:19 ************************************************************* 2017/11/01 17:16:19 listen tcp4 0.0.0.0:1017: bind: permission denied $ sudo ./IntelliJIDEALicenseServer_linux_amd64 2017/11/01 17:18:08 ** IntelliJ IDEA License Server ** 2017/11/01 17:18:08 ** by: ilanyu ** 2017/11/01 17:18:08 ** http://www.lanyus.com/ ** 2017/11/01 17:18:08 ** Alipay donation: lanyu19950316@gmail.com ** 2017/11/01 17:18:08 ** Please support genuine!!! ** 2017/11/01 17:18:08 ** listen on 0.0.0.0:1017... ** 2017/11/01 17:18:08 ** You can use http://127.0.0.1:1017 as license server ** 2017/11/01 17:18:08 ************************************************************* $ netstat |grep 1017 tcp 0 0 localhost:40736 localhost:1017 TIME_WAIT
- 设置脚本作为后台运行
$ vim runIntelliJIDEALicenseServer.sh `#!/bin/bash ./IntelliJIDEALicenseServer_linux_amd64 >> ./start.log 2>&1 & $ chmod 777 runIntelliJIDEALicenseServer.sh
- 启动服务
$ sudo sh runIntelliJIDEALicenseServer.sh $ tail -f start.log
nginx
反向代理,并开启域名映射 服务通过http://idealicenseserver.eoekun.top/
进行映射. 参考配置:server { listen 80; server_name idealicenseserver.eoekun.top; access_log logs/idealicenseserver.access.log main; location / { proxy_set_header Host $host; proxy_set_header X-Real-Ip $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_pass http://localhost:1017; } }
nginx
配置过程略.- 注册激活
地址写
http://idealicenseserver.eoekun.top
即可
遇到问题
服务搭建完成后,进行激活提示idea can not obtain ticket from
,切换其他版本的程序均无果.
经过从nginx
的访问日志发现,注册激活的请求是//rpc/obtainTicket.action?buildDate=20170718&buildNumber=2017.2.5+Build+IU-172.4343.14.....
在请求中多一个资源分割符/
,于是修改注册地址为http://idealicenseserver.eoekun.top/
为http://idealicenseserver.eoekun.top
即可