jrohy / trojan Goto Github PK
View Code? Open in Web Editor NEWtrojan多用户管理部署程序, 支持web页面管理
License: GNU General Public License v3.0
trojan多用户管理部署程序, 支持web页面管理
License: GNU General Public License v3.0
管理员登录后,能否直接修改用户的用户名、密码?现在好像只能删除重建。
添加路径(执行代码)
echo 'export PATH=$PATH:/usr/local/bin' > /etc/profile.d/ulb.sh
source /etc/profile.d/ulb.sh
半小时一直是这个状态,应该如何处理??
vps配置是单核256mb
进入WEB管理,新建用户,提示dial tcp 127.0.0.1:3306: connect: connection refused 如何解决?
[mysql] 2020/03/18 01:27:38 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:27:38 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:28:41 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:28:41 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:28:41 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:28:44 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:28:44 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:28:45 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:28:47 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:28:47 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:28:47 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:29:50 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:29:50 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:29:50 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:29:53 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:29:53 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:29:53 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:29:55 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:29:55 packets.go:36: unexpected EOF
[mysql] 2020/03/18 01:29:55 packets.go:36: unexpected EOF
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service.
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
errors pretty printing info
docker install success!
docker run --name trojan-mysql --restart=always -p 55487:3306 -v /home/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=kXrwj -e MYSQL_ROOT_HOST=% -e MYSQL_DATABASE=trojan -d mysql/mysql-server:5.7
iptables v1.8.2 (nf_tables):
RULE_INSERT failed (No such file or directory): rule in chain INPUT
iptables v1.8.2 (nf_tables):
RULE_INSERT failed (No such file or directory): rule in chain INPUT
iptables v1.8.2 (nf_tables):
RULE_INSERT failed (No such file or directory): rule in chain OUTPUT
iptables v1.8.2 (nf_tables):
RULE_INSERT failed (No such file or directory): rule in chain OUTPUT
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
mysql启动中, 请稍等...
trojan配置文件在哪里?
如何修改mysql的连接和密码?
Trojan的443端口,倒是可以在装完之后,修改/usr/local/etc/trojan/config.json里的配置更改端口,但是Trojan-web没有配置文件,没法修改端口,能否给个修改web端口的机会?
web端的登录密码第二天无法登录,也无法重置
命令行只有trojan的更新,没有管理程序更新
您好,後續會有計畫生成這個嗎?
https://raw.githubusercontent.com/jrohy/dockerfile/master/templates.json
謝謝
打不开web管理界面。也不报错。但是,命令行管理界面,都能正常运行。
vps的防火墙只打开80、443端口,希望能够修改前端页面的publicPath,让前端能够通过nginx分流到example.com/trojan-web
大佬后面会不会增加类似的功能?
欢迎使用trojan管理程序
1.trojan管理 2.用户管理
3.安装管理 4.web管理
5.查看配置 6.生成客户端配置文件
请选择: 3
1.更新trojan
2.证书申请
3.安装mysql
请选择: 3
1.安装docker版mysql
2.输入自定义mysql连接
请选择: 1
docker run --name trojan-mysql --restart=always -p 30324:3306 -v /home/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=
LEDmW -e MYSQL_ROOT_HOST=% -e MYSQL_DATABASE=trojan -d mysql/mysql-server:5.7
f72dcb414d4abc5449212b655a3093b08c065ab98f63aefcfc85282f050ba721
mysql启动中, 请稍等...
[mysql] 2020/03/24 11:34:11 packets.go:36: unexpected EOF
[mysql] 2020/03/24 11:34:11 packets.go:36: unexpected EOF
[mysql] 2020/03/24 11:34:11 packets.go:36: unexpected EOF
1.域名是否要一级域名 格式有没有要求
www.fff.com
fff.com
2.是否clouflare Proxy status设置为DNS only即可
3.crt文件是否支持pem格式
有个错
请选择: 4
● trojan.service - trojan
Loaded: loaded (/etc/systemd/system/trojan.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Fri 2020-03-20 18:36:01 UTC; 453ms ago
Docs: https://trojan-gfw.github.io/trojan/config
https://trojan-gfw.github.io/trojan/
Process: 10428 ExecStart=/usr/bin/trojan/trojan /usr/local/etc/trojan/config.json (code=exited, status=1/FAILURE)
Main PID: 10428 (code=exited, status=1/FAILURE)
Mar 20 18:36:01 instance-20200320-2037 systemd[1]: trojan.service: Main process exited, code=exited, status=1/FAILURE
Mar 20 18:36:01 instance-20200320-2037 trojan[10428]: Welcome to trojan 1.14.1
Mar 20 18:36:01 instance-20200320-2037 trojan[10428]: [2020-03-20 18:36:01] [FATAL] fatal: use_private_key_file: no start line
Mar 20 18:36:01 instance-20200320-2037 trojan[10428]: [2020-03-20 18:36:01] [FATAL] exiting. . .
Mar 20 18:36:01 instance-20200320-2037 systemd[1]: trojan.service: Unit entered failed state.
Mar 20 18:36:01 instance-20200320-2037 systemd[1]: trojan.service: Failed with result 'exit-code'.
多用户管理还是集成web界面比较好管理,命令行太糙了
感谢大神在我提出请求后,这么快就做出了trojan的安装项目,感谢、感谢!!
在这里有个问题,想请问一下和大神你的multi-v2ray一起安装,可以共用443端口吗?
readme里面二进制运行文件的代码块里面chomd是不是指chmod,如果我看错了还请原谅...
chomd +x trojan
./trojan
两个都是用的您提供的一键安装脚本. 目前在同一个VPS上, 使用不同二级域名可以同时安装, 但无法同时启动, 只能一个停用一个运行.
连接域名没有页面
大佬 这个功能完成了吗
Originally posted by @Jungle-Leesin in #29 (comment)
支持流量周期套餐刷新吗
目前只有管理员可以登录面板,能否添加普通用户的登录(查看流量)支持
感谢!
你好
请问程序是自动每天定时更新吗,还是需要手动更新
如题,控制面板登录直接用域名感觉不太安全,可否把这两个都放开可自定义,谢谢
操作系统: centOS7
问题现象:
首次安装或卸载重装后一切功能正常
重启VPS后,web页面提示服务器端错误
后台查看trojan状态提示:
● trojan.service - trojan
Loaded: loaded (/etc/systemd/system/trojan.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Sat 2020-03-21 23:07:10 EDT; 54ms ago
Docs: https://trojan-gfw.github.io/trojan/config
https://trojan-gfw.github.io/trojan/
Process: 3881 ExecStart=/usr/bin/trojan/trojan /usr/local/etc/trojan/config.json (code=exited, status=1/FAILURE)
Main PID: 3881 (code=exited, status=1/FAILURE)
Mar 21 23:07:10 byhome systemd[1]: trojan.service: main process exited, code=exited, status=1/FAILURE
Mar 21 23:07:10 byhome systemd[1]: Unit trojan.service entered failed state.
Mar 21 23:07:10 byhome systemd[1]: trojan.service failed.
重启trojan错误相同
代码跑完以后,分享链接是非常短的一个(相比于v2ray的链接),但是复制了这个分享链接以后没地方去导入呢?导入到v2ray以后是不出现东西的
请问,443这端口可以自定义吗?或者通过更改配置文件实现更改端口吗?因为vps里面还有caddy v2ray。
问题背景:服务器配置较小,无法安装docker版的mysql,运行不动,所以想连另一台服务器上的mysql,指定不同的数据库。
能否在安装Trojan的时候,给出指定账号、数据库名的选项?
我在安装完Trojan后去配置文件修改mysql配置,结果导致无法科学上网,网页打开倒是正常。
[root@HostKvm-625635 ~]# source <(curl -sL https://git.io/trojan-install)
正在安装trojan管理程序..
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
运行命令trojan可进行trojan管理
-bash: /usr/local/bin/trojan: No such file or directory
我想问一下配置的证书路径在哪里,以及我想修改一下主页面,可否提供一下主页面的文件路路径
web页面没有搜索功能,添加的用户多了没有搜索功能很不方便,期待加入哈
既然trojan搭建过程已经申请了证书,希望大佬能让web网页重用这个证书,不再是HTTP裸奔
我想问一下,万一两个用户的密码相同,怎么配置?
trojan分享链接怎么用? 网上搜了半天没有搜到
其实可以参考一下这个一键安装的脚本,整合一下,完善一点.
原地址:https://github.com/mark-logs-code-hub/trojan-wiz
脚本地址
wget -N --no-check-certificate https://raw.githubusercontent.com/mark-logs-code-hub/trojan-wiz/master/ins.sh && chmod +x ins.sh && sudo bash ins.sh
搭建的时候遇到自定义数据库名必须为root的问题,这个权限有点高,且有些远程数据库不能以root为用户名,所以希望数据库用户名能自定义
有没有不部署mysql,且能统计流量的方式
请问这个是支持远程访问其它vps的mysql数据吗?
如果是的话 访问 IP:3306 默认密码 trojan
提示 连接mysql失败, 请重新输入
能指点下原因吗?
希望支持cloudflare cdn 谢谢
首先,很高兴作者能够发起此项目,我觉得有必要为此开发WEB UI界面代替命令行,这样也更佳直观,更佳具有价值,tg:https://t.me/ojbkssr
以下報錯在huaweicloud GZ VM上面安裝
mysql/mysql-server:5.7 正常
jrohy/trojan 正常
web 正常可以登入
docker exec -it trojan bash 之後
[root@ecs-8749 /]# trojan
本机未安装trojan, 正在自动安装...
bash: iptables: command not found
bash: iptables: command not found
bash: iptables: command not found
bash: iptables: command not found
Failed to restart trojan.service: Unit not found.
Failed to execute operation: No such file or directory
open /usr/local/etc/trojan/config.json: no such file or directory
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x89ad83]
goroutine 1 [running]:
trojan/core.WriterPassword(0x0, 0x0, 0x0, 0x1)
/home/go/trojan/core/server.go:97 +0x33
trojan/cmd.check()
/home/go/trojan/cmd/root.go:33 +0xbd
trojan/cmd.mainMenu()
/home/go/trojan/cmd/root.go:40 +0x34
trojan/cmd.glob..func5(0x12910c0, 0x12c7810, 0x0, 0x0)
/home/go/trojan/cmd/root.go:16 +0x20
github.com/spf13/cobra.(*Command).execute(0x12910c0, 0xc0000921b0, 0x0, 0x0, 0x12910c0, 0xc0000921b0)
/home/go/pkg/mod/github.com/spf13/[email protected]/command.go:844 +0x29d
github.com/spf13/cobra.(*Command).ExecuteC(0x12910c0, 0x443a4a, 0x1250ac0, 0xc000000180)
/home/go/pkg/mod/github.com/spf13/[email protected]/command.go:945 +0x317
github.com/spf13/cobra.(*Command).Execute(...)
/home/go/pkg/mod/github.com/spf13/[email protected]/command.go:885
trojan/cmd.Execute()
/home/go/trojan/cmd/root.go:23 +0x31
main.main()
/home/go/trojan/main.go:6 +0x20
服务器使用nginx处理其他两个域名服务,均使用ssl,可是升级后trojan web 现在默认占用了443,应该如何配置多域名?(建议作为可配置项)
5.7: Pulling from mysql/mysql-server
c7127dfa6d78: Pulling fs layer
cb7ddde5230b: Pulling fs layer
1528bee07386: Pulling fs layer
cca3f8362bb0: Pulling fs layer
cca3f8362bb0: Waiting
1528bee07386: Verifying Checksum
1528bee07386: Download complete
cca3f8362bb0: Verifying Checksum
cca3f8362bb0: Download complete
c7127dfa6d78: Verifying Checksum
c7127dfa6d78: Download complete
cb7ddde5230b: Verifying Checksum
cb7ddde5230b: Download complete
c7127dfa6d78: Pull complete
cb7ddde5230b: Pull complete
1528bee07386: Pull complete
cca3f8362bb0: Pull complete
Digest: sha256:5a5c0841346322ed514a48a7c2ab5409a8106e35718f3195467e7cf52343f25a
Status: Downloaded newer image for mysql/mysql-server:5.7
d2dc6ff7739e3e46e4ec52c0807c69d2f134af27462b755908432b641dc8351f
mysql启动中, 请稍等...
[mysql] 2020/03/01 08:02:20 packets.go:36: unexpected EOF
[mysql] 2020/03/01 08:02:20 packets.go:36: unexpected EOF
nat的vps安装的
那如果我想要搭2个节点,共用一个数据库就不方便了
原因是我目前的服务器上已经有Trojan, 使用前置Nginx 然后用SNI预读分流给V2ran和trojan的,所以配置文件被我搞得有点乱, 所以用一键脚本的话可能会有点问题, 所以想问问能否出一个手动配置的教程? 谢谢.
非常棒的面板,如果能够增加时间控制,就完美了
系统: debian9
现象: 使用控制台添加随机用户报错: Error 1045: Access denied for user 'trojan'@'172.17.0.1' (using password: NO)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.