Home  >  Article  >  Backend Development  >  nginx+uwsgi installation error nginx apache nginx php nginx rewrite

nginx+uwsgi installation error nginx apache nginx php nginx rewrite

WBOY
WBOYOriginal
2016-07-29 08:50:471121browse

hello.
This problem should be caused by uwsgi obtaining the kernel release version of your system during installation.
In program uwsgiconfig.py
uwsgi_os_k = re.split('[-+]', os.uname()[2])[0]

If the system kernel release version is '2.6.32_1-12-0- 0', uwsgi_os_k = '2.6.32_1',
is obtained in the program When processing the minor version later, k_minor = ‘32_1’, an error occurs when int(k_minor) >= 25, because k_minor = ‘32_1’ reports an error when converting numbers.

Modification:
You can modify the uwsgiconfig.py file in the uwsgi directory
Set uwsgi_os_k to the correct value. If it is the above, it is uwsgi_os_k = ‘2.6.32’

If you install it like this, it should be OK.

I often encounter problems when installing uWSGI. Take a look at the cause of the error and adjust it appropriately. Basically it is OK. good luck.

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });

The above introduces the nginx+uwsgi installation error, including nginx content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn