当前位置:网站首页>Set up a website with a sense of ceremony, and post it to 1/2 of the public network through the intranet

Set up a website with a sense of ceremony, and post it to 1/2 of the public network through the intranet

2022-07-04 22:51:00 probezy

The confession creativity between lovers is always full of tricks , And with innovative ideas , And a sense of ceremony , Can easily move the other half's heart . however , Memory is always strange , It's easy to lose freshness after experiencing beauty . How can we beat time , Let the memory live forever ? here , We can use cpolar Build a system that can be accessed at any time , And only belong to the Internet memory space of two people . Now let's see how to operate !

Generally speaking , The establishment of a website , You need to install the running environment of the web page on the server , Deploy all the files required for the operation of the website on the server , And carry out various debugging , Only in this way can the website be normally visited by Internet visitors . But doing so requires not only renting server space , And maintain it often , Devote a lot of resources and energy . But if we can store all the content needed to build a website on local electronic devices , Re pass cpolar The data tunnel function of is published on the public Internet , It will undoubtedly save a lot of resources and energy , And according to their own needs , Add various functions to web pages , Such as date or time reminder .

Of course , Want to enable local electronic devices to create web pages , We must build the necessary operating environment for the web page . And we can use a web page to run the suite , To achieve this goal . ad locum , We use PHPStudy Kit , As an environment program for web pages . This software looks like , This is what it looks like .

 Please add a picture description

After the software is installed locally , Automatically enabled MySQL( Database software )、Nginx or Apache( Are web server software ). Start up PHPStudy( And its web page running environment ) after , It's the first step of building our website : Build a web page running environment .
After having a web page running environment , We can put a web page ( Including the contents ), Put into this running environment , Let this web page run on local electronic devices . At this point, we can use the power of open source , Find an open source web page suitable for confession and commemoration , Add this page to our running environment , We can make this web page available to us . Here we use https://gitee.com/selfeasy/love.git This resource ( I would like to thank the original author for his generous open source ).

 Please add a picture description

Click... On the top right “ clone / download ”, Store this web page on your local electronic device , And unpack it , We can get the files related to the web page running shown in the list .

 Please add a picture description

 Please add a picture description

Then put these files , All copied to PHPStudy Under the webpage directory of the software . The specific location is (D:\phpstudy_pro\WWW), Here (D:) The disk number installed for the software ( To avoid permission conflicts ,PHPStudy It's better not to install it in C Disk or system disk ); and WWW Folder , Namely PHPStudy Web file storage folder . In this case , In order to avoid the confusion of web pages , So in WWW New folder “web2” Folder , The files used to store the web page .

 Please add a picture description

next , We go back to PHPStudy In software , Click on the left side of the panel “ Website ” tab , Click “ Create a website ” Button .

 Please add a picture description

stay “ Create a website ” Interface , We need to make some simple settings for the upcoming web page , Including web page output port , Web file storage location, etc .

 Please add a picture description

among ,“ domain name ” Item we input “localhost”; Port is “80” port ; Click the root directory “ Browse ”, find PHPStudy Directory WWW Under folder web2 Folder , And click the “ Select the folder ”; take “ Sync hosts” Check out . After all settings are completed , You can click “ confirm ”, Complete the establishment of the web page .
At this point, we return to the browser , Enter the domain name you just entered when building the website “localhost:80”, You can go to the newly established web page .

 Please add a picture description

 Please add a picture description

Of course , Content elements in web pages , Can be edited , But this will involve deeper web code editing . We can also find more similar open source web design on the Internet , Apply it to our website .
When the local web page is successfully established , We can go through cpolar Establish a data tunnel , Publish it on the public Internet , Let it become a witness of confession and commemoration , At the same time, it can also let a group of friends witness this romance . If you are right about cpolar Have any questions , 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 .

原网站

版权声明
本文为[probezy]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207041955266105.html