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