Comments (11)
这个是没有找到配置文件
默认情况配置文件会在可执行文件当前目录查找,找不到配置文件会要求输入-u来指定用户id及index
指定配置文件全路径请用-f 参数指定
from smargate.
“另外手机上的访问点和描述都不正常,只显示
访问点:network entry.
描述:common entry of intern net.”
这是因为你用-u执行的,系统会给个默认的描述。
from smargate.
代理服务端无配置启动不用-u参数,使用-m xxx试试,xxx为代理服务器端口号
个人比较懒没做详细的命令行教程,一般来讲依赖配置文件就都ok了
from smargate.
大哥你这个不严谨啊,如果我配置文件放到/root/smargate
,那么我必须执行cd /root/smargate && ./proxy_server bulabula
,而root
用户环境默认执行是在/root
,所以我执行/root/smargate/proxy_server
,程序会检测配置文件应该在/root
里,这样错误的。
所以我的systemd也得改一下了,以前我得到对的结果,可能就是我先执行了cd /root/smargate
from smargate.
1、严谨点来讲,默认获取配置文件路径为当前工作目录
2、你可以使用-f 指定配置文件路径
能用就行,不必纠结
from smargate.
写systemd服务的时候,它可不管你是什么工作目录吧,所有路径都必须是绝对路径。
这个-f
折腾我好长时间啊。
from smargate.
1、-f 能解决你的问题吧。
2、如你所愿,还是决定严谨点吧,方便至上
更新见网盘~
from smargate.
from smargate.
大哥你这个不严谨啊,如果我配置文件放到
/root/smargate
,那么我必须执行cd /root/smargate && ./proxy_server bulabula
,而root
用户环境默认执行是在/root
,所以我执行/root/smargate/proxy_server
,程序会检测配置文件应该在/root
里,这样错误的。所以我的systemd也得改一下了,以前我得到对的结果,可能就是我先执行了
cd /root/smargate
您好,能问一下您的systemd的配置文件是怎么写的吗?我写的总是无法开机自启,需要手动start。
from smargate.
大哥你这个不严谨啊,如果我配置文件放到
/root/smargate
,那么我必须执行cd /root/smargate && ./proxy_server bulabula
,而root
用户环境默认执行是在/root
,所以我执行/root/smargate/proxy_server
,程序会检测配置文件应该在/root
里,这样错误的。
所以我的systemd也得改一下了,以前我得到对的结果,可能就是我先执行了cd /root/smargate
您好,能问一下您的systemd的配置文件是怎么写的吗?我写的总是无法开机自启,需要手动start。
smargate.service
[Unit]
Description=smarGate Proxy Daemon
After=network.target
Wants=network.target
[Service]
Type=simple
ExecStart=/root/smargate/proxy_server -f /root/smargate/conf-proxy.xml
ExecStop=/bin/kill $MAINPID
PIDFile=/run/smargate.pid
Restart=always
[Install]
WantedBy=multi-user.target
就这样应该就行了,systemctl start以后ps查一下后台看看是否运行成功,或者看systemctl的status也可以。
from smargate.
就这样应该就行了,systemctl start以后ps查一下后台看看是否运行成功,或者看systemctl的status也可以。
多谢指导,可以了。
from smargate.
Related Issues (20)
- 【寻求帮助】如何在电脑上配置客户端? HOT 2
- realme手机无障碍功能打不开,点击开关之后没反应还是灰色的 HOT 3
- P2P 打洞实现方式 HOT 2
- 这个软件很棒,想请教在mips路由器上运行的问题 HOT 2
- 代理服务器连接报错是什么问题 HOT 8
- 内网穿透
- 什么时间会开源呢?好想试试啊,大神。 HOT 1
- 核心引擎源码没开源吗? HOT 1
- Android4.4可以安装但是打开一直卡死 HOT 1
- 和nps,frp,ngrok 等常见的穿透工具比,有什么优势吗 HOT 1
- 【疑问】关于注册后下发的token HOT 2
- 自建服务器可以不用注册吗? HOT 6
- 如何查看源代码? HOT 1
- 无法创建SSL client HOT 9
- 请开发IOS客户端 HOT 3
- Windwos下启动服务后怎么关闭? HOT 4
- ISTORE OS(CPU是I3-1215U)运行报错 HOT 5
- mipsel架构的openwrt运行出现Illegal instruction HOT 1
- 请开源一下 HOT 2
- 可否增加选项,设置手机端向服务器连接时使用的端口? HOT 2
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 smargate.