ORIGIN

E-Commerce Platform: 01 Linux Setup

E-Commerce Platform 1 mins187 words
This article was written 57 days ago. The content of the article may be out of date.

My project is based on the Linux environment, so the first step is to set up the Linux environment.

Installing the Linux Environment

CentOS

Step 1: Tool Installation

Step2: Install centos7

1
$ vagrant init centos/7

Start the Virtual Machine: Execute the following command to start the virtual machine:

1
$ vagrant up

Connect to the Virtual Machine: Once the virtual machine is running, use SSH to connect to it:

1
$ vagrant ssh

WSL-ubuntu

Installation process is missed.

Configuring the Network Gateway

Vagrant

Step1: Modify

To set a fixed gateway for a Vagrant virtual machine, you can modify the network configuration in the Vagrantfile.

The default file location is under C:\Users\your_username, or under the directory where you install vagrant.

find the line config.vm.network "private_network", ip: "192.168.56.10" and uncomment it.

Use ipconfig/all to check your virtualbox ip. The description of which is VirtualBox Host-Only Ethernet Adapter

Step2: Test

Restart the vagrant

1
$ vagrant reload

Connected to vagrant

1
$ vagrant ssh

Check its IP

1
$ ip addr

WSL

Jut check its IP.

Final test

Finally, use ping xxx.xxx.xxx to test the connection.

TOP
COMMENT
  • ABOUT
  • |
o_oyao
  The Jigsaw puzzle is incomplete with even one missing piece. And I want to be the last piece to make the puzzle complete.
Like my post?
Default QR Code
made with ❤️ by o_oyao
©o_oyao 2019-2024

|