Total text: 1498 words and 8 pictures
Estimated reading time: 4 minutes
In some project development, we need to write some configuration files, and often use ip and port. If the location of your computer changes frequently, you will find that the ip will change every time you turn on Ubuntu in the virtual machine. This is normal, because the virtual network card will automatically assign an IP for us. The ip is different in different places. So how do we solve this problem and fix our ip permanently?
Windows10pro, VMware15.0, Ubuntu16.04, virtual machine adopts NAT mode
The ip in ipv4 in the picture is what we need
For example, my ip is 192.168.59.xxx, so the thing to remember is 192.168.59
VMware15.0,Ubuntu16.04、python3.5、fdfs-client-py1.2.6
raise DataError('[-] Error:%d,s'%(th.status,os.strerror(th.status)))
DataEoor:[-] Error:2,No such file or directory
The reason for this is that the IP in the configuration file of the FastDFS client is inconsistent when we set up the Storage server, or the filled-in IP is inconsistent with the local IP.
docker container ls
docker container stop storage
docker rm fb057554358(Storage's CONTAINER ID)
docker run -dti --network=host --name storage -e TRACKER_SERVER=<Own computer ip>:22122-v /var/fdfs/storage:/var/fdfs delron/fastdfs storage
Set ip to the ip of your computer, do not use 127.0.0.1. When filling in ip, don’t put <>
tracker_server=<Own computer ip>:22122
Do not write <> when filling in ip
High-quality article recommendation:
[ Redis operation command summary)(http://mp.weixin.qq.com/s?__biz=Mzg3NTA0OTM1OQ==&mid=2247484082&idx=2&sn=4a2f11b6822ec49b794116e53f5f0ed5&chksm=cec63a52f9b1b3449c27fceneb114fc84ffc442684ffv
[ Those English words that make you headaches in the front end](http://mp.weixin.qq.com/s?__biz=Mzg3NTA0OTM1OQ==&mid=2247483944&idx=1&sn=2c6fb1cc97bca84adabe15723086824c&chksm=cec63ac8f17789_direct4bef12149scenechatchatchatchatchachambers&mid=2247483944&idx=1&sn=2c6fb1cc97bca84adabe15
[ Summary and review of the key knowledge of the Flask framework](http://mp.weixin.qq.com/s?__biz=Mzg3NTA0OTM1OQ==&mid=2247484160&idx=2&sn=c5b5ce368b080ccb8205d63031617a2a&chksm=cec63be0f9b1b8fbb4bc4bbc3498cenebcc4ccv12a9b16416
[ Detailed explanation of the key knowledge points of the project](http://mp.weixin.qq.com/s?__biz=Mzg3NTA0OTM1OQ==&mid=2247484181&idx=2&sn=e2015a985b4e1bce9e6f16257155996a&chksm=cec63bf5f9b1b2e3c63bf5f9b1b2e4e3ca66aedcenebenechae direct#ef6aed2, 766,, and,,,,,,,,,,,,,,,,,,, direct, engine, engine
[ Difficulties to understand & interview questions and answers](http://mp.weixin.qq.com/s?__biz=Mzg3NTA0OTM1OQ==&mid=2247484209&idx=1&sn=215c12fe6163904a5394483277698887&chksm=cec63bd1f9b1b2c79c9facca4715f9b1fenebchae directfarechad
[ Some common problems in the flask framework](http://mp.weixin.qq.com/s?__biz=Mzg3NTA0OTM1OQ==&mid=2247484258&idx=3&sn=96dc890f79e66b8d2445ee9b2d985bfd&chksm=cec63b886benebfd&chksm=cec63d
[ Team development considerations](http://mp.weixin.qq.com/s?__biz=Mzg3NTA0OTM1OQ==&mid=2247484267&idx=1&sn=a301cf5be9bc939a06a22294cd6c29c3&chksm=cec63b8bf9b1b29dced376f6c29c3&chksm=cec63b8bf9b1b29dced376e55e55edcchat
[ Talking about Password Encryption](http://mp.weixin.qq.com/s?__biz=Mzg3NTA0OTM1OQ==&mid=2247484267&idx=2&sn=539bf8c1791b710cd4d11a9bcd754d78&chksm=cec63b8bf9b1b29389df6c41075cenescene_bedirect4107255scene"
[ English words in the Django framework](http://mp.weixin.qq.com/s?__biz=Mzg3NTA0OTM1OQ==&mid=2247484300&idx=2&sn=b869826ea317bc96a2c0d2c192fd1602&chksm=cec63b6cf9benerescene=cec63b6cf9b15
[ Related operations of the database in Django](http://mp.weixin.qq.com/s?__biz=Mzg3NTA0OTM1OQ==&mid=2247484300&idx=1&sn=53d55448a048cbc247fbac415ea7484f&chksm=cec63b6cf9b1b27a4006f2367a2f66dceneb directchat66 of 558ceneb66fa2f14f
English words in the DRF frame
[ Key content review-DRF](http://mp.weixin.qq.com/s?__biz=Mzg3NTA0OTM1OQ==&mid=2247484561&idx=1&sn=ac59c777cbcd03bc077f19148cdd1164&chksm=cec63c71f9b1b5678c6b3e8d972c64ffbc672ebc72ef9b1b5678c6b3e8d32 #