Comments (31)
256m感觉有点吃紧,你可以看下mysql有没有启动到,我这边自己看了mysql容器启动都要160+ mb内存
from trojan.
256m感觉有点吃紧,你可以看下mysql有没有启动到,我这边自己看了mysql容器启动都要160+ mb内存
如何查看?命令是????
from trojan.
查看mysql容器日志
docker logs -f trojan-mysql
查看容器消耗内存
docker stats
from trojan.
查看mysql容器日志
docker logs -f trojan-mysql
查看容器消耗内存
docker stats
mysql容器日志
root@333-tj:~# docker logs -f trojan-mysql
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Initializing database
[Entrypoint] Database initialized
Initialization of mysqld failed: 0
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
容器消耗内存
CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
5822e0c86b95 trojan-mysql 0.00% 0B / 0B 0.00% 0B / 0B 0B / 0B 0
from trojan.
mysql启动失败了,你试下删掉容器docker rm -f trojan-mysql, 清掉mysql目录 rm -rf /home/mysql,然后运行下
docker run --name trojan-mysql --restart=always -p 3306:3306 -v /home/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=trojan -e MYSQL_ROOT_HOST=% -e MYSQL_DATABASE=trojan -d mysql/mysql-server:5.7
from trojan.
运行完再docker logs -f trojan-mysql, 看下mysql日志
from trojan.
运行完再docker logs -f trojan-mysql, 看下mysql日志
root@333-tj:# docker rm -f trojan-mysql# rm -rf /home/mysql
trojan-mysql
root@333-tj:
root@333-tj:# docker run --name trojan-mysql --restart=always -p 3306:3306 -v /home/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=trojan -e MYSQL_ROOT_HOST=% -e MYSQL_DATABASE=trojan -d mysql/mysql-server:5.7# docker logs -f trojan-mysql
50fb8c17c842c33e76d5694283fc90a76aa88db40a6d2219031eb41ece630a79
root@333-tj:
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Initializing database
[Entrypoint] Database initialized
Initialization of mysqld failed: 0
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
from trojan.
用的什么系统
from trojan.
用的什么系统
Ubuntu 18.04 X86_X64
from trojan.
是不是需要其他系统???
debian?还是CentOS???
发觉在多台的VPS上安装你的Trojan脚本都出现同一问题
系统都是Ubuntu 18.04 X86_X64
from trojan.
我用vultr的vps测试下
from trojan.
测了没问题vultr的 ubuntu 18.04, 要不你试下换成centos7看看,开发基本都是在这个系统上面做的测试
from trojan.
还有这次是不是nat vps呢,有没有限制端口的
from trojan.
还有这次是不是nat vps呢,有没有限制端口的
不是NAT,没有限制端口
我现在重装系统,用Centos 7.7试下
from trojan.
嗯,你先不用安装trojan,先直接安装mysql看下能否启动成功
docker安装
source <(curl -sL https://git.io/docker-install)
mysql容器安装
docker run --name trojan-mysql --restart=always -p 3306:3306 -v /home/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=trojan -e MYSQL_ROOT_HOST=% -e MYSQL_DATABASE=trojan -d mysql/mysql-server:5.7
查看启动日志
docker logs -f trojan-mysql
from trojan.
嗯,你先不用安装trojan,先直接安装mysql看下能否启动成功
docker安装
source <(curl -sL https://git.io/docker-install)
mysql容器安装
docker run --name trojan-mysql --restart=always -p 3306:3306 -v /home/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=trojan -e MYSQL_ROOT_HOST=% -e MYSQL_DATABASE=trojan -d mysql/mysql-server:5.7
查看启动日志
docker logs -f trojan-mysql
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service.
WARNING: No swap limit support
docker 19.03.8 install success!
root@333-tj:# docker run --name trojan-mysql --restart=always -p 3306:3306 -v /home/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=trojan -e MYSQL_ROOT_HOST=% -e MYSQL_DATABASE=trojan -d mysql/mysql-server:5.7# docker logs -f trojan-mysql
Unable to find image 'mysql/mysql-server:5.7' locally
5.7: Pulling from mysql/mysql-server
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
bfa81a9e56f65264653adb58c4f00dc1f8eb7288511f49ae96f21dfb334364d6
root@333-tj:
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Initializing database
[Entrypoint] Database initialized
Initialization of mysqld failed: 0
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
[Entrypoint] MySQL Docker Image 5.7.29-1.1.15
[Entrypoint] Starting MySQL 5.7.29-1.1.15
from trojan.
你这个是不是nat vps
from trojan.
你这个是不是nat vps
不是NAT VPS
是普通KVM VPS
独立IP的
from trojan.
不行就自己试下安装非docker版的mysql, 反正有mysql就行
from trojan.
不行就自己试下安装非docker版的mysql, 反正有mysql就行
有空再优化一下,比如小内存的VPS
from trojan.
这个没得优化的,耗内存不是程序本身,而是mysql, 小内存就建议不要装mysql, 直接配置文件
from trojan.
这个没得优化的,耗内存不是程序本身,而是mysql, 小内存就建议不要装mysql, 直接配置文件
好吧,
from trojan.
这个没得优化的,耗内存不是程序本身,而是mysql, 小内存就建议不要装mysql, 直接配置文件
方便嘛?我给你VPS账号密码,你可以帮我搞一下吗?还是不行
from trojan.
这个没得优化的,耗内存不是程序本身,而是mysql, 小内存就建议不要装mysql, 直接配置文件
方便嘛?我给你VPS账号密码,你可以帮我搞一下吗?还是不行
方便就留个email
from trojan.
安装非docker版mysql也是启动不了?
from trojan.
建议换大一点内存vps(512m+),或者将mysql迁到其他服务器里部署
from trojan.
建议换大一点内存vps(512m+),或者将mysql迁到其他服务器里部署
debian 8.7 x86_x64可以启动mysql,但是启动不到Trojan
root@333-tj:~# systemctl status trojan.service
● trojan.service - trojan
Loaded: error (Reason: Invalid argument)
Active: inactive (dead)
Docs: https://trojan-gfw.github.io/trojan/config
https://trojan-gfw.github.io/trojan/
Mar 18 11:10:18 333-tj.tk systemd[1]: [/etc/systemd/system/trojan.service:9] Executable path is not absolute, ignoring: "/usr/bin/...ig.json"
Mar 18 11:10:18 333-tj.tk systemd[1]: trojan.service lacks ExecStart setting. Refusing.
Mar 18 11:10:18 333-tj.tk systemd[1]: [/etc/systemd/system/trojan.service:9] Executable path is not absolute, ignoring: "/usr/bin/...ig.json"
Mar 18 11:10:18 333-tj.tk systemd[1]: trojan.service lacks ExecStart setting. Refusing.
Mar 18 11:12:26 333-tj.tk systemd[1]: [/etc/systemd/system/trojan.service:9] Executable path is not absolute, ignoring: "/usr/bin/...ig.json"
Mar 18 11:12:26 333-tj.tk systemd[1]: trojan.service lacks ExecStart setting. Refusing.
Mar 18 11:12:26 333-tj.tk systemd[1]: [/etc/systemd/system/trojan.service:9] Executable path is not absolute, ignoring: "/usr/bin/...ig.json"
Mar 18 11:12:26 333-tj.tk systemd[1]: trojan.service lacks ExecStart setting. Refusing.
Hint: Some lines were ellipsized, use -l to show in full.
from trojan.
有改过service文件吗/etc/systemd/system/trojan.service
from trojan.
有改过service文件吗/etc/systemd/system/trojan.service
没有修改过.
from trojan.
出现这个错误日志是什么问题呢?
root@333-tj:~# systemctl status trojan-gfw -l
● trojan-gfw.service
Loaded: loaded (/lib/systemd/system/trojan-gfw.service; enabled)
Active: active (running) since Wed 2020-03-18 12:01:26 EDT; 18s ago
Main PID: 13478 (trojan)
CGroup: /system.slice/trojan-gfw.service
└─13478 /usr/bin/trojan -c /etc/trojan/config.json
Mar 18 12:01:26 333-tj.tk trojan[13478]: Welcome to trojan 1.14.1
Mar 18 12:01:26 333-tj.tk trojan[13478]: [2020-03-18 12:01:26] [WARN] trojan service (server) started at 0.0.0.0:443
Mar 18 12:01:35 333-tj.tk trojan[13478]: [2020-03-18 12:01:35] [WARN] 179.43.169.182:34396 not trojan request, connecting to 127.0.0.1:80
Mar 18 12:01:35 333-tj.tk trojan[13478]: [2020-03-18 12:01:35] [ERROR] 179.43.169.182:34396 cannot establish connection to remote server 127.0.0.1:80: Connection refused
Mar 18 12:01:35 333-tj.tk trojan[13478]: [2020-03-18 12:01:35] [INFO] 179.43.169.182:34396 disconnected, 0 bytes received, 64 bytes sent, lasted for 0 seconds
from trojan.
trojan客户端使用有问题?
from trojan.
Related Issues (20)
- 这个还稳定么,有用过的说下么 HOT 4
- 数据库password字段是怎么加密的,想自己二次开发有代理商功能的面板 HOT 2
- 我修改了端口,为什么还会有个80端口占用呢?
- 大神,你好,我想问下,每天凌晨0点准时,trojan是操作什么数据吗?导致数据库CPU占用很高,然后客户端就连接超时了。持续3分钟,CPU才降下来。 HOT 2
- 通过source <(curl -sL https://git.io/trojan-install)安装时,闪退 HOT 1
- 大佬可以优化一下,每天0点重置过期的用户和每月重置流量的SQL语句嘛?
- 修改为非443端口后,web管理页打不开
- clash 如何配置server trojan 开启ws并开启了 "shadowsocks": { "enabled": true,
- 开启cdn无法访问管理面板的解决方法和问题所在
- 用户名为中文时,一部分名字点击分享导到clash的订阅链接会token is error HOT 1
- Source code statistics traffic problem HOT 1
- 目前使用下来是一天一封一个端口,请教一下大家这个跟vps服务商有关系吗?
- clash导入报错initial rule provider direct error:
- Inability to define a new user
- 大家都在哪里买的VPS推荐一下 HOT 3
- 证书更新后并未生效
- 希望增加可修改web后台端口号 HOT 1
- trojan启动报错无法访问 HOT 1
- 忘记密码 如何修改? HOT 2
- 管理员密码无故失效 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trojan.