Linux Project Deployment issues

Source: Internet
Author: User

1, Ubuntu installation Pillow error

Missing dependency Packages

pip install Pillow

Valueerror:zlib is required unless explicitly disabled using--disable-zlib, aborting

Resolution (Official document resolution, https://pillow.readthedocs.org/en/3.0.0/installation.html#linux-installation) sudo apt-get install Libtiff4-dev Libjpeg8-dev zlib1g-dev \ Libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk

2, Installation Mysql-python

Tar xvzf mysql-python-1.2.2.tar.gz

CD mysql-python-1.2.2

VI site.cfg

Remove mysql_config =/usr/local/mysql/bin/mysql_config before the line, and set the path of the mysql_config to correct.

Python setup.py Build

sudo python setup.py install

End of installation

Apt-get Update

Apt-get Purge libmysqlclient18 #可以不执行

Apt-get Install Libmysqlclient-dev

3. View port occupancy, end process

To view port usage, use the netstat command.
View the connected service ports (established
Netstat-a
View all service ports (listen,established)
Netstat-ap

To view port 8080, you can combine the grep command:

Netstat-ap | grep 8080

If you look at Port 8888, enter it in the terminal:

lsof-i:8888

To stop a program that uses this port, use:

Kill-s 9 Process Number

Linux Project Deployment issues

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.