Xinu

linux 搭建Jetbrains家族IDE授权服务器
Jetbrains家族IDE授权服务器搭建下载地址链接:https://pan.baidu.com/s/1c3KK...
扫描右侧二维码阅读全文
27
2018/01

linux 搭建Jetbrains家族IDE授权服务器

64f823f9bb27b1dcdfe0b42651914929.png

Jetbrains家族IDE授权服务器搭建

下载地址
链接:https://pan.baidu.com/s/1c3KKSHM 密码:pzsk

下载后有很多版本,如果你电脑是windows,对应的使用windows后缀的,Mac OS使用darwin后缀,

os x 10.12上需要把upx加的壳脱掉,用高点的端口
brew install upx
upx -d IntelliJIDEALicenseServer_darwin_amd64
Ubuntu/centos等没有对应后缀的用linux,要注意区别32/64位,amd64是64位,386是32位。

将IntelliJIDEALicenseServer_linux_amd64上传到任意目录,我这里是root目录,先将名字改了,太长了

mv IntelliJIDEALicenseServer_linux_amd64 IdeaServer

授予可执行权限
chmod +x IdeaServer

启动服务
/root/IdeaServer -p 8899 -prolongationPeriod 999999999999
端口号随意 保证端口通信正常即可
通过nohub命令开启后台执行
nohup /root/IdeaServer -p 8899 -prolongationPeriod 999999999999 >> Idea.out 2>&

服务成功启动后,服务器开启反向代理

server
{
listen 80;
server_name ps.imxiny.com;
root /home/wwwroot/;
 
location / {
proxy_pass http://127.0.0.1:8899;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
 
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
access_log off; #access_log end
error_log /dev/null; #error_log end
}

注册的输入 http://ps.imxiny.com
切记后面不可以有 / ,切记!切记!切记!!

Last modification:January 27th, 2018 at 10:46 pm

Leave a Comment