Linux
Mr_老冷
Done is better than perfect.
展开
-
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 评论 -
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 · 4862 阅读 · 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 · 831 阅读 · 0 评论 -
服务器关机后supervisor意外报错supervisor.sock no such file/supervisor.sock refused connection/no such process
centos忘记续费关机了,supervisor托管的web服务器一直起不起来网上找了一堆教程和例子,发现都无法解决,即使修改到了/var/run下也不行,一直循环报错supervisor.sock no such filesupervisor.sock refused connectionno such process检查了conf文件也没发现哪里有写错折腾一个小时,无意...原创 2020-03-29 22:33:29 · 223 阅读 · 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 · 230 阅读 · 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 评论 -
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 评论 -
(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on
访问redis报错127.0.0.1:6379> spop test(error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Pl...原创 2018-11-04 00:13:36 · 350 阅读 · 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 · 5161 阅读 · 0 评论