Ubuntu
Mr_老冷
Done is better than perfect.
展开
-
PaddleHub ubuntu /usr/bin/hub命令不存在
ubuntu20新手入坑paddle,输入hub时提示apt安装,随安装,后发现装的是git的hub工具,不是PaddleHub,安装PaddleHub,卸载hub,发现hub命令已不可用/usr/bin/hub不存在,反复重装PaddleHub无法解决解决方法如下//更新linux本地数据库#updatedb//搜索hub文件#loacate /hub/home/xue/.local/bin/hub//创建软连接#sudo link /home/xue/.local/.原创 2020-12-27 20:16:38 · 1597 阅读 · 0 评论 -
ubuntu linux终端下查看电池状态
upower --dump | grep --color=never -E "state|to\ full|to\ empty|percentage"结果: state: chargingtime to full: 3.2 hourspercentage: 6%原创 2020-09-11 21:53:10 · 4856 阅读 · 2 评论 -
redis启动失败FATAL CONFIG FILE ERRO net.ipv4.tcp_fin_timeout Bad directive or wrong number of arguments
闲着无聊 给家用备机的ubuntu apt upgrade了一下,结果redis用不了了*** FATAL CONFIG FILE ERROR ***May 13 03:10:47 xue-backup redis-server[2925]: Reading the configuration file, at line 89May 13 03:10:47 xue-backup redis-server[2925]: >>> 'net.ipv4.tcp_fin_timeout=60原创 2020-05-13 03:26:49 · 828 阅读 · 0 评论 -
Linux 下高并发系统内核优化
转载自https://www.cnblogs.com/heping1314/p/11214638.html,仅作为留存使用1) 优化 Linux 文件打开最大数:vi /etc/security/limits.conf* soft nproc 65535* hard nproc 65535* soft nofile 65535* hard nofile 65535为了防...转载 2019-12-02 14:22:08 · 229 阅读 · 0 评论 -
ubuntu18安装redis后未开机启动Could not connect to Redis at 127.0.0.1:6379: Connection refused解决办法
阿里云ubuntu18安装redis后,apt install redis-serverredis-cli提示Could not connect to Redis at 127.0.0.1:6379: Connection refused最终发现是两方面导致:1. ubuntu18未将redis加入到systemctl中sudo systemctl enable redis-s...原创 2019-11-03 04:17:27 · 1068 阅读 · 0 评论 -
ubuntu18 usb网卡网速只有10M解决方法
手上有个win10平板,经折腾,刷成了ubuntu18,但自带的wifi经千辛万苦驱动起来后,内网ping值高达200+,遂购买usb网卡一张,ping值降到2以内,可以接受,但是网速只有10m,无法接受一.修改网卡参数1.1 查询网卡名ip addr或ifconfig均可xue@xue-EZpad6:~$ ip addr2: enx00e04c3603d8: <BROA...原创 2019-06-25 14:51:29 · 5153 阅读 · 0 评论 -
ubuntu安装mysql并开启远程接入设置密码
安装sudo apt install mysql-server开启远程接入vim /etc/mysql/mysql.conf.d/mysqld.cnf找到bind-address注销本地进入mysql输入下面三句sqluse mysql;update user set host = '%' where user = 'root';flush privileges;完成...原创 2018-07-13 10:19:10 · 222 阅读 · 0 评论 -
ubuntu16 安装redis并开启远程接入
安装sudo apt install redis-server开启远程接入sudo vim/etc/redis/redis.conf找到bind 127.0.0.1注销代码#bind 127.0.0.1保存退出sudo /etc/init.d/redis-server restart完成原创 2018-07-13 10:13:06 · 1112 阅读 · 0 评论 -
ubuntu16 关闭笔记本合盖子休眠
sudo vi /etc/systemd/logind.conf找到#HandleLidSwitch=suspend修改为HandleLidSwitch=ignore最后reboot完成原创 2018-07-13 09:58:35 · 3795 阅读 · 0 评论 -
pip install mysql-python报错 Failed building wheel for mysql-python
pip install mysql-python报错 Failed building wheel for mysql-python Running setup.py clean for mysql-pythonFailed to build mysql-pythonerror: command 'x86_64-linux-gnu-gcc' failed with exit status 1无法安装...原创 2018-04-06 06:55:28 · 3972 阅读 · 0 评论 -
Django 部署(nginx + uwsgi socket)
本文转载自https://code.ziqiangxuetang.com/django/django-nginx-deploy.html,仅作为个人留存备份本文主要讲解 nginx + uwsgi socket 的方式来部署 Django,比 Apache mod_wsgi 要复杂一些,但这是目前主流的方法。1. 运行开发服务器测试12cd zqxt # 进入项目 zqxt 目录python ma...转载 2018-04-06 14:05:17 · 2223 阅读 · 0 评论 -
阿里云ECS ubuntu16.04安装桌面图形界面
头次租阿里的ubuntu16.04服务器,想搞个图形界面玩玩,各种教程试了几个小时无果.不过收到一个文章启发,apt list到一个包ubuntu-desktop感觉是找到了关键,遂apt install ubuntu-desktop,安装完成,reboot,成功进入桌面,==================================================如若碰到不...原创 2018-03-30 05:45:04 · 17905 阅读 · 9 评论