当前位置:网站首页>How to start the phpstudy server

How to start the phpstudy server

2022-06-25 11:03:00 Stranger & love sorrow

Software needed

phpStudy Used to import a database

api-server database

function

1 You can start a server , Let the development environment use the production environment's web address to request

1 install phpStudy And import it into the database

1 double-click phpStudy Software , Run as administrator , The following content will pop up

2 Input according to the above figure ,

3 The restored database is named mydb

4 Select the file to restore as   Copy and paste directly

 5 Click Import

2 Turn on the server

1 Get into api-server Folder , Input cmd Turn on the terminal

2 When in the terminal, enter npm i Download dependency

3 After downloading the dependency , Input node app.js Turn on the server , After completion

  Be careful : This terminal cannot be shut down , Otherwise, the server will shut down

Test whether the server is turned on

Type in the browser address bar localhost  The following page appears , It means that the server is started successfully

 

原网站

版权声明
本文为[Stranger & love sorrow]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202200542262589.html