![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ubuntu
momo_mo520
这个作者很懒,什么都没留下…
展开
-
sudo apt-get update 镜像连接不成功
报错Ign:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu bionic InReleaseIgn:2 https://pkg.jenkins.io/debian-stable binary/ InReleaseErr:3 https://pkg.jenkins.io/debian-stable binary/ Release Certificate verification failed: The certificate is NOT truste原创 2021-12-10 10:01:27 · 3130 阅读 · 2 评论 -
mac /ubuntu git命令补全
mac参考https://cloud.tencent.com/developer/article/15395651、安装bash-completionbrew install bash-completionUpdating Homebrew...^C==> Downloading https://ghcr.io/v2/homebrew/core/bash-completion/manifests/1.3_3#####################################.原创 2021-05-14 17:44:05 · 201 阅读 · 1 评论 -
mac 和ubuntu 设置控制台配色
搞了好多回,没回配置完,就忘了,这次一定要记下来首先我的mac 和ubuntu 终端都是bash因此在~/.bash_profile进行配置先看一下最终效果挡住的是项目名字和自己的用户名参考链接:https://zhuanlan.zhihu.com/p/133291342一个简单的入门vim .bash_profile添加export LS_OPTIONS='--color=auto' # 如果没有指定,则自动选择颜色export CLICOLO.原创 2021-05-14 17:02:17 · 382 阅读 · 0 评论 -
postgresql-server-dev-10 : Depends: libpq-dev (>= 10~~) but it is not going to be installed
在通过apt进行离线安装postgresql-server-dev-10的时候,报错sudo apt-get installpostgresql-server-dev-10libmysqlclient-devThe following packages have unmet dependencies:postgresql-server-dev-10 : Depends: libpq-dev (>= 10~~) but it is not going to be installed...原创 2021-01-19 21:44:17 · 1077 阅读 · 1 评论 -
oracle 使用sqlplus 登陆 报错 NOTICE: ORA-28000: the account is locked
问题描述:由于普通用户C##TEST登陆不上sqlplus后,返回安装oracle 的服务器,由于服务器非本人安装,也不太熟因此解锁,耗费了大量的时间,因此记录以下[oracle@i-bjh8bxaj bin]$ cat /home/oracle/.bash_profile# .bash_profile# Get the aliases and functionsif [ -f ~/.bashrc ]; then . ~/.bashrcfi# User specific enviro原创 2021-01-13 17:47:37 · 556 阅读 · 0 评论 -
ubuntu离线安装apt 可安装的软件方案
https://www.annhe.net/article-620.html之前搞不定感觉是因为这个目录的写法自己的教程之后有时间更新 deb file:/// software/原创 2021-01-09 15:26:05 · 280 阅读 · 0 评论 -
Linux下切换Python版本的几种方法 推荐3 采用update-alternatives 切换版本
Linux下切换Python版本的几种方法本篇博文面向Linux用户,在Ubuntu下测试通过0 为什么需要有两个版本的PythonPython2和Python3不兼容是每个接触过Python的开发者都知道的事,虽说Python3是未来,但是仍然有很多项目采用Python2开发。Linux的许多发行版本(如Ubuntu)都会自带Python2.7,但是当我们准备开发一个Python3项目的时候,我们该怎么办?那就把Python3也下咯。嗯,Linux下确实是可以两个一起装的,但是问题是你怎么转载 2021-01-09 15:24:09 · 1010 阅读 · 0 评论 -
java 路径查询 Ubuntu windows
windows echo %JAVA_HOME%Ubuntuecho $JAVA_HOME原创 2020-12-01 15:12:12 · 119 阅读 · 0 评论 -
shell脚本批量telnet ip 端口+Linux Shell脚本中获取本机ip地址方法
https://www.cnblogs.com/poloyy/p/12212868.html原创 2020-11-23 19:21:39 · 878 阅读 · 1 评论 -
hive利用mysql建立元数据库
https://www.cnblogs.com/thisyan/p/9609497.html基本正确,参考最多原创 2020-11-19 22:04:34 · 636 阅读 · 0 评论 -
[2]+ Exit 255 nohup bin/hiveserver2
后台命令没启动成功重新启动一下查看后台任务jobs查看当前终端启动的后台任务可以查看服务器所有后台 ps -aux| grep hiveserver2类似的原创 2020-11-19 20:24:05 · 869 阅读 · 0 评论 -
Python3安装opencv提示错误:Command “python setup.py egg_info“ failed with error code 1
按照提示更新pip,错误消失pip3 install --upgrade pip原创 2020-11-14 18:04:15 · 469 阅读 · 0 评论 -
linux vi 报错 E37: No write since last change (add ! to override)
用 vi 命令编辑文本文件,没有文件写入权限的时候会报这个错。:q :wq 怎么都不能退出。这时只需 ctrl+z 即可,或者在退出命令后加 ! 忽略提示 :q!原创 2020-07-17 19:35:11 · 9638 阅读 · 2 评论 -
linux 重启pgsql 失败,添加PGDATA环境变量
ubuntu@i-qo8hlriu:/opt/pgsql$ pg_ctl stoppg_ctl: no database directory specified and environment variable PGDATA unsetTry "pg_ctl --help" for more information.报错加入PGDATA环境变量ubuntu@i-qo8hlriu:/opt/pgsql$ vi ~/.bash_profileexport PGDATA=/opt/pgsql/da.原创 2020-05-20 15:42:32 · 2071 阅读 · 0 评论 -
设置Ubuntu mysql可以远程连接
启动:service mysqld start启动看看是否会报错,一般不会查看mysql运行的端口ps -ef| grep mysqld有端口显示一般就好了mysql -u root -p输密码这个都知道吧就可以看你自己的mysql常用语句:show databases:查看数据库,use xxx:使用xxx数据库;select * from xxx;查看该表的所有信息。...原创 2019-10-28 00:18:20 · 114 阅读 · 0 评论 -
ERROR 1129 (HY000): Host '183.143.00.00' is blocked because of many connection errors; unblock with
远程连接数据库报错ERROR 1129 (HY000): Host '183.143.00.00' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'当连接错误次数过多时,mysql会禁止客户机连接,这个时候有两个办法解决:1.使用mysqladmin flush-hos...原创 2019-10-28 00:15:29 · 572 阅读 · 0 评论 -
ubuntu下登陆 mysql 时 出现ERROR 2002(HY000):can't connect to local mysql server through socket ‘/var/lib
今天登陆mysql -u -p 时 ,突然出现了如上错误 , 原因 应该是因为有多个mysql进程在运行 发生了冲突解决方法:1、首先命令 /etc/init.d/mysql status 查看mysql 的运行状态:发现是绿色的,mysql在运行2、接下来,使用命令 ps aux | grep mysql 查看 mysql的进程:查看是否有多个mysql进程...原创 2019-10-27 21:37:42 · 1040 阅读 · 0 评论 -
Ubuntu 下修改mysqlroot密码
1、安全模式登入MySQL a、停止mysql进程sudo /etc/init.d/mysql stopb、安全模式进入/usr/bin/mysqld_safe --skip-grant-tables --skip-networking &c、进入失败,创建 mysqld文件 sudo mkdir -p /var/run/mysqld...原创 2019-10-27 17:03:34 · 111 阅读 · 0 评论