github.com/jingruilea/kubeedge@v1.2.0-beta.0.0.20200410162146-4bb8902b3879/docs/setup/kubeedge_run.md (about)

     1  # Run KubeEdge
     2  
     3  **Note:** This step is only required if KubeEdge is installed using Source. If KubeEdge is installed using `keadm` ignore this step.
     4  ***
     5  
     6  ## Cloudcore on Cloud side
     7  
     8  If you have copied the cloudcore binary in a folder and the configuration (conf) are stored in the same folder
     9  
    10  ```shell
    11  cd ~/kubeedge/
    12  nohup ./cloudcore &
    13  ```
    14  
    15  or
    16  
    17   ```shell
    18  nohup ./cloudcore > cloudcore.log 2>&1 &
    19   ```
    20  
    21  If you have setup using the systemctl
    22  
    23  Run cloudcore with systemd
    24  
    25  It is also possible to start the cloudcore with systemd. If you want, you could use the example systemd-unit-file. The following command will show you how to setup this:
    26  
    27  ```shell
    28  sudo ln build/tools/cloudcore.service /etc/systemd/system/cloudcore.service
    29  
    30  sudo systemctl daemon-reload
    31  sudo systemctl start cloudcore
    32  ```
    33  
    34  **Note:** Please fix __ExecStart__ path in cloudcore.service. Do __NOT__ use relative path, use absoulte path instead.
    35  
    36  If you also want also an autostart, you have to execute this, too:
    37  
    38  ```shell
    39   sudo systemctl enable cloudcore
    40   ```
    41  
    42  ```shell
    43  sudo systemctl start cloudcore
    44  ```
    45  
    46  ## Run Edgecore on Edge side
    47  
    48  ```shell
    49  cd ~/kubeedge
    50  ./edgecore
    51   ```
    52  
    53   or
    54  
    55   ```shell
    56  nohup ./edgecore > edgecore.log 2>&1 &
    57   ```
    58  
    59  If you have setup using the systemctl
    60   
    61  Run edgecore with systemd
    62   
    63  It is also possible to start the edgecore with systemd. If you want, you could use the example systemd-unit-file.
    64   
    65  ```shell
    66  sudo ln build/tools/edgecore.service /etc/systemd/system/edgecore.service
    67  sudo systemctl daemon-reload
    68  sudo systemctl start edgecore
    69  ```
    70   
    71  **Note:** Please fix __ExecStart__ path in edgecore.service. Do __NOT__ use relative path, use absoulte path instead.
    72   
    73  If you also want also an autostart, you have to execute this, too:
    74   
    75  ```shell
    76  sudo systemctl enable edgecore
    77  ```
    78  
    79  ```shell
    80  sudo systemctl start edgecore
    81  ```
    82  
    83  **Note:** Please run edgecore using the users who have root permission.