# IntelliLicenseServer **Repository Path**: sxc18/IntelliLicenseServer ## Basic Information - **Project Name**: IntelliLicenseServer - **Description**: 搭建自己的jetbrian服务器 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-11-06 - **Last Updated**: 2020-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # IntelliLicenseServer #### 介绍 搭建自己的jetbrian服务器(ps:激活的是2018.1之前版本的,之后的版本激活失败) #### 安装教程 ##### 1. windows环境下 - 直接运行IntelliJIDEALicenseServer_windows_amd64.exe文件 运行结果: ![运行结果](https://images.gitee.com/uploads/images/2019/1106/131927_1ef1bd9d_2336062.png "屏幕截图.png") 这里只是启动了激活服务,接下来需要使用域名来代理这个ip地址(因为现在jetbrian公司把纯ip形式的服务地址给禁了) --- - 使用natapp代理域名 [natapp官网地址](https://natapp.cn/) 注册一个账号就可以使用免费的账户功能,账户价格说明 ![账户价格说明](https://images.gitee.com/uploads/images/2019/1106/132836_922f3111_2336062.png "屏幕截图.png") --- 1. 账户隧道的基本配置 ![输入图片说明](https://images.gitee.com/uploads/images/2019/1106/133850_493b0428_2336062.png "屏幕截图.png") 注册,下载natapp,下载配置文件,配置authtoken --- 2. [使用natapp的本地配置文件官方教程](https://natapp.cn/article/config_ini) ![输入图片说明](https://images.gitee.com/uploads/images/2019/1106/133431_5492b080_2336062.png "屏幕截图.png") --- 3. 运行 ![输入图片说明](https://images.gitee.com/uploads/images/2019/1106/134142_70febb11_2336062.png "屏幕截图.png") 4. 将重定向的域名输入即可 ![输入图片说明](https://images.gitee.com/uploads/images/2019/1106/134409_52046b14_2336062.png "屏幕截图.png") ##### 2. linux环境下 linux环境比较繁琐 [别人写的博客链接](https://blog.csdn.net/a403852386/article/details/79611534) 1. IntelliJIDEALicenseServer_linux_amd64 传到服务器上 2. 修改权限: ``` chmod +x IntelliJIDEALicenseServer_linux_amd64 ``` 3. 输出重定向的方式启动: ``` nohup ./IntelliJIDEALicenseServer_linux_amd64 -p 9494 -u selfName > /dev/null 2>&1 & ``` ps:-p后面是自定义端口,-u后面是自定义用户名 4. 接下来配置nginx,使用一个二级域名方向代理到IntellijIDEAServer上。 ``` # # The default server # server { listen 80; # 已经在域名解析那里创建好了的二级域名 server_name your.domain.com; # Load configuration files for the default server block. include /etc/nginx/default.d/*.conf; location / { proxy_pass http://127.0.0.1:9494/; proxy_redirect off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } error_page 404 /404.html; location = /40x.html { } error_page 500 502 503 504 /50x.html; location = /50x.html { } } ``` #### 感谢 1. 感谢lanyu大神写的激活服务器[他的博客](http://blog.lanyus.com/archives/231.html/comment-page-1)