下载用于授权的文件https://drive.google.com/file/d/0Bx7wGDIg2K-7MlA3RndvanJKaTQ/view?usp=sharing
Step 2
找到自己操作系统的版本,我这里使用IntelliJIDEALicenseServer_linux_amd64,上传到 VPS(如 /root 路径下)
Step 3
运行 nohup ./root/IntelliJIDEALicenseServer_linux_amd64 -p 1017 > /dev/null 2>&1 &,即可后台启动认证程序。其中 -p port 命令用于设置监听的端口,激活时会用到。
Step 4
如果想要开机自动启动程序,在 /etc/rc.local 的 exit 0 前加入第3步的命令即可
Step 5
运行 IntelliJ IDEA, 在激活界面中选择 License server, License server address 中填入 http://你的vpsip:端口, 点击 OK 即可激活。
Step 6
如果有个人的域名绑定到 VPS 上,可以使用 Nginx 反向代理,这样可以省去 License server address 中的端口。Nginx 配置大致如下:
server{
listen 80;
server_name 你的域名;
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://127.0.0.1:端口/;
proxy_redirect off;
}
}
重启 Nginx,搞定!!!
评论