目錄
Tutorial Scenario
1) Apache Axis2 Service Archive Generator Wizard – Eclipse Plugin
2) Apache Axis2 Code Generator Wizard - Eclipse Plugin
PART 1 - The Bottom Up Approach in Web Services Development Using the Apache Axis2 Eclipse Plugin
Testing the Temperature Converter Service
首頁 資料庫 mysql教程 Developing Web Services Using Apache Axis2 Eclipse Plugins

Developing Web Services Using Apache Axis2 Eclipse Plugins

Jun 07, 2016 pm 03:27 PM
services using web

Apache Axis2 Eclipse Plugins allow Web service developers to easily and speedily expose the available plain old Java applications as Web services. This tutorial by Lahiru Sandakith consists of two parts, with two examples that walk you thr

Apache Axis2 Eclipse Plugins allow Web service developers to easily and speedily expose the available plain old Java applications as Web services. This tutorial by Lahiru Sandakith consists of two parts, with two examples that walk you through developing and deploying a sample Web service using the Top-down (Contract First) and Bottom-up (Code First) approach using Axis2 Eclipse Plugins.

The tutorial is written for Eclipse SDK v3.2 and Axis2 Eclipse Plugin v1.3.

 

Introduction

Apache Axis2 is the most popular and widely used core engine for Web services. It is a complete re-design and re-write of the widely used Apache Axis SOAP stack built on the lessons learned from Apache Axis. Apache Axis2 is more efficient, more modular, and more XML-oriented than the older version. It is carefully designed to support the easy addition of plugin "modules" that extend its functionality for features such as security and reliability. On the other hand, Eclipse is a project aiming to provide a universal tool set for development. It is an open source IDE that is mostly provided in Java, but the development language is independent and not limited in any way. It is the most widely used IDE for most computer languages, especially for JAVA.

Developing applications using any programming language is becoming easier with the availability of tooling. If tooling is available in areas like JAVA application development, it will facilitate faster and easier application development, and also increase the productivity of the developers. Most integrated development environments (IDEs) address the tooling and the features available around a particular area of development. Most IDEs available today go beyond supplying traditional tooling facilities, which address only certain areas in programming. They are becoming frameworks for developing applications.

This tutorial mainly focuses on the two above mentioned tools available for Web service developers. They are, Axis2 Eclipse Plugins, which are built around Eclipse-the Framework available for JAVA application development, and Axis2- the widely used core engine for Web services. These tools help the developers to easily expose their available plain old JAVA applications as Web services, using wizards.

This tutorial is split into two parts covering two basic Web services scenarios of Web service in the Bottom Up (Code First) and Top Down (Contract First) approaches with the Axis2 Eclipse Plugins.

 

Tutorial Scenario

Assume that you are a Java developer who wants to expose your available application as a Web service. This tutorial covers developing, deploying, and testing a temperature conversion application as a Web service in the Top Down (Contract First) and Bottom Up (Code First) approaches. In Web services terminology, Bottom Up (Code First) is used where the developer starts with the business logic, which is the code, and then develop and deploy the code as a Web service. The Top Down (Contract First) approach starts from the Web service descriptions, which is the WSDL, and then goes on to expose the Web service.

Only two Eclipse plugins are used in the process. The tutorial uses the Axis2 Web application deployed in your servlet container as the Web service deployment engine. Also, it is assumed that you know the basics of how to use Eclipse as your Java development environment, and therefore it does not cover areas such as creating a JAVA project in an Eclipse workspace and compiling and building a JAVA project in Eclipse.

 

Now let us focus on the two plugins mentioned in the tutorial scenario.

1) Apache Axis2 Service Archive Generator Wizard – Eclipse Plugin

As a part of the Axis2 tool set, the service archive generator is an important tool that allows the generation of service archives (an "aar" file or a "jar" file) that can be deployed as a Web service to Axis2.

2) Apache Axis2 Code Generator Wizard - Eclipse Plugin

The Axis2 Code Generator Wizard is the other important tool that allows you to generate WSDL2Java and Java2WSDL code, which is the heart of developing and testing Web services.

To start developing Web services, you need to download, install the two plugins, and verify that the plugins are working properly. The installation of plugins into Eclipse is as simple as downloading the plugins from the Apache Axis2 download page and extracting them to the Eclipse plugins directory. You can download the two plugins from the Axis2 Tools Page. Refer to the installation instructions.

Other than the two plugins, we need the Axis2 runtime to deploy the developed Web services. We use the Axis2 Web Application which can be deployed in any popular servlet container. (You can download the Axis2 Web Application from the Axis2 Download page.) You have to just place it in the repository of the servlet container and run it. For example, if you are using Apache Tomcat, just copy the downloaded .war file, put it in the webapp folder, and start the servlet container.

 

PART 1 - The Bottom Up Approach in Web Services Development Using the Apache Axis2 Eclipse Plugin

  1. Start Eclipse SDK. First we need to create a JAVA project in Eclipse. (Follow the instruction on Eclipse SDK help.) You can give any name to the JAVA project, but for clarity, let us create a JAVA project called “TemperatureWebService”.

    In the Bottom Up Approach, we start with the service implementation and then build the deployable Web service component. We will be using the TemperatureConverter class definition as the logic for developing, deploying, and testing the Web service.

  2. Create a custom package ws.example appropriately and include the TemperatureConverter.java file in that package. Compile and build the project.

    package ws.example;<br><br>/**<br> * Temperature Converter Implementation Class<br> */<br>public class TemperatureConverter {<br>                /**<br>                 * util method to convert celsius to fahrenheit<br>                 * @param cValue : double value of celsius<br>                 * @return calculated value of fahrenheit<br>                 */<br>                public double c2fConvertion(double cValue) {<br>                               return ((cValue * 9.0)/5.0 )+ 32.0;<br>                }<br><br>                 /**<br>                 * util method to convert fahrenheit to celsius<br>                 * @param fValue : double value of fahrenheit<br>                 * @return calculated value of celsius<br>                 */<br>                public double f2cConvertion(double fValue) {<br>                               return ((fValue - 32.0) * 5.0) / 9.0;<br>                }<br>}
    登入後複製

    Developing Web Services Using Apache Axis2 Eclipse Plugins

  3. After successfully building the project, we will create the service archive using the Axis2 Eclipse Service Archiver Plugin. On the File menu, click New and then click Other to access the Axis2 wizards. Else, you can press Ctrl+N.

    Note : At any given time, you can go back through the wizards, change the settings, and even start the wizards all over again to create a different Web service on another JAVA project available in your workspace.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

  4. Select the Axis2 Service archiver and click Next. You will see the Axis2 service definition selection page.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

    On this page, select the output location of the “TemperatureWebService” Java project that we previously developed. Here we point to the service implementation classes. If there is more than one class, you only have to point to the JAVA project build location. The wizard includes all the implementation files. To be on the safe side, if you are going to expose a complex project as a Web service, it's better to select the include .class files check box to omit unnecessary resource files that will increase the size of the deployable service archive that we are going to create.

  5. After selecting the correct output location, click Next.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

    On this page, you can browse for the WSDL file. If you do not want to add a WSDL file to the service archive, select the Skip WSDL check box. Else you can select the Select WSDL check box, and specify the location of the WSDL file. We will skip the WSDL for the moment.

  6. Click Next.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

    This page is to add the libraries. The library name (with the full path) can be specified by either typing it or browsing for it. Once the library name with the full path is entered, click Add to add the library to the list. The added libraries should be displayed in the Added libraries list. You can add as many external libraries as you wish.

    If any added library has to be removed, select it from the Added libraries list and click Remove.

  7. For this example, we do not need any external libraries added to the generated service. Therefore, click Next to proceed to the next step.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

    This page is about the services.xml generation. If you have a custom services.xml file, you can select the services.xml file on this page by browsing for it or you can generate the service XML automatically. The browsing option is disabled when the Generate service xml automatically check box is selected.

  8. For this example, we use the automatically generated services.xml rather than a custom written one. Therefore, select the Generate service xml automatically check box, and then click Next.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

    Note that this page will appear only if you selected to generate the services.xml automatically in the previous step. (If you selected a services.xml file, then you will be directed to the last page of the wizard.) After entering the correct service name and a valid fully qualified class name, load the existing methods of that class by clicking Load. If it is successfully loaded, you will see a table at the bottom of the page with the details of the loaded class. You can specify the methods to include in the services.xml by selecting the corresponding check boxes.

  9. Select the Search declared method only check box, to remove the inherited methods from the class. We do not need the inherited methods to be exposed and our only interest is in temperature conversion logic. Click Next to proceed to the last page of the wizard.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

    On the last page of the wizard, specify the output file location and the output archive file name to complete the wizard. Note the location given in the example above. After specifying a name to identify the service that we will be deploying, we can directly guide the wizard to deploy this newly created Web service on any available Web service repository.

    Since we already have the Apache Axis2 Web application deployed on the servlet container, we can easily guide the wizard to deploy the service in the Axis2 Webapp (Axis2.war) inside Apache Tomcat. After deploying the Web application, the service repository will be available in the <tomcat_home>/webapp/axis2/WEB-INF/services</tomcat_home> folder.

  10. Click Finish to complete the steps in the wizard.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

  11. Start the servlet container (in this case the Apache Tomcat), and navigate to http://localhost:8080/axis2 This will lead to the Axis2 Web application home page.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

    To verify that our newly created service is available, navigate to the Services tab and view the available services. Your Temperature Converter service will be there.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

Testing the Temperature Converter Service

Now that we have the service up and running, let's go ahead and test the created Temperature Converter service. This consists of two steps.

We have to generate the client code and invoke the Web service. For that we use the Axis2 Eclipse Codegen Plugin to create a WSDL from a Java source. For demonstration purposes of the Eclipse CodegAxis2 Eclipse Codegen Plugin we will do that in two steps. As the first step, we will create the WSDL, and then as the second step use that WSDL to generate code for the client.

Also note that you can skip the WSDL generation part since the deployed Web service is up and running. The WSDL will be generated when we click Temperature Converter under the available services in the Axis2 Web application. However, since the main aim of this tutorial is to introduce the Axis2 Eclipse Plugins, we are not going to use that option. We will use the Axis2 Eclipse Codegen Plugin to generate the WSDL for us.

Step 1 : Generate the WSDL from the Java source

  1. Start the Axis2 Eclipse Codegen Plugin by selecting it and clicking Next on the New wizard page.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

    We are going to create the WSDL using the Axis2 Eclipse Codegen Plugin Java2wsdl option.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

  2. On the first page, select the Generate a WSDL from a JAVA source and file option. Then, click Next.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

    On this page, select the class to be exposed and the relevant .jar files /classes to be loaded as the classpath.

    Add the folder location of the class files of our project. After specifying the fully qualified class name click on the Add Folder button and add the location of the class files of your project. After the libraries have been set, click Test Class Loading to test whether the class is loadable.

  3. Test the class loading by clicking Test Class Loading

    Developing Web Services Using Apache Axis2 Eclipse Plugins

    Unless the class loading is successful, the Next button will not be enabled. As we did on the service archive generation, we have to enter the fully qualified class name as the service class. Then select the project output folder.

  4. Once the class loading is successful, click Next. The page below will appear.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

    This page allows the parameters to be modified by setting the options for the generator. Note: If you customize these parameters (instead of the default), you will be generating a different Web service descriptor with different parameters than what we have generated by using the service archive wizard.

    NOTE : If you are using the 1.3 version of the Axis2 Eclipse Plugin you need to change the shema target namespace to http://example.ws to comply it with the Axis2 1.3 version. Please drop the trailing /xsd part of the shema target namespace. All other earlier version than 1.3 do not need this change.

  5. We will accept all the default values. Click Next.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

  6. Here you can specify the output file location by typing or browsing for it using the Browse button. You have the option of browsing only Eclipse workspace projects by selecting the Add the source to a project on current eclipse workspace option. Else you have the option of saving the codegen results to the file system.
  7. Once the output file location and the output WSDL file name is added, click Finish to complete generation.

    Enter a valid output path where you have the access and click on finish button.

    -->

    Developing Web Services Using Apache Axis2 Eclipse Plugins

    A message appears informing you that all the operations were completed successfully. You have successfully completed the Java2WSDL code generation and created the WSDL of the Temperature Converter Service.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

 

Step 2 : Generate code and invoke the service

In this step, we have to generate code, which represents the client side stubs, using the Axis2 Eclipse Codegen Plugin and test the deployed Temperature Converter Service by using the WSDL file generated in Step 1.

To create the client stub using the Axis2 Eclipse Codegen Plugin wsdl2java option:

  1. Start the Axis2 Eclipse Codegen Plugin by selecting it and clicking Next on the new wizard page.
  2. Create the client stub using the Axis2 Eclipse Codegen Plugin wsdl2java option by selecting the Generate Java source code from WSDL file option. Click Next.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

  3. Select the previously generated WSDL location by browsing for it. Click Next.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

    Once the WSDL file is selected, the next page will take you to the page from where the codegen options are to be selected. By far this is the most important page in this wizard. This page determines the characteristics of the code being generated.

    If this is the first time you invoked the wizard, you will see that the most common options are set by default. Advanced users will find it very easy to turn the knobs using these options. You can select Custom from the Select Codegen Options list and then change/edit the fields that you need. We are going to create stubs accepting the default values.

  4. Accept the default settings and click Next.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

    On the final page of the wizard, you can specify the output file path by typing or browsing for it using the Browse button. You have the option of browsing only Eclipse workspace projects by selecting the Add the source to a project on current eclipse workspace option. Else you have the option to save the codegen results to the file system.

  5. Click Add the source to a project on current eclipse workspace and select the project that you have created earlier.
  6. Select the Add codegen jars to the codegen resulted project check box so that we can easily compile the code without worrying about adding Axis2 libraries to the JAVA project classpath.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

  7. Click Finish. A message appears informing you that you have successfully completed the WSDL2Java code generation.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

  8. The client stub files will be generated in the project.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

    In order to compile the code we need to add the generated libraries to the project library path. You can add the .jar files in the lib directory by navigating the project properties of the Java project.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

    After adding the required libraries, you will be able to clean build the project without any errors.

     

  9. Now we will write the Client, and use this client to invoke the Web service deployed earlier. Add the following TemperatureConverterServiceClient. java class to the project,
    package ws.example;<br><br>public class TemperatureConverterServiceClient {<br>    public static void main(String[] args) {<br>        TemperatureConverterStub stub;<br>        try {<br>            double c_value = 32;<br>            stub = new TemperatureConverterStub<br>           ("http://localhost:8080/axis2/services/TemperatureConverter");<br>            TemperatureConverterStub.C2FConvertion c2f = new TemperatureConverterStub.C2FConvertion();<br>            c2f.setCValue(c_value); <br>            TemperatureConverterStub.C2FConvertionResponse res = stub.c2FConvertion(c2f);  <br>            System.out.println("C Value : "+c_value+ "/tResult : " +res.get_return());<br>            TemperatureConverterStub.F2CConvertion f2c = new TemperatureConverterStub.F2CConvertion(); <br>            f2c.setFValue(res.get_return());<br><br>            TemperatureConverterStub.F2CConvertionResponse res1 = stub.f2CConvertion(f2c);<br>            System.out.println("F Value : "+res.get_return()+ "/tResult : " +res1.get_return());<br>       } catch (Exception e) {<br>           e.printStackTrace();<br>       }<br>    }<br>}
    登入後複製

    NOTE : If you are using an early version of the Axis2 Eclipse Plugins than 1.3, you may have to change the client according to the stubs that have been generated. Previous verisons of Axis2 did generate multiple stubs for each port type of the wsdl and you may use the example client given below for those versions.

    package ws.example;<br><br>import java.rmi.RemoteException;<br><br>import org.apache.axis2.AxisFault;<br><br>public class TemperatureConverterServiceClient {<br><br>  public static void main(String[] args) {<br>    TemperatureConverterTemperatureConverterSOAP11PortStub stub;<br>    try {<br>      double c_value = 32;<br>      stub = new TemperatureConverterTemperatureConverterSOAP11PortStub<br>	 		("http://localhost:8080/axis2/services/TemperatureConverter");<br>      TemperatureConverterTemperatureConverterSOAP11PortStub.C2FConvertion c2f <br>      	= new TemperatureConverterTemperatureConverterSOAP11PortStub.C2FConvertion();<br>      c2f.setCValue(c_value);<br>      TemperatureConverterTemperatureConverterSOAP11PortStub.C2FConvertionResponse res <br>        = stub.c2FConvertion(c2f);<br>       System.out.println("C Value : "+c_value+ "/tResult : " +res.get_return());<br>       TemperatureConverterTemperatureConverterSOAP11PortStub.F2CConvertion f2c <br>	 = new TemperatureConverterTemperatureConverterSOAP11PortStub.F2CConvertion();<br>        f2c.setFValue(res.get_return());<br><br>        TemperatureConverterTemperatureConverterSOAP11PortStub.F2CConvertionResponse res1 <br>	 = stub.f2CConvertion(f2c);<br>        System.out.println("F Value : "+res.get_return()+ "/tResult : " +res1.get_return());<br>        } catch (AxisFault e) {<br>        	e.printStackTrace();<br>        } catch (RemoteException e) {<br>                e.printStackTrace();<br>        }<br>  }<br>}
    登入後複製

    Developing Web Services Using Apache Axis2 Eclipse Plugins

    After adding the TemperatureConverterServiceClient. java class to the project, compile, and build the project. After that you can run the client to test the service. If you have successfully carried out all the steps, the temperature converter service will be invoked and the results of the service will be displayed on the command line output.

    Developing Web Services Using Apache Axis2 Eclipse Plugins

    Note: The stub assumes that you run Tomcat on 8080 (if not, change the stub URL and re-run the client).

本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover

AI Clothes Remover

用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

Video Face Swap

Video Face Swap

使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱工具

記事本++7.3.1

記事本++7.3.1

好用且免費的程式碼編輯器

SublimeText3漢化版

SublimeText3漢化版

中文版,非常好用

禪工作室 13.0.1

禪工作室 13.0.1

強大的PHP整合開發環境

Dreamweaver CS6

Dreamweaver CS6

視覺化網頁開發工具

SublimeText3 Mac版

SublimeText3 Mac版

神級程式碼編輯軟體(SublimeText3)

如何使用python+Flask實作日誌在web網頁即時更新顯示 如何使用python+Flask實作日誌在web網頁即時更新顯示 May 17, 2023 am 11:07 AM

一、日誌輸出到檔案使用模組:logging可以產生自訂等級日誌,可以輸出日誌到指定路徑日誌等級:debug(偵錯日誌)=5){clearTimeout(time)//如果連續10次取得的都是空日誌清除定時任務}return}if(data.log_type==2){//如果取得到新日誌for(i=0;i

Nginx的Web伺服器caddy怎麼使用 Nginx的Web伺服器caddy怎麼使用 May 30, 2023 pm 12:19 PM

Caddy簡介Caddy是一款功能強大,擴展性高的Web伺服器,目前在Github上已有38K+Star。 Caddy採用Go語言編寫,可用於靜態資源託管和反向代理。 Caddy具有以下主要特性:比較Nginx複雜的配置,其獨創的Caddyfile配置非常簡單;可以透過其提供的AdminAPI實現動態修改配置;預設支援自動化HTTPS配置,能自動申請HTTPS憑證並進行配置;能夠擴展到數以萬計的站點;可以在任意地方執行,沒有額外的依賴;採用Go語言編寫,內存安全更有保證。安裝首先我們直接在CentO

如何使用Golang實作網頁應用程式的表單驗證 如何使用Golang實作網頁應用程式的表單驗證 Jun 24, 2023 am 09:08 AM

表單驗證是Web應用程式開發中非常重要的環節,它能夠在提交表單資料之前對資料進行有效性檢查,避免應用程式出現安全漏洞和資料錯誤。使用Golang可以輕鬆實現網頁應用程式的表單驗證,本文將介紹如何使用Golang來實作網頁應用程式的表單驗證。一、表單驗證的基本要素在介紹如何實作表單驗證之前,我們需要知道表單驗證的基本要素是什麼。表單元素:表單元素是指

Java API 開發中使用 Jetty7 進行 Web 伺服器處理 Java API 開發中使用 Jetty7 進行 Web 伺服器處理 Jun 18, 2023 am 10:42 AM

JavaAPI開發中使用Jetty7進行Web伺服器處理隨著互聯網的發展,Web伺服器已經成為了應用程式開發的核心部分,同時也是許多企業所關注的焦點。為了滿足日益增長的業務需求,許多開發人員選擇使用Jetty進行Web伺服器開發,其靈活性和可擴展性受到了廣泛的認可。本文將介紹如何在JavaAPI開發中使用Jetty7進行We

怎麼設定nginx保證frps伺服器與web共用80埠 怎麼設定nginx保證frps伺服器與web共用80埠 Jun 03, 2023 am 08:19 AM

首先你會有個疑惑,frp是什麼呢?簡單的說frp就是內網穿透工具,配置客戶端以後,可以透過伺服器來存取內部網路。現在我的伺服器,已經用nginx做站了,80端口只有一個,那如果frp的服務端也想使用80端口,那該怎麼辦呢?經過查詢,這個是可以實現的,就是利用nginx的反向代理來實現。補充一下:frps就是伺服器端(server),frpc就是客戶端(client)。第一步:修改伺服器中nginx.conf設定檔在nginx.conf中http{}裡加入以下參數,server{listen80

Web 端即時防擋臉彈幕(基於機器學習) Web 端即時防擋臉彈幕(基於機器學習) Jun 10, 2023 pm 01:03 PM

防擋臉彈幕,即大量彈幕飄過,但不會遮擋視訊畫面中的人物,看起來像是從人物背後飄過去的。機器學習已經火了好幾年了,但很多人都不知道瀏覽器中也能運行這些能力;本文介紹在視頻彈幕方面的實踐優化過程,文末列舉了一些本方案可適用的場景,期望能開啟一些腦洞。 mediapipeDemo(https://google.github.io/mediapipe/)展示主流防擋臉彈幕實現原理點播up上傳視訊伺服器後台計算提取視訊畫面中的人像區域,轉換成svg儲存用戶端播放視訊的同時,從伺服器下載svg與彈幕合成,人像

web標準是什麼東西 web標準是什麼東西 Oct 18, 2023 pm 05:24 PM

Web標準是一組由W3C和其他相關組織制定的規範和指南,它包括HTML、CSS、JavaScript、DOM、Web可訪問性和性能優化等方面的標準化,透過遵循這些標準,可以提高頁面的兼容性、可訪問性、可維護性和效能。 Web標準的目標是使Web內容能夠在不同的平台、瀏覽器和裝置上一致地展示和交互,提供更好的使用者體驗和開發效率。

如何從駕駛艙Web使用者介面啟用管理訪問 如何從駕駛艙Web使用者介面啟用管理訪問 Mar 20, 2024 pm 06:56 PM

Cockpit是一個面向Linux伺服器的基於Web的圖形介面。它主要是為了使新用戶/專家用戶更容易管理Linux伺服器。在本文中,我們將討論Cockpit存取模式以及如何從CockpitWebUI切換Cockpit的管理存取。內容主題:駕駛艙進入模式查找當前駕駛艙訪問模式從CockpitWebUI啟用Cockpit的管理訪問從CockpitWebUI禁用Cockpit的管理訪問結論駕駛艙進入模式駕駛艙有兩種訪問模式:受限訪問:這是駕駛艙的默認訪問模式。在這種存取模式下,您無法從駕駛艙Web用戶

See all articles