ubuntu 20.04服务升级常见错误

11 篇文章 0 订阅
2 篇文章 0 订阅


执行svn checkout 命令报错 An error occurred during SSL communication

#执行完  svn checkout url --username user  命名后报错An error occurred during SSL communication
#修改/usr/lib/ssl/openssl.cnf 文件
#开头添加 如下
openssl_conf = default_conf
#末尾添加
[ default_conf ]
ssl_conf = ssl_sect

[ssl_sect]
system_default = ssl_default_sect

[ssl_default_sect]
MinProtocol = TLSv1
CipherString = DEFAULT:@SECLEVEL=1

SecureCRT 远程连接openssh-server服务报错Key exchange failed


#会话选项中的秘钥交换已经全选还报错连接不了
#远程连接不上需要在在/etc/ssh/sshd_config中添加如下配置项,然后重启ssh
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1

ICE3.7版安装ubuntu

连接地址: https://doc.zeroc.com/ice/latest/release-notes/using-the-linux-binary-distributions
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv B6391CB2CFBA643D
sudo apt-add-repository -s "deb http://zeroc.com/download/Ice/3.7/ubuntu`lsb_release -rs` stable main"
sudo apt-get update
sudo apt-get install zeroc-ice-all-runtime zeroc-ice-all-dev

升级ice3.7版(old 3.6.5)报错 icegridnode: error: property `IceGrid.Registry.LMDB.Path’ is not set

#unknown property: `IceGrid.Registry.Data'
#error: property `IceGrid.Registry.LMDB.Path' is not set
需要将配置项IceGrid.Registry.Data换成 IceGrid.Registry.LMDB.Path

icebox --Ice.Config=file.icebox 报错could not lock file: `IceStorm/icedb.lock’

src/IceUtil/FileUtil.cpp:436: ::IceUtil::FileLockException:could not lock file: `IceStorm/icedb.lock'
 解决办法:在当前目录中创建IceStorm文件夹{mkdir IceStorm}

ubuntu gcc 版本升级 [不想升级系统版本只升级gcc版本]

#gcc 版本升级 ==========================================================================
#http://mirror.hust.edu.cn/gnu/gcc/   所有版本下载链接

tar -xzvf gcc-9.3.0.tar.gz
cd gcc-9.3.0
./contrib/download_prerequisites           #下载所需依赖包

mkdir build && cd build
../configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
make -j 32
make install 

#升级后必须要重新执行以下命令不然报错libstdc++.so.6 version:GLIBCXX.3.4.26
sudo sudo apt-get install software-properties-common && add-apt-repository ppa:ubuntu-toolchain-r/test && sudo apt update && sudo apt install gcc-9 && sudo apt-get install libstdc++6

icegridnode 3.7.5和3.6.5中注册服配置项更新

#IceGrid.Registry.Data=db/registry       ice 3.6.5 使用
#IceGrid.Registry.LMDB.Path=db/registry  ice 3.7 变更为IceGrid.Registry.LMDB.Path

mysql-server-8.0 远程授权方法不一样了

1. 安装mysql-server-8.0 : sudo apt-get install mysql-server-8.0  后更改配置文件/etc/mysql/mysql.conf.d/mysqld.cnf 中的bind-address=0.0.0.0
2. 切换root 用户后 mysql -u root -p      提示密码:enter建就进入了 默认没有密码
3. use mysql;
4. select host,user from user;
+-----------+------------------+
| host      | user             |
+-----------+------------------+
| localhost | debian-sys-maint |
| localhost | mysql.infoschema |
| localhost | mysql.session    |
| localhost | mysql.sys        |
| localhost | root             |
+-----------+------------------+
5.update user set host='%' where user='root';
6.flush privileges;
7.select host,user from user;
+-----------+------------------+
| host      | user             |
+-----------+------------------+
| %         | root             |
| localhost | debian-sys-maint |
| localhost | mysql.infoschema |
| localhost | mysql.session    |
| localhost | mysql.sys        |
+-----------+------------------+
8.允许所有ip访问数据库:GRANT ALL PRIVILEGES ON *.* TO 'root'@'%';     
9.为root设置一个密码:ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'your passwd';
10.flush privileges;
11.重启mysql服务即可

解决Host key verification failed & lost connection

ssh-keygen -R 你要访问的IP地址
继续执行失败命令 如scp ,ssh

nginx启动libssl.so.1.0.0 => not found以及libcrypto.so.1.0.0 => not found

ldd nginx 查看libssl.so.1.0.0  但是20.04中ssl是1.1版本不匹配又不想重新编译nginx 只能安装旧版libssl1.0

先sudo vi /etc/apt/sources.list把镜像源deb http://security.ubuntu.com/ubuntu bionic-security main  添加到sources.list的末尾

sudo apt update && apt-cache policy libssl1.0-dev
sudo apt-get install libssl1.0-dev

mysql8.0报错SELECT list is not in GROUP BY clause and contains nonaggregated column

mysql 配置文件中添加此配置 重启mysql
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值