pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
清华大学:
https://pypi.tuna.tsinghua.edu.cn/simple/
阿里云:
https://mirrors.aliyun.com/pypi/simple/
豆瓣:
https://pypi.douban.com/simple/
中科大:https://pypi.mirrors.ustc.edu.cn/simple/
pip config get global.index-url
npm config get registry
//切换淘宝源
npm config set registry
https://registry.npm.taobao.org
//切换腾讯源
npm config set registry http://mirrors.cloud.tencent.com/npm/
//切换阿里云源
npm config set registry https://registry.npmmirror.com
python -m venv venv
call .\venv\Scripts\activate
1.安装pip3 install virtualenv
2.创建目录:mkdir venv
3.激活虚拟环境:source venv/bin/activate
sudo apt-get autoremove
sudo apt-get autoclean
autoremove 命令将自动删除不再需要的依赖项,autoclean 命令将清理下载的软件包缓存。
#catalog_10#redis命令
/etc/init.d/redis-server start #启动
/etc/init.d/redis-server stop #关闭
/etc/init.d/redis-server restart #重启
最近在使用Fastadmin时,突然遇到一个奇怪的问题,程序抛出“hash_hmac():Unknownhashingalgorithm”异常。之前都好好的,怎么突然就遇到这么个问题呢?查看了下Driver.php这个源码,发现在使用h...
在使用uniapp开发app和小程序时,经常会用到打开app/小程序时,根据登录状态判断是显示首页还是跳转登录页的功能。此功能在app.vue的onlaunch方法中定义,方法如下:onLaunch: function() {const...
这个时候可以用到live方法
不说废话,直接上解决办法。写mysqldump-uusername-ppasswordDatabaseName|gzip /home/backup/DatabaseName_$(date+%Y%m%d_%H%M%S).sql.gz,保存...
在php代码中,遇到复杂的sql语句,需要拼装sql语句,如:$sql='id 10;'$sql=' and (status in(1,2,3,4,5) andid not in (select id from aa...
videojs是一款非常不错的htmlvideo播放器插件,很多同学经常在群里问我,说丁老师这个videojs怎么设置为宽度或者高度自适应呢,不想把video的width和height写死,有没有什么办法呢。丁老师经过研究发现啊,video...
在使用jetbrains的ide开发代码时,经常性的会输入单引号或双引号,ide默认有对于引号的自动完成功能,即输入一个引号,自动显示两个,这一点其实做的很不智能,因为在使用时经常会有显示出3个的情况,那么怎么关闭这个功能呢?file-se...
在使用idea旗下的产品,如intellijidea,phpstorm,webstorm时,有的时候编辑前端页面JS,在换行时经常会自动出现个}大括号,这一点程序不是很智能,其实后边都已经有括号了。比如下图这样:那么如何解决这个问题呢?丁老...