Communication between PHP and Linux processes

Source: Internet
Author: User
Inter-process communication is estimated to be the company's inspection of fresh graduates (embedded industry), of course, many companies test is the algorithm.

I can think of it in my head without checking the information.
[1] pipeline, (famous, nameless)
[2] Parent-child process
[3] System V (Message Queuing, shared memory, semaphore)
[4] Socket (local, network)
[5] signal
Kernel and application
[1] shared memory
[2] /proc/file system

In this case, the communication between PHP and the Linux process is implemented using Message Queuing.

But here's the problem. LIGHTTPD permissions are lighttpd This user, the Linux process permissions are root, if establishing a message queue in the/tmp directory will cause LIGHTTPD to send a message failed.

WORKAROUND: Set up the message queue under the directory of the user rights of LIGHTTPD, the permission is 0666

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

  • 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.