ubuntu安装jdk Unable to locate package openjdk-8-jre ubuntu
发表于|更新于
|浏览量:
年轻人在科学的进程中要有冲刺力,当你老了,就会越来越胆小——杨振宁
需要首先执行:
1 | apt-get update |
然后再次安装:
1 | apt-get install openjdk-8-jre-headless |
弹出的提示按Y
即可成功安装
相关推荐
2024-04-24
docker快速使用nginx实现部署前端dist
才能不是天生的,可以任其自便的,而要钻研艺术,请教良师,才会成材。——歌德 mac、windows用客户端可视化工具修改镜像,要是网没问题可以不配置 在这里配置好上海交通大学的镜像 123{ "registry-mirrors": ["https://docker.mirrors.sjtug.sjtu.edu.cn"]} 如果是linux下,编辑/etc/docker/daemon.json,写入 123{ "registry-mirrors": ["https://docker.mirrors.sjtug.sjtu.edu.cn"]} 然后重启: 1sudo systemctl restart docker 然后在dist的同层级目录下面新建Dockerfile 123FROM nginxCOPY ./dist /usr/share/nginx/htmlEXPOSE 80 然后构建镜像 1234567891011121314151617181...
2022-11-29
Jpom部署时遇到的坑
跟女人讲话,要像你爱过她似的;跟男人讲话,要像你恨过他似的——王尔德 直接构建,构建失败 下载日志排查: 日志: 貌似拉取代码失败,可能是账密配置错误,检查一下重新构建 这次代码拉取成功,但是构建仍然失败,原因包括maven没安装(mvn命令不识别)、目录路径未识别 先安装maven 123456789# 安装sudo apt-get install maven# 查看版本root@iZuf6afyp0j8anyom0ro8zZ:~# mvn -vApache Maven 3.6.3Maven home: /usr/share/mavenJava version: 1.8.0_352, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jreDefault locale: en_US, platform encoding: UTF-8OS name: "linux", version: "5.15.0-43-generic", arch: &quo...
2020-12-12
docker实现mysql主从复制
有了钱,在这个世界上可以做很多事,就是无法用钱来买青春。 ——雷蒙德 1.安装主库 1.1 先准备mysql配置文件,my.cnf 123456789101112131415161718192021222324252627282930313233# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; version 2 of the License.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without ...
2021-01-07
往centos中添加字体
毁掉我们的不是我们所憎恨的东西,而恰恰是我们所热爱的东西,面对眼花缭乱的各种泛娱文化现象,重温和思考这种理性之声很有必要也很有价值。——尼尔 搬运,亲测有用,原文戳我 一,fc-list所属的rpm包1234[root@blog ~]$ whereis fc-listfc-list: /usr/bin/fc-list /usr/share/man/man1/fc-list.1.gz[root@blog ~]$ rpm -qf /usr/bin/fc-listfontconfig-2.13.1-3.el8.x86_64 如果提示找不到fc-list命令, 可以用dnf来安装: 1[root@blog ~]# dnf install fontconfig 说明:刘宏缔的架构森林是一个专注架构的博客,地址:https://www.cnblogs.com/architectforest 对应的源码可以访问这里获取: https://github.com/liuhongdi/ 说明:作者:刘宏缔 邮箱: 371125307@qq.com 二,fontconfig包命令使...
2021-09-10
nginx配置wss
草木蔓发,青山可望。一一王维 最近接入websocket,项目上线了,把nginx配置wss和https分享下 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849events { worker_connections 1024; ## Default: 1024}http{upstream websocket { server 域名:端口;}upstream ruben { server 域名:端口;}server { listen 80; server_name api.ruben.com; #需要将yourdomain.com替换成证书绑定的域名。 rewrite ^(.*)$ https://$host$1; #将所有HTTP请求通过rewrite指令重定向到HTTPS。 location / { p...
2023-07-16
docker-compose安装mysql并指定忽略表名大小写以及挂载配置文件
人要有出世的精神才可以做入世的事业。——朱光潜 之前写了docker-compose.yml安装mysql 但是发现其表名大小写敏感,也没指定配置文件,参考我之前写的: mysql大小写踩坑 mysql8卸载重新安装并配置lower_case_table_names=1 mysql having报错this is incompatible with sql_mode=only_full_group_by 于是重新编写docker-compose.yml 1234567891011121314151617# Use root/example as user/password credentialsversion: '3.1'services: db: image: mysql # NOTE: use of "mysql_native_password" is not recommended: https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-pr...
