问题:mysql报错:Deadlock found when trying to get lock
解决:程序产生死锁了
方法:
给数据表增加索引
alter table recommend_anime add index anime_id (anime_id);
问题:mysql报错:Deadlock found when trying to get lock
解决:程序产生死锁了
方法:
给数据表增加索引
alter table recommend_anime add index anime_id (anime_id);
问题:如何将所有标题1变成标题2 标题2变成标题3?
解决:使用office的word进行处理,wps未找到此功能
方法:
1、鼠标移动到标题2,点右键,点击“全选”,选择全部标题2,点击标题3
2、鼠标移动到标题1,点右键,点击“全选”,选择全部标题1,点击标题2。
参考:
https://zhidao.baidu.com/question/272741299.html
简介:简单的模态框代码
HTML:
<!-- 弹窗 -->
<div class="backdrop"></div>
<div class="modal-box" id="folder_modal">
<div class="modal-content">
<div class="modal-header">
<label class="modal-title">移动到</label>
<i class="fr modal-close fa fa-close"></i>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="mt-button" id="submit_btn">确定</button>
<button type="button" class="mt-button-light" id="cancel_btn">取消</button>
</div>
</div>
</div>
问题:如何查看nginx请求时当前的$host, $proxy_host?
解决:使用return,方法有点笨,但能实现
方法:
location ^~ /ngxupld {
return 200 'page host: $host';
}
问题:ubuntu如何卸载python某个版本?
解决:使用--purge
方法:
1、完全卸载python3.4(软件及相关配置)
sudo apt-get remove --purge python3.4
2、完全卸载python3.4及其依赖软件(慎用!这里会删除python3.4及依赖python3.4的软件包,一般上面第一条命令已经够用)
sudo apt-get remove --auto-remove python3.4
sudo apt-get purge --auto-remove python3.4
3、清除python3.4及其依赖软件的安装包
sudo apt-get autoclean python3.4
参考:
https://www.cnblogs.com/husbandmen/p/7976623.html