RISC-V Public Beta Platform Web Server address: http://175.8.161.253:8081
Introduction
A web server is the foundation of internet applications, playing a crucial role in user website access as well as backend services and application development by providers and developers.
It is evident that a web server is also an essential part of the RISC-V ecosystem.
Next, we will briefly introduce how to deploy a web service based on Nginx on the RISC-V platform. You are also welcome to visit the link above to check out our web page.
Part 1: Web Overview
Part 2: Platform Environment
Processor: SG2042 Linux Version: Ubuntu 22.10 gcc Version: 12.2.0(GNU) Server: Nginx
Part 3: Setup Steps
- Download Nginx Source Code Download the Nginx source code from the Nginx official website or GitHub repository and extract it.
- Configure Compilation Options In the extracted
/nginx-1.25.0
directory, run the configure script to configure the compilation options for Nginx.
You can use the --prefix
option to specify the installation directory for Nginx and use --with
to add additional modules.
./configure --prefix=/usr/local/nginx --with-http_ssl_module --with-http_gzip_static_module
- Compile and Install Run the following command to compile Nginx and install it to the specified directory (
–prefix
specified).
make
sudo make install
After installation, the content in the directory should be as follows:
- Start Nginx Use the following command to start Nginx:
cd /usr/local/nginx/sbin
sudo ./nginx -c
After successful startup, if you can see the following interface in the browser address bar, it means that Nginx has been successfully started:
After completing the above steps, you can freely DIY your own web!
Conclusion
We have established the “Hello RISC-V world!” web as a milestone, and we also want to encourage more developers to come to our RISC-V Public Beta Platform and build more interesting and meaningful web servers.
Reprinted from: RISC-V Public Beta Platform Released · First Web Server “Hello RISC-V world!”