### Navigate to Quickstart Example Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/golang-sdk/quickstart/rpc.md Change directory to the 'helloworld' quick start example within the cloned repository. ```shell cd dubbo-go-samples/helloworld ``` -------------------------------- ### Install and Start Zipkin Server Source: https://github.com/apache/dubbo-website/blob/master/content/en/blog/integration/use-zipkin-in-dubbo.md Downloads and executes the Zipkin quick start script, then starts the server using the generated jar file. ```bash $ curl -sSL https://zipkin.io/quickstart.sh | bash -s $ java -jar zipkin.jar ``` -------------------------------- ### Example Start Scripts Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/quickstart.md Execute these shell commands to prepare the environment, start the Dubbo server, Pixiu, and the client test case. ```shell # cd to the main example directory cd samples/dubbogo/simple/ # Prepare the environment, start zk, and prepare the corresponding configuration files ./start.sh prepare resolve # Start the dubbo server ./start.sh startServer resolve # Start Pixiu ./start.sh startPixiu resolve # Start Client test case ./start.sh startTest resolve # Or use curl curl -X POST 'http://localhost:8883/UserService/com.dubbogo.pixiu.UserService/GetUserByName' -d '{"types":"string","values":"tc"}' -H 'Content-Type: application/json' -H 'x-dubbo-http1.1-dubbo-version: 1.0.0' -H 'x-dubbo-service-protocol: dubbo' -H 'x-dubbo-service-version: 1.0.0' -H 'x-dubbo-service-group: test' # Response {"age":15,"code":1,"iD":"0001","name":"tc","time":"2021-08-01T18:08:41+08:00"} ``` -------------------------------- ### Start Triple Unary Server Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/tasks/protocols/triple/idl.md Command to start the server for the Triple unary example. ```shell mvn compile exec:java -Dexec.mainClass="org.apache.dubbo.samples.tri.unary.TriUnaryServer" ``` -------------------------------- ### Download and Run the REST Example Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/reference-manual/protocol/triple-3.3.md Commands to clone the samples repository and start the basic Triple REST service using Maven. ```bash # Get the example code git clone --depth=1 https://github.com/apache/dubbo-samples.git cd dubbo-samples/2-advanced/dubbo-samples-triple-rest/dubbo-samples-triple-rest-basic # Run mvn spring-boot:run ``` -------------------------------- ### Start Java Client for Application-Level Discovery Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/golang-sdk/tutorial/interoperability/dubbo-java/service-discovery.md Navigate to the 'java-client' directory and execute 'run.sh' to start the Java client. This client connects to the Go server in an application-level service discovery setup. ```shell cd java-client sh run.sh ``` -------------------------------- ### Microservices Setup with DubboBootstrap Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/tasks/develop/api.md Configure application name and registry center for microservice applications. This example demonstrates setting up a registry, protocol, and publishing multiple services. ```java public static void main(String[] args) { DubboBootstrap.getInstance() .application() .registry(new RegistryConfig("nacos://127.0.0.1:8848")) .protocol(new ProtocolConfig(CommonConstants.TRIPLE, 50051)) .service(ServiceBuilder.newBuilder().interfaceClass(DemoService.class).ref(new DemoServiceImpl()).build()) .service(ServiceBuilder.newBuilder().interfaceClass(FooService.class).ref(new FooServiceImpl()).build()) .start() .await(); } ``` -------------------------------- ### Start Streaming Server and Client Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/tasks/protocols/triple/streaming.md Commands to execute the server and client components of the streaming example. ```shell $ mvn compile exec:java -Dexec.mainClass="org.apache.dubbo.samples.tri.streaming.TriStreamServer" ``` ```shell $ mvn compile exec:java -Dexec.mainClass="org.apache.dubbo.samples.tri.streaming.TriStreamClient" ``` -------------------------------- ### Navigate to Nacos Example Directory Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/golang-sdk/quickstart/microservices.md Switch to the directory containing the Nacos registry quick start example. ```shell $ cd dubbo-go-samples/registry/nacos ``` -------------------------------- ### Deploying Multiple Dubbo Instances with Modules Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/reference-manual/config/api/api.md This example demonstrates how to configure and start two independent Dubbo instances using DubboBootstrap. Each instance is configured with a unique application name and uses modules to isolate service publishing and subscription. This setup ensures that even with identical service configurations, consumers are isolated. ```java ServiceConfig service = new ServiceConfig<>(); service.setInterface(DemoService.class); service.setRef(new DemoServiceImpl()); ReferenceConfig reference1 = new ReferenceConfig<>(); reference1.setInterface(DemoService.class); ReferenceConfig reference2 = new ReferenceConfig<>(); reference2.setInterface(DemoService.class); // Create a launcher (automatically create a new ApplicationModel) DubboBootstrap bootstrap1 = DubboBootstrap.newInstance(); // Specify application name bootstrap1.application(new ApplicationConfig("dubbo-demo-app-1")) .registry(new RegistryConfig("nacos://localhost:8848")) // Create a module .newModule() // Publish service within the module .service(service) .endModule() // Create another module .newModule() // Subscribe to service within the module .reference(reference1) .endModule() .start(); // Create another launcher (automatically create a new ApplicationModel) DubboBootstrap bootstrap2 = DubboBootstrap.newInstance(); // Specify application name bootstrap2.application(new ApplicationConfig("dubbo-demo-app-2")) .registry(new RegistryConfig("nacos://localhost:8848")) // Create a module .newModule() // Subscribe to service within the module .reference(reference2) .endModule() .start(); // stub1 and stub2 are two independent subscriptions, completely isolated // Subscribed stub DemoService stub1 = reference1.get(); System.out.println(stub1.sayHello("Hello World!")); // Subscribed stub DemoService stub2 = reference2.get(); System.out.println(stub2.sayHello("Hello World!")); bootstrap1.stop(); bootstrap2.stop(); ``` -------------------------------- ### Install protoc-gen-triple-openapi Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/golang-sdk/tutorial/rpc/openapi.md Install the tool using `go install`. Ensure your Go environment is configured correctly. ```shell go install github.com/apache/dubbo-go/tools/protoc-gen-triple-openapi ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/tasks/protocols/triple/grpc.md Change the current directory to the specific example source directory. ```shell cd dubbo-samples/2-advanced/dubbo-samples-triple-grpc ``` -------------------------------- ### Start Zookeeper Server with Docker Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/golang-sdk/tutorial/service-discovery/zookeeper.md Instructions to start a Zookeeper server using Docker for the dubbo-go example. ```shell docker run --rm -p 2181:2181 zookeeper ``` -------------------------------- ### Start Java Server for Application-Level Discovery Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/golang-sdk/tutorial/interoperability/dubbo-java/service-discovery.md Navigate to the 'java-server' directory and execute the 'run.sh' script to start the Java server. This is part of the application-level service discovery setup. ```shell cd java-server sh run.sh ``` -------------------------------- ### Start Application Commands Source: https://github.com/apache/dubbo-website/blob/master/content/en/blog/integration/how-to-proxy-dubbo-in-apache-apisix.md Commands to clone the repository and start the provider and consumer applications. ```shell $ git clone -b master --depth 1 https://github.com/apache/dubbo-samples $ cd dubbo-samples/2-advanced/dubbo-samples-gateway/dubbo-samples-gateway-apisix/dubbo-samples-gateway-apisix-dubbo $ mvn compile exec:java -Dexec.mainClass="org.apache.dubbo.samples.gateway.apisix.dubbo.provider.ProviderApplication" ``` ```shell $ mvn compile exec:java -Dexec.mainClass="org.apache.dubbo.samples.gateway.apisix.dubbo.consumer.ConsumerApplication" ``` -------------------------------- ### Install and Start Arthas Source: https://github.com/apache/dubbo-website/blob/master/content/en/blog/integration/dubbo-meet-arthas.md Commands to download and launch the Arthas diagnostic tool. ```bash $ wget https://arthas.aliyun.com/arthas-boot.jar $ java -jar arthas-boot.jar ``` -------------------------------- ### Download and Run Dubbo REST Example Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/tasks/protocols/rest.md Clone the Dubbo samples repository and run the basic triple REST example using Maven. This setup is required to test the provided code snippets. ```bash # Get the example code git clone --depth=1 https://github.com/apache/dubbo-samples.git cd dubbo-samples/2-advanced/dubbo-samples-triple-rest/dubbo-samples-triple-rest-basic # Run directly mvn spring-boot:run # Or package and run mvn clean package -DskipTests java -jar target/dubbo-samples-triple-rest-basic-1.0.0-SNAPSHOT.jar ``` -------------------------------- ### Install Protoc via apt (Linux) Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/protoc-installation.md Use apt or apt-get to install the protobuf-compiler on Linux. Always verify the installed version using `protoc --version`. ```sh $ apt install -y protobuf-compiler $ protoc --version # Ensure compiler version is 3+ ``` -------------------------------- ### Package Example with Maven Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/tasks/protocols/dubbo.md Package the example project using Maven, skipping tests. ```shell mvn clean install -DskipTests ``` -------------------------------- ### Start Pixiu Gateway Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/samples/others/auth-filter.md Command to start the Pixiu gateway with a specific configuration file. ```bash go run cmd/pixiu/*.go gateway start -c samples/dubbogo/simple/jwt/pixiu/conf.yaml ``` ```bash go run cmd/pixiu/*.go gateway start -c samples/dubbogo/simple/jwt/pixiu/springcloud-conf.yaml ``` -------------------------------- ### Start HelloService Source: https://github.com/apache/dubbo-website/blob/master/content/en/blog/integration/use-zipkin-in-dubbo.md Command to start the HelloService using Maven. Alternatively, it can be run directly in an IDE. ```bash $ mvn exec:java -Dexec.mainClass=com.alibaba.dubbo.samples.service.hello.Application ``` -------------------------------- ### Clone Dubbo Samples Project Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/quick-start/starter.md Clone the official Dubbo samples project to get started quickly. This command fetches the master branch with a depth of 1 and navigates into the quickstart directory. ```shell $ git clone -b master --depth 1 https://github.com/apache/dubbo-samples $ cd dubbo-samples/11-quickstart ``` -------------------------------- ### Successful HTTP GET Response Example Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/samples/dubbo/http-query.md Example of a successful JSON response when the HTTP GET request with a query parameter is processed correctly by the integration service. ```json { "id": "0001", "name": "tc", "age": 18, "time": "2020-12-30T14:07:07.9432117+08:00" } ``` -------------------------------- ### Start Server and Register Service Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/golang-sdk/tutorial/configuration/remote.md Initialize the server instance and register the service handler. ```go srv, err := ins.NewServer() if err != nil { panic(err) } if err := greet.RegisterGreetServiceHandler(srv, &GreetTripleServer{}); err != nil { panic(err) } if err := srv.Serve(); err != nil { logger.Error(err) } ``` -------------------------------- ### Passthrough GET Request Response Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/samples/dubbo/http-uri.md Example JSON response for a successful passthrough GET request. ```json { "id": "XVlBz", "name": "joe2", "age": 20, "time": "2021-01-01T00:00:00Z" } ``` -------------------------------- ### Prepare configuration and environment Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/start.md Initialize the dubbo-server and pixiu configuration files and start required Docker containers. ```bash ./start.sh prepare body ``` -------------------------------- ### Create New Demo Project Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/golang-sdk/tools/dubbogo-cli.md Use dubbogo-cli to create an RPC example, including client and server components, in the current directory. ```bash dubbogo-cli newDemo . ``` -------------------------------- ### Start Zookeeper Server Source: https://github.com/apache/dubbo-website/blob/master/content/en/blog/integration/use-zipkin-in-dubbo.md Command to start a local Zookeeper server. Ensure Zookeeper is installed before running. ```bash $ zkServer start ``` -------------------------------- ### Start Go Server for Application-Level Discovery Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/golang-sdk/tutorial/interoperability/dubbo-java/service-discovery.md Navigate to the 'go-server' directory and run the 'server.go' file to start the Go server. This is for the Go Server <-> Java Client interaction in application-level service discovery. ```shell cd go-server go run server.go ``` -------------------------------- ### Navigate to sample directory Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/samples/dubbo/dubbo-simple-run.md Change the current working directory to the simple Dubbo-go-Pixiu sample location. ```bash cd /dubbo-go-pixiu/samples/dubbogo/simple ``` -------------------------------- ### Install All Compilation and Debug Tools Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/golang-sdk/tools/dubbogo-cli.md Install all necessary companion tools, such as protoc-gen-go-triple and imports-formatter, with a single command. ```bash dubbogo-cli install all ``` -------------------------------- ### Install and Start Prometheus PushGateway Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/samples/others/prometheus.md Commands to pull the official Docker image and start the PushGateway service on port 9091. ```shell $ docker pull prom/pushgateway ``` ```shell $ docker run -d -p 9091:9091 prom/pushgateway ``` -------------------------------- ### Display start.sh help information Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/samples/dubbo/dubbo-simple-run.md View the usage instructions and available actions for the start.sh helper script. ```bash ./start.sh help dubbo-go-pixiu start helper ./start.sh action project hint: ./start.sh prepare body for prepare config file and up docker in body project ./start.sh startPixiu body for start dubbo or http server in body project ./start.sh startServer body for start pixiu in body project ./start.sh startTest body for start unit test in body project ./start.sh clean body for clean ``` -------------------------------- ### Mix GET Request Response Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/samples/dubbo/http-uri.md Example JSON response for a successful mix GET request using a path parameter. ```json { "id": "0001", "name": "tc", "age": 18, "time": "2020-12-28T13:38:25.687309+08:00" } ``` -------------------------------- ### Send Mix GET Request Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/samples/dubbo/http-uri.md Example of a GET request that uses a path parameter. The ':name' in the path is captured and used in the integration request. ```bash curl --request GET 'localhost:8888/api/v1/test-http/user/tc' ``` -------------------------------- ### Execute start.sh sample actions Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/samples/dubbo/dubbo-simple-run.md Run specific lifecycle commands for the body project using the start.sh script. ```bash ./start.sh prepare body ./start.sh startPixiu body ./start.sh startServer body ./start.sh startTest body ./start.sh clean body ``` -------------------------------- ### Send Passthrough GET Request Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/samples/dubbo/http-uri.md Example of a simple GET request to the configured API endpoint. Ensure the 'name' query parameter is provided. ```bash curl --request GET 'localhost:8888/api/v1/test-http/user?name=joe2' ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/tasks/protocols/triple/interface.md Change directory to the specific Dubbo API samples. ```shell cd dubbo-samples/1-basic/dubbo-samples-api ``` -------------------------------- ### Download and Run Servlet Example Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/reference-manual/protocol/triple-3.3.md Commands to clone and run the Dubbo samples project for testing Servlet access. ```bash git clone --depth=1 https://github.com/apache/dubbo-samples.git cd dubbo-samples/2-advanced/dubbo-samples-triple-servlet mvn spring-boot:run ``` -------------------------------- ### Start zookeeper using Docker Compose Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/httpfilter/dubbo.md This shell command starts the zookeeper service using a docker-compose file. Ensure Docker and Docker Compose are installed and prepared beforehand. ```shell docker-compose -f {CURRENT_PATH}/dubbo-go-pixiu-samples/dubbohttpproxy/docker/docker-compose.yml && docker-compose up -d ``` -------------------------------- ### Get Help for Specific Command Source: https://github.com/apache/dubbo-website/blob/master/content/en/blog/news/introduction-to-dubbo-qos.md Retrieves usage examples and details for a specific command. ```sh dubbo>help online +--------------+----------------------------------------------------------------------------------+ | COMMAND NAME | online | +--------------+----------------------------------------------------------------------------------+ | EXAMPLE | online dubbo | | | online xx.xx.xxx.service | +--------------+----------------------------------------------------------------------------------+ ``` -------------------------------- ### Start Seata-Server (Linux/Mac) Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/tasks/trasaction/distributed-transaction.md Execute this command in the bin directory of the Seata-Server package to start the server on Unix-like systems. Ensure Seata-Server version 2.0.0 or compatible is used. ```bash ./seata-server.sh ``` -------------------------------- ### Send HTTP GET Request to Dubbo Service Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/samples/dubbo/dubbo-query(http).md Example of sending an HTTP GET request to the configured Pixiu endpoint to query a Dubbo service. Includes the query parameter 'name'. ```bash curl http://localhost:8888/api/v1/test-dubbo/user?name=tc -X GET ``` -------------------------------- ### Start Pixiu Gateway Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/samples/springcloud/springcloud-springcloud.md Execute the Pixiu gateway using the specified configuration file. ```bash go run cmd/pixiu/*.go gateway start -c samples/springcloud/pixiu/conf.yaml ``` -------------------------------- ### Test gRPC Service with Curl (GET) Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/networkfilter/grpc.md Test the gRPC service endpoint exposed via Pixiu using curl. This example sends a GET request to retrieve user information. ```shell curl http://127.0.0.1:8881/api/v1/provider.UserProvider/GetUser ``` -------------------------------- ### Example Startup Failure Log Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/tasks/troubleshoot/start-failed.md A sample log output indicating a service provider could not be found. ```text [27/02/23 12:49:18:018 CST] main ERROR deploy.DefaultModuleDeployer: [DUBBO] Model start failed: Dubbo Module[1.1.1] start failed: java.lang.IllegalStateException: Failed to check the status of the service org.apache.dubbo.samples.api.GreetingsService. No provider available for the service org.apache.dubbo.samples.api.GreetingsService from the url consumer://30.221.144.195/org.apache.dubbo.samples.api.GreetingsService?application=first-dubbo-consumer&background=false&dubbo=2.0.2&environment=product&executor-management-mode=default&file-cache=true&interface=org.apache.dubbo.samples.api.GreetingsService&methods=sayHi&pid=54580®ister.ip=30.221.144.195&release=3.2.0-beta.6-SNAPSHOT&side=consumer&sticky=false×tamp=1677473358611&unloadClusterRelated=false to the consumer 30.221.144.195 use dubbo version 3.2.0-beta.6-SNAPSHOT, dubbo version: 3.2.0-beta.6-SNAPSHOT, current host: 30.221.144.195, error code: 5-14. This may be caused by , go to https://dubbo.apache.org/faq/5/14 to find instructions. java.lang.IllegalStateException: Failed to check the status of the service org.apache.dubbo.samples.api.GreetingsService. No provider available for the service org.apache.dubbo.samples.api.GreetingsService from the url consumer://30.221.144.195/org.apache.dubbo.samples.api.GreetingsService?application=first-dubbo-consumer&background=false&dubbo=2.0.2&environment=product&executor-management-mode=default&file-cache=true&interface=org.apache.dubbo.samples.api.GreetingsService&methods=sayHi&pid=54580®ister.ip=30.221.144.195&release=3.2.0-beta.6-SNAPSHOT&side=consumer&sticky=false×tamp=1677473358611&unloadClusterRelated=false to the consumer 30.221.144.195 use dubbo version 3.2.0-beta.6-SNAPSHOT ``` -------------------------------- ### Download and Run HTTP/3 Example Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/reference-manual/protocol/triple-3.3.md Commands to clone and run the Dubbo samples project for testing HTTP/3 protocol support. ```bash git clone --depth=1 https://github.com/apache/dubbo-samples.git cd dubbo-samples/2-advanced/dubbo-samples-triple-http3 mvn spring-boot:run ``` -------------------------------- ### Run Zookeeper with Docker Source: https://github.com/apache/dubbo-website/blob/master/content/en/blog/integration/dubbo-zk.md Starts a ZooKeeper instance in a Docker container. Ensure Docker is installed and running. ```shell docker run --rm --name zookeeper -p 2181:2181 zookeeper ``` -------------------------------- ### Common Dubbo Startup Error Messages Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/tasks/troubleshoot/start-failed.md Examples of error messages encountered when a Dubbo application fails to start. ```bash Caused by: java.lang.IllegalStateException: Dubbo Module[1.1.1] is stopping or stopped, can not start again ``` ```bash [DUBBO] Dubbo Application[1.1](first-dubbo-consumer) start failure ``` -------------------------------- ### Verify Zipkin Server Startup Logs Source: https://github.com/apache/dubbo-website/blob/master/content/en/blog/integration/use-zipkin-in-dubbo.md Example output displayed in the terminal upon successful startup of the Zipkin server. ```bash $ java -jar zipkin.jar Picked up JAVA_TOOL_OPTIONS: -Djava.awt.headless=true ******** ** ** * * ** ** ** ** ** ** ** ** ******** **** **** **** **** ****** **** *** **************************************************************************** ******* **** *** **** **** ** ** ***** ** ***** ** ** ** ** ** ** ** ** * *** ** **** ** ** ** ***** **** ** ** *** ****** ** ** ** ** ** ** ** :: Powered by Spring Boot :: (v2.0.5.RELEASE) ... o.s.b.w.e.u.UndertowServletWebServer : Undertow started on port(s) 9411 (http) with context path '' 2018-10-10 18:40:31.605 INFO 21072 --- [ main] z.s.ZipkinServer : Started ZipkinServer in 6.835 seconds (JVM running for 8.35) ``` -------------------------------- ### Start Pixiu Gateway Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/configurations.md Use this command to start the Pixiu executable. Ensure the path provided after -c is an absolute path to your local configuration file. ```bash pixiu gateway start -c /config/conf.yaml ``` -------------------------------- ### Install and Start Dubbo Control Plane Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/tasks/deploy/deploy-on-vm.md Download the control plane script and execute the binary to monitor deployment status. ```shell $ curl -L https://raw.githubusercontent.com/apache/dubbo-kubernetes/master/release/downloadDubbo.sh | sh - $ cd dubbo-$version/bin ``` ```shell $ ./dubbo-cp run ``` -------------------------------- ### View Consumer Metadata using zkCli Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/reference-manual/metadata-center/zookeeper.md Example of using the zkCli 'get' command to retrieve consumer metadata from Zookeeper. ```shell [zk: localhost:2181(CONNECTED) 10] get /dubbo/metadata/org.apache.dubbo.demo.DemoService/consumer/demo-consumer {"side":"consumer","interface":"org.apache.dubbo.demo.DemoService","metadata-type":"remote","application":"demo-consumer","dubbo":"2.0.2","release":"","sticky":"false","check":"false","methods":"sayHello,sayHelloAsync"} cZxid = 0x25aa24 ctime = Mon Jun 28 21:57:43 CST 2021 mZxid = 0x25aa24 mtime = Mon Jun 28 21:57:43 CST 2021 pZxid = 0x25aa24 cversion = 0 dataVersion = 0 aclVersion = 0 ephemeralOwner = 0x0 dataLength = 219 numChildren = 0 ``` -------------------------------- ### Navigate to Example Directory Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/tasks/protocols/triple/idl.md Change directory to the specific example source code location for API IDL. ```shell cd dubbo-samples/1-basic/dubbo-samples-api-idl ``` -------------------------------- ### View Provider Metadata using zkCli Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/reference-manual/metadata-center/zookeeper.md Example of using the zkCli 'get' command to retrieve provider metadata from Zookeeper. ```shell [zk: localhost:2181(CONNECTED) 8] get /dubbo/metadata/org.apache.dubbo.demo.DemoService/provider/demo-provider {"parameters":{"side":"provider","interface":"org.apache.dubbo.demo.DemoService","metadata-type":"remote","application":"demo-provider","dubbo":"2.0.2","release":"","anyhost":"true","delay":"5000","methods":"sayHello,sayHelloAsync","deprecated":"false","dynamic":"true","timeout":"3000","generic":"false"},"canonicalName":"org.apache.dubbo.demo.DemoService","codeSource":"file:/Users/apple/IdeaProjects/dubbo/dubbo-demo/dubbo-demo-interface/target/classes/","methods":[{"name":"sayHelloAsync","parameterTypes":["java.lang.String"],"returnType":"java.util.concurrent.CompletableFuture"},{"name":"sayHello","parameterTypes":["java.lang.String"],"returnType":"java.lang.String"}],"types":[{"type":"java.util.concurrent.CompletableFuture","properties":{"result":"java.lang.Object","stack":"java.util.concurrent.CompletableFuture.Completion"}},{"type":"java.lang.Object"},{"type":"java.lang.String"},{"type":"java.util.concurrent.CompletableFuture.Completion","properties":{"next":"java.util.concurrent.CompletableFuture.Completion","status":"int"}},{"type":"int"}]} cZxid = 0x25a9b1 ctime = Mon Jun 28 21:35:17 CST 2021 mZxid = 0x25a9b1 mtime = Mon Jun 28 21:35:17 CST 2021 pZxid = 0x25a9b1 cversion = 0 dataVersion = 0 aclVersion = 0 ephemeralOwner = 0x0 dataLength = 1061 numChildren = 0 ``` -------------------------------- ### Execute start script commands Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/start.md Use the start.sh script to manage project actions or display help information. ```bash ./start.sh [action] [project] ./start.sh help ``` -------------------------------- ### Start Dubbo Triple Server Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/tasks/protocols/triple/grpc.md Compile and run the Dubbo Triple Server using Maven. Ensure you are in the example source directory. ```shell $ mvn compile exec:java -Dexec.mainClass="org.apache.dubbo.samples.tri.grpc.interop.server.TriOpServer" ``` -------------------------------- ### Run the DubboGo Demo Client Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/golang-sdk/tools/dubbogo-cli.md After starting the server, navigate to the client's command directory, tidy dependencies, and run the client executable to initiate RPC calls. ```shell $ go mod tidy $ cd go-client/cmd $ go run . ``` -------------------------------- ### Start Dubbo-Go Provider with ZooKeeper Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/quickstart.md Navigate to the provider's sample directory, set necessary environment variables for configuration paths, and run the provider using 'go run'. ```shell cd samples/dubbogo/simple/resolve/server export DUBBO_GO_CONFIG_PATH="../profiles/dev/server.yml" export APP_LOG_CONF_FILE="../profiles/dev/log.yml" go run server.go user.go ``` -------------------------------- ### Implement Dubbo Container Extension Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/reference-manual/spi/description/container.md Example Java class implementing the `org.apache.dubbo.container.Container` interface. Requires implementing `start()` and `stop()` methods. ```java package com.xxx; org.apache.dubbo.container.Container; public class XxxContainer implements Container { public Status start() { // ... } public Status stop() { // ... } } ``` -------------------------------- ### Build Dubbo Example Source: https://github.com/apache/dubbo-website/blob/master/content/en/blog/news/dubbo-101.md Commands to clone the repository and build the project using Maven. ```bash $ git clone https://github.com/apache/dubbo-samples.git $ cd dubbo-samples/java/dubbo-samples-api/ $ mvn clean package INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building dubbo-samples-api 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ dubbo-samples-api --- ... [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.182 s [INFO] Finished at: 2018-05-28T14:56:08+08:00 [INFO] Final Memory: 20M/353M [INFO] ------------------------------------------------------------------------ ``` -------------------------------- ### Navigate to samples directory Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/start.md Change the current working directory to the samples folder. ```bash cd samples/dubbo/simple ``` -------------------------------- ### Get Help for a Specific Dubbo Command Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/reference-manual/qos/introduction/command.md To understand the usage of a specific command, provide the command name as an argument to `help`. This shows examples and expected arguments. ```bash dubbo>help online ``` -------------------------------- ### Deploy Sample Application Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/java-sdk/tasks/observability/prometheus.md Apply the deployment configuration to launch the sample Dubbo application with metrics collection enabled. ```bash kubectl apply -f https://raw.githubusercontent.com/apache/dubbo-samples/master/4-governance/dubbo-samples-metrics-spring-boot/Deployment.yml ``` -------------------------------- ### Start servers Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/start.md Commands to launch the dubbo or HTTP server and the pixiu gateway. ```bash ./start.sh startServer body ``` ```bash ./start.sh startPixiu body ``` -------------------------------- ### Test Multi-Parameter URI Request Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/reference/pixiu/other/user/samples/dubbo/dubbo-uri.md This bash command shows how to call a Pixiu endpoint that expects multiple parameters from the URI. The example demonstrates a GET request with both name and age parameters, and the expected JSON response for a successful retrieval. ```bash curl localhost:port/api/v1/test-dubbo/user/name/tc/age/99 -X GET ``` ```json { "age": 18, "code": 1, "iD": "0001", "name": "tc", "time": "2020-12-20T15:51:36.333+08:00" } ``` -------------------------------- ### Start Go Client for Application-Level Discovery Source: https://github.com/apache/dubbo-website/blob/master/content/en/overview/mannual/golang-sdk/tutorial/interoperability/dubbo-java/service-discovery.md Execute the 'client.go' file using 'go run' to start the Go client. This client interacts with the Java server in an application-level service discovery scenario. ```shell cd go-client go run client.go ``` -------------------------------- ### Install GPG on macOS Source: https://github.com/apache/dubbo-website/blob/master/content/en/blog/news/prepare-an-apache-release.md Installs GPG using Homebrew and checks the installed version. Ensure you have Homebrew installed first. ```shell $ brew install gpg $ gpg --version # check version, should be 2.x ```