In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you the solution to the slow installation of Composer, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Essential tool: ssr
When many people use composer to download packages, they encounter the problem that they are very slow and basically cannot be used. Most of the solutions on the Internet suggest changing Chinese images, but they are still very difficult to use.
1. Set composer to the original image address composer config-g repo.packagist composer https://packagist.phpcomposer.com
2. Configure ssr LAN proxy
Ssr > option Settings > check 'allow connections from LAN' under the local agent
Option Settings > Local Port > 1088
In order to ensure the success of the configuration, it is recommended to change the port number only for example to port 1088.
3. Configure the agent in the cmd command line
Set http_proxy= http://127.0.0.1:1088set https_proxy= http://127.0.0.1:1088
4. Cmd curl tests whether the configuration is successful.
Be careful not to use ping without curl to download and decompress it on the official website.
The proxy is not valid because ping does not use the tcp protocol.
Curl https://www.youtube.com
If a return is returned, the configuration is successful.
5. Now execute composer install and enjoy the speed.
The above is all the contents of this article entitled "the solution to the slow installation of Composer". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.