当前位置:网站首页>Publish raspberry pie web page with cpolar (apache2 installation test)
Publish raspberry pie web page with cpolar (apache2 installation test)
2022-07-28 15:14:00 【probezy】
In the previous Introduction , We installed... In raspberry pie cpolar, And will cpolar Client successfully activated . Next , We can use cpolar The intranet penetration function of , Publish the web page on raspberry pie to the public Internet . But different web pages need environmental support 、 There are differences in production methods , Follow the principle from easy to difficult , We will pass a series of articles , Explain in detail how to build a decent web page on raspberry pie , And pass cpolar Publish it on the public Internet . Now? , Let's see how to build a simple web page .
The normal operation of a web page , Need corresponding environment , So before building a web page , We need to install the environment where the web page runs . Now the most widely used web page running environment , There is no doubt that is apache This software , So we first install it on raspberry pie apache.
Enter commands separately
sudo apt-get install apache2 -y
sudo service apache2 restart

To install apache2 Software , And start the apache2 service ( If you come across apache2 Installation failed , You can try to run “sudo apt update” Command update system , Then install ). stay apache2 After installation , We type in the browser “http://localhost”, You can get into apache2 Description page of .

But this is dry apache2 The description page is really boring , We can try to run a simple web page , Just test it apache2 The function of . Here we choose a simple relaxation site , To match the rare nap time . Again , Let's enter the command line
cd /var/www/html/
sudo rm *
sudo wget https://www.cpolar.com/static/downloads/meditation-app-master.tar.gz
sudo tar xzf meditation-app-master.tar.gz
sudo mv meditation-app-master/* .
sudo rm -rf meditation-app-master meditation-app-master.tar.gz
After the command is run , Let's refresh the browser ( Still localhost For address ), You will find the original apache2 Description page of , It has become a meditation site that can calm the mind .

Come here , We successfully built a simple web page on raspberry pie . Of course , If you are not interested in meditation sites , We can also download other open source web resources , Build such a simple site .
At this time, this page can only be seen on the local raspberry pie . Want to make this page accessible at any time , We still need to pass cpolar Publish it on the public network . In the next Introduction , We will give you a detailed introduction to , How to publish this simple web page on the public Internet . If you are right about cpolar Any questions about the use of , Welcome to contact us , We will certainly provide you with assistance within our ability . Of course, welcome to join cpolar Of VIP Official group , Explore together cpolar The infinite potential of .
边栏推荐
- The first self introduction quotation
- Mlx90640 infrared thermal imager sensor module development notes (VIII)
- Solution: attributeerror: type object 'h5py.h5a AttrID has no attribute __ reduce_ cython__
- Pytorch GPU installation
- Analysis vulnerability introduction
- NCBI experience accumulation
- 3438. Number system conversion
- 4519. Number of square arrays
- Mysql使用left join连表查询时,因连接条件未加索引导致查询很慢
- Stack expression
猜你喜欢

Pytorch GPU installation
Gradle -- package multiple variants with gradle

Deploy flask on Alibaba cloud server

shellcode编写学习-环境

Talk about low code / zero code tools

Use of beefs

苹果iPhone手机APP应用图标隐藏怎么找回恢复显示在iPhone苹果手机桌面显示被隐藏的应用APP图标到iPhone苹果手机桌面?

企业微信客服链接,企业微信客服聊天

Analysis vulnerability introduction

Chapter I Introduction
随机推荐
Mlx90640 infrared thermal imager sensor module development notes (VIII)
[complete installation package & tutorial] sqlserver basic installation_ Sqlserver completely uninstalled_ Sqlserver custom installation_ Getting started with sqlserver_ SQLSERVER database
企业微信客服链接,企业微信客服聊天
No files or folders found to process
Compilation language and interpretation language
8、 C scope rules
Chapter 3 stack, queue and array
Stack expression
9、 C array explanation
Gradle -- package multiple variants with gradle
使用cpolar发布树莓派网页(apache2网页的发布)
How to gracefully encapsulate anonymous inner classes (DSL, high-order functions) in kotlin
Idea2020.1.4 packages package collapse
What is the difference between UTF-8, utf-16 and UTF-32 character encoding? [graphic explanation]
Downloading PIP package is too slow
23、 TF coordinate transformation (III): dynamic coordinate transformation
shellcode编写学习-环境
经典Dijkstra与最长路
边缘技术和小程序容器在智能家居中的应用
Use of beefs