直接运行./hello_world_service,也就是官方的可执行文件会出现
2024-04-23 09:47:43.097969 [info] main dispatch thread id from application: 4444 (hello_world_service) is: 73e6ad9fd640 TID: 4587
2024-04-23 09:47:43.098238 [info] Client [4444] routes unicast:192.168.138.129, netmask:255.255.255.0
2024-04-23 09:47:43.098349 [info] shutdown thread id from application: 4444 (hello_world_service) is: 73e6ad1fc640 TID: 4588
2024-04-23 09:47:43.099765 [info] Watchdog is disabled!
2024-04-23 09:47:43.100611 [info] io thread id from application: 4444 (hello_world_service) is: 73e6af4cdb80 TID: 4584
2024-04-23 09:47:43.100579 [info] io thread id from application: 4444 (hello_world_service) is: 73e6a7fff640 TID: 4590
2024-04-23 09:47:43.100808 [info] create_local_server: Listening @ /tmp/vsomeip-4444
2024-04-23 09:47:43.102054 [info] OFFER(4444): [1111.2222:0.0] (true)
2024-04-23 09:47:43.102553 [info] vSomeIP 3.4.10 | (default)
2024-04-23 09:47:43.102875 [info] Network interface "ens33" state changed: up
2024-04-23 09:47:43.103119 [info] Service Discovery disabled. Using static routing information.
2024-04-23 09:47:43.103636 [info] udp_server_endpoint_impl: SO_RCVBUF is: 212992 (1703936) local port:30509
2024-04-23 09:47:43.103889 [info] SOME/IP routing ready.
2024-04-23 09:47:43.104423 [warning] Route "default route (0.0.0.0/0) if: ens33 gw: 192.168.138.2" state changed: up
只需要在命令的时候多加几条命令,以及把配置文件放入当前目录,指明名字
env VSOMEIP_CONFIGURATION=./helloworld-local.json VSOMEIP_APPLICATION_NAME=hello_world_service ./hello_world_service
2024-04-23 09:45:07.369541 [info] routing_manager_client::on_disconnect: Client 0xffff calling host_->on_state with DEREGISTERED
2024-04-23 09:45:09.372095 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (Connection refused / 111)
2024-04-23 09:45:09.372801 [info] routing_manager_client::on_disconnect: Client 0xffff calling host_->on_state with DEREGISTERED
2024-04-23 09:45:10.377899 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (Connection refused / 111)
2024-04-23 09:45:10.379059 [info] routing_manager_client::on_disconnect: Client 0xffff calling host_->on_state with DEREGISTERED
2024-04-23 09:45:12.383363 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (Connection refused / 111)
2024-04-23 09:45:12.384001 [info] routing_manager_client::on_disconnect: Client 0xffff calling host_->on_state with DEREGISTERED
2024-04-23 09:45:14.386868 [warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (Connection refused / 111)