Luminati LPM在Linux下安装教程
Luminati安装
curl -L https://luminati-china.io/static/lpm/luminati-proxy-latest-setup.sh | bash
安装成功后提示:
Luminati installed successfully!
Luminati install script complete. Install id: AgNsTMoge3sacaqAjboRbRATuTKYwFjm
To run the process enter 'luminati'
输入luminati
回车后就启动了,启动成功截图:
如果你的Ubuntu服务器是有桌面的,打开浏览器访问上图的 http://127.0.0.1:22999 ,就可以看到登录页面了。
如果服务器上没有桌面和浏览器,本地浏览器直接访问服务器IP:22999,如果也能出现上图界面就说明安装成功了,如果没出现,一般是被服务器的防火墙给拦住了。
对于有些云空间需要允许22999端口即可,如果是防火墙请参考下面官方的设置:
Linux / MacOS
Check if firewall is enabled:
sudo ufw status
If firewall is active, open any port you are planning to use (22999 in this example):
sudo ufw allow 22999
On your router: follow router specific instructions to forward port 22999 to your local IP address
CentOS
Open any port you are planning to use (22999 in this example):
sudo firewall-cmd --zone="public" --add-port=22999/tcp --permanent
Reload firewall settings: sudo firewall-cmd --reload
现在虽然luminati是启动了,但是当前远程连接是不能关闭的,因为关闭了luminati命令行就会被结束,我们现在添加luminati到开机启动。
vim /etc/systemd/system/lpm.service
填写内容
[Unit]
Description=Luminati proxy manager
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
Restart=always
RestartSec=1
Environment=NODE_ENV=production
ExecStart=/usr/local/bin/luminati
User=root
StandardOutput=null
StandardError=null
[Install]
WantedBy=multi-user.target
重启服务systemctl daemon-reload
启动luminati:systemctl start lpm
检查状态:systemctl status lpm.service
控制启动/停止/重启:service lpm start/stop/restart
现在访问本地浏览器直接访问服务器IP:22999,出现登录页面,就说明安装完毕了,后续就可以正常通过服务器IP来进行管理和调用了。
登录成功后在常规设置里,添加代理IP白名单,这样只有你自己的服务器或者本机IP才可以通过代理。这里是全局设置,也可以针对每个单独的zone来设置白名单。
下面是自动化创建家庭静态zone:
如果创建后在lpm里提示zone is disable就是删除lpm里面的proxy并重新创建端口即可。