Analyze easyswoole3.0 source code and experience ES3 (3)

Source: Internet
Author: User

 

The demo is in the hand. You have to try it out. First, change the default service to webserver and add the database configuration.

  • Create a database. GitHub contains related content.
    Create Table 'user _ List' ('userid' int (11) not null auto_increment, 'account' varchar (45) not null, 'Password' varchar (45) not null, 'session 'varchar (45) default null, 'addtime' int (11) not null, primary key ('userid '), unique key 'userid _ unique '('userid'), unique key 'account _ unique' ('account') engine = InnoDB default charset = utf8;
  • Set related configuration files
    MySQL. Host = 127.0.0.1
    MySQL. User = root
    MySQL. Password = root
    MySQL. Database = test
  • Modify default service
    Main_server.server_type = web_server
  • Modify easyswooleevent
    Comment out the websocket configuration.

     

Start Service: PhP easyswoole start

Access:Curl http: // FIG: 9501/api1/alluser

This is interesting. The track service prints the execution process. This is left for analysis.

 

 

Analyze easyswoole3.0 source code and experience ES3 (3)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.