Linux Debian提示setlocale: LC_ALL: cannot change locale (en_US.UTF-8)的解决办法

此处以 en_US.UTF-8 为例(排错其他语言包也同理):cat /etc/locale.gen | grep en_US.UTF-8 #查看是否有 en_US.UTF-8 内容 vim /etc/locale.gen 去掉 en_US.UTF-...

阅读全文



BT安装FFmpeg

BT的PHP扩展没有FFmpeg组件,所以是需要自己手动去安装的1、在终端输入:wget http://download.bt.cn/install/ext/ffmpeg.sh && sh ffmpeg.sh 2、安装完后可输入以下命令是...

阅读全文



宝塔面板python占用CPU高的问题解决方法

查看CPU高的进程ps -eo user,pid,pcpu,pmem,args --sort=-pcpu |head -n 10

阅读全文



MYSQL筛选英文/中文字段

MYSQL筛选中文字段select * from table where not name regexp '^[1-9A-Za-z]'; MYSQL筛选英文字段SELECT column_name FROM `table_name` WHERE colu...

阅读全文



MYSQL刪除重複數據

根據單列刪除且保留ID最小的一條delete from `pictures` where `内容` in(select `内容` from (select `内容` from `pictures` group by `内容` having count(`...

阅读全文