- WLS2(ubuntu22.04)使用windows2的代理上网
bglmmz
wls2
1.在wls2中,vim/etc/profile,添加如下配置后,source/etc/profile```exporthostip=127.0.0.1exportsocks_hostport=10800exporthttp_hostport=10800aliasproxy='exporthttps_proxy="https://${hostip}:${http_hostport}"exporth
- windows安装wsl2以及ubuntu
iceylia
Linuxubuntulinux运维网络
查看自己系统的版本必须运行Windows10版本2004及更高版本(内部版本19041及更高版本)或Windows11才能使用以下命令在设置,系统里面就能看到开启windows功能直接win+Q搜开启hyber-V、使用于Linux的Windows子系统、虚拟机平台三个功能,开启后需要重启,重启完成。升级为WLS2下载并安装WLS2WLS2下载地址powershell运行命令wsl--set-de
- 【操作系统xv6】学习记录3-Wsl2 Ubuntu18.04图形化界面
weixin_40293999
操作系统真象还原学习
不知道为啥,wls2和windows用vscodessh的方式连接识别,既然如此,那就装一个桌面版的,其实2年多前装过一次,后来pc机跑深度学习的任务,硬盘坏了~开干前再试一次ref:https://zhuanlan.zhihu.com/p/357038111核心步骤:ssh是通过windows转发的netshinterfaceportproxyaddv4tov4listenaddress=0.0
- wsl: 检测到 localhost 代理配置,但未镜像到 WSL。NAT 模式下的 WSL 不支持 localhost 代理。
NiceAsiv
bugwslbug
最近似乎是windowswsl2进行了更新,可以看WSL2的2.0更新彻底解决网络问题-知乎(zhihu.com)这篇文章。打开我许久没用的wsl,Ubuntu22wsl2突然给了一个提示wsl:检测到localhost代理配置,但未镜像到WSL。NAT模式下的WSL不支持localhost代理。一看到代理突然想起来,当时wls2未更新镜像网络功能的时候,我用到了wls2下的全局代理,可以看这篇文
- windows的max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
一心精通Java的靓仔程序员
Dockerdockerelasticsearch容器
场景windows使用WLS2作为docker的虚拟子系统,然后启动docker的elasticsearch的集群时出现maxvirtualmemoryareasvm.max_map_count[65530]istoolow,increasetoatleast[262144]对我无效解决方法参考:https://blog.csdn.net/Nicolege678/article/details/1
- 【 Docker Desktop stopped...】--------已经解决
m0_67402026
javadocker容器运维微服务hadoop
windows10系统,安装docker4.6.1版本,提示DockerDesktopstopped…,如图所示在Stackoverflow有此问题,底下给出的解决方案是卸载4.6.1版本,在docker官网下载4.4.4版本安装。Docker历史版本下载链接换成4.4.4版本后,出现如下问题,更新一下WLS2就好了WLS2更新包链接更新之后,完美解决,如下图所示。
- WLS2的安装
开局签到Python基础
笔记linuxubuntu
1.WSL2简介WSL2(WindowsSubsystemforLinux2)是微软为Windows操作系统开发的一款功能,它允许在Windows系统上运行Linux发行版.WSL2是WSL的升级版本,带来了更好的性能和兼容性,可以让开发者可以在Windows上享受Linux开发环境的便利.WSL2使用了一个完整的Linux内核,而不仅仅是对Linux系统调用的映射,这意味着可以直接在Window
- Win10使用wsl安装ubuntu22.04子系统,并升级到wsl2
修鞋匠
ubuntu
前面参考Win10系统安装Linux子系统教程(WSL2+Ubuntu20.04+Gnome桌面)Win11使用WSL2安装Ubuntu22.04并启用GUI应用_wsl2gui_zhangrelay的博客-CSDN博客sudoaptupdatesudoaptfull-upgrade升级到WLS2:wsl--set-versionUbuntu-22.042等待,windows程序里面就可以看到ub
- 在wls2中使用docker安装启动rabbitmq
shaYanL
1.启动docker:servicedockerstart2.下载rabbitmq:dockerpullrabbitmq:management3.根据下载的镜像创建和启动容器dockerrun-d--namerabbitmq-m-p5672:5672-p15672:15672-vpwd/data:/var/lib/rabbitmq--hostnamemyRabbit-eRABBITMQ_DEFAU
- win10 子系统(wsl2)运行laradock
南瓜方糖
没忍住,把家里的电脑更新到了预览版,然后体验了一下wls2,相对于wsl1,使用docker简直不要太简单。更新wsl2开个命令行:wsl--set-versionUbuntu2wsl--set-default-version2下载docker[wsl2版docker下载](https://docs.docker.com/docker-for-windows/wsl-tech-preview/配置
- WSL2安装历程
rexhao_wmh
人工智能线性回归算法
WLS2安装1、系统检查安装WSL2必须运行Windows10版本2004及更高版本(内部版本19041及更高版本)或Windows11。查看Windows版本及内部版本号,选择Win+R,然后键入winver。2、家庭版升级企业版下载HEU_KMS_Activator激活工具,修改系统版本。123云盘解压密码:1233、添加Windows功能安装WSL2需要启用windows功能中的虚拟机平台和
- 设置Windows主机的浏览器为wls2的默认浏览器
2301_76725413
windows
1.准备工作wsl是可以使用Windows主机上安装的exe程序,出于安全考虑,默认情况下改功能是无法使用。要使用的话,终端需要以管理员权限启动。我这里以WindowsTerminal为例,介绍如何默认使用管理员权限打开终端,具体操作如下图所示:2.操作wsl使用Windows主机的浏览器,其实就是在wsl中创建对应程序的软链接。我这里是把软链接放在了/usr/bin目录下,具体操作如下:cd/u
- qemu+buildroot+linux arm64虚拟化-宿主系统wsl2
Yengi
OS-虚拟化linuxgitgithub
文章目录1.qemu2.buildroot配置编译3.linuxkernel下载交叉编译工具链linuxkernel5.16配置内核config_kernel.shbuild_kernel.sh4.启动虚拟机start_qemu.sh参数解释运行环境:wls2、qemu8.2、buildroot、linuxkernel1.qemuhttps://download.qemu.org/参考资料:htt
- 在Windows上安装Redis教程,超简单!!!
Wang_JR1229
redis数据库缓存
文章目录1.Redis概念1.1什么是Redis?1.2Redis在前后端分离中的作用2.在Windows上安装Redis2.1安装WLS2(适用于Linux的Windows子系统)2.2安装Redis2.3运行Redis1.Redis概念1.1什么是Redis?◼Redis是一个高性能的开源内存数据结构存储系统,通常被用作数据库、缓存和消息队列的中间件。它支持多种数据结构,包括字符串、哈希、列表
- 【DBpedia Spotlight】知识图谱实体链接/抽取文本实体
来一碗锅巴洋芋
学术DBpedia实体抽取NEL命名实体链接Spotlight1024程序员节
修改论文模型时需要对DBpedia进行实体链接,官方的DBpediaSpotlight就非常好用,特此记录。1Docker由于DBpediaSpotlight需要部署到服务器中,官方Github使用的是Docker,这里我们需要先下载。(注意不支持MacBookM1)一直点默认安装即可,不过安装完成后可能碰到WLS2不一致的问题,官方也给出了解决方法。按照里面说的去下载Ubuntu就行。在成功安装
- 安装Docker踩的坑
visvim.zuo
docker
docker下载地址运行DockerDesktopinstaller.exe期间将会安装wls2,安装完成重启电脑运行DockerDesktop,出现DockerDesktopisshuttingdown.尝试1:windows功能→启用或关闭windows功能,勾选Hype-V、容器→重启尝试2:删除文件C:\Users\xxxx\AppData\Roaming\Docker\locked-di
- windows系统利用docker搭建linux深度学习环境总结
白三点
深度学习环境配置及错误总结linuxwindowsdocker
分为几步:1.安装docker2.创建linux底层容器3.容器内安装anaconda4.pycharm配置ssh服务器安装docker1.开启windows虚拟功能进入如下:控制面板=》程序=》启用或关闭windows功能。勾选Hyper-V,并电脑重启。2.安装docker进入官网下载安装包,按照提示安装即可。但是装完打开后我出现了WLS2的错误。这个是因为电脑wsl2较老或没有,解决办法就是
- Windows11 + CLion + WSL2开发ROS
VellBibi
前言我的WSL2是ubuntu18.04,安装好了ROS,WSL2里虽然可以直接安装CLion,也有图形化界面,但是由于没有中文输入法,以及windows创建的文件在WLS2里是root创建的,默认也没有写入权限,在WSL2的CLion里去写代码非常的麻烦,所以还是想在Windows下写代码,在WSL2里运行创建catkin_ws项目结构在WSL2下命令行创建#创建目录mkdir-p~/catki
- Windows WSL
windowswsl2
安装问题WslRegisterDistributionfailedwitherror:0x80370102Error:0x80370102???????????????????可能是wls设置的是wls2只需要在powershell中将wsl--set-default-version1#默认安装WSL1
- docker for windows 下开发Hyperf
riyihu
1.安装dockerforwindows(安装之前查看windows版本是否支持)下一步下一步的安装2.安装过程中会提示wls,配置wls2安装成功之后桌面有小鲸鱼的图标启动docker可能启动失败,根据提示启动win对应服务配置(有可能需要进入bios设置允许虚拟机之类)4.安装成功之后打开powershell输入dockerversion显示下图表示启动成功20210427105610.png
- win10下使用wls2和vscode配置超级舒服的开发环境
小奋
date:2020-11-29update:2020-11-29weather:多云这两天升级了下电脑,重新分了区,作为一个重度磁盘洁癖,把各个盘的任务安排的明明白白。在配置开发环境的时候犯了难。以往会在磁盘上新建一个workspace作为开发目录,全局安装node进行开发。这样很方便,终端打开就是一顿唆。但是node版本迭代很快,windows下的nvm也不太好用。作为一个磁盘洁癖,系统环境变量
- Docker win10 wls2安装和新版docker安装
MicoCube
为windows安装linux子系统Linux的Windows子系统在安装过程中有两个不同的版本可供选择。WSL2具有更好的整体性能,我们建议使用它。如果您的系统不支持WSL2,或者您有需要跨系统文件存储的特定情况,则可能需要使用WSL1。阅读WSL2和WSL1差异。步骤1-为Linux启用Windows子系统在Windows上安装任何Linux发行版之前,必须首先启用"Linux的Windows
- win10利用WSL2安装windows版kubernetes集群
运维Enter
kubernetes
前言Kubernetes成为事实上的云原生平台,用于在分布式环境中运行容器化服务和应用程序。尽管可以在在云环境(公有云,私有云或混合云)或裸机环境中部署Kubernetes,但有时仍然需要在本地部署和运行Kubernetes进行开发测试。Kubernetes最初被设计为在Linux环境中部署和使用。但是,大量用户是使用WindowsOS作为其日常驱动程序,本文探讨利用windows10的WLS2功
- win10使用WSL 2运行Docker Desktop,运行文件从C盘迁移到其他目录
xhznl
前言前几天重装系统,把系统升到了Windows102004,然后在安装DockerDesktop(2.3.0.3版本)时发现跟以前不太一样了。现在DockerDesktop默认使用WLS2来运行,而不是以前的Hyper-V。WLSWLS:适用于Linux的Windows子系统。什么是适用于Linux的Windows子系统?适用于Linux的Windows子系统可让开发人员按原样运行GNU/Linu
- 设计模式介绍
tntxia
设计模式
设计模式来源于土木工程师 克里斯托弗 亚历山大(http://en.wikipedia.org/wiki/Christopher_Alexander)的早期作品。他经常发表一些作品,内容是总结他在解决设计问题方面的经验,以及这些知识与城市和建筑模式之间有何关联。有一天,亚历山大突然发现,重复使用这些模式可以让某些设计构造取得我们期望的最佳效果。
亚历山大与萨拉-石川佳纯和穆雷 西乐弗斯坦合作
- android高级组件使用(一)
百合不是茶
androidRatingBarSpinner
1、自动完成文本框(AutoCompleteTextView)
AutoCompleteTextView从EditText派生出来,实际上也是一个文本编辑框,但它比普通编辑框多一个功能:当用户输入一个字符后,自动完成文本框会显示一个下拉菜单,供用户从中选择,当用户选择某个菜单项之后,AutoCompleteTextView按用户选择自动填写该文本框。
使用AutoCompleteTex
- [网络与通讯]路由器市场大有潜力可挖掘
comsci
网络
如果国内的电子厂商和计算机设备厂商觉得手机市场已经有点饱和了,那么可以考虑一下交换机和路由器市场的进入问题.....
这方面的技术和知识,目前处在一个开放型的状态,有利于各类小型电子企业进入
&nbs
- 自写简单Redis内存统计shell
商人shang
Linux shell统计Redis内存
#!/bin/bash
address="192.168.150.128:6666,192.168.150.128:6666"
hosts=(${address//,/ })
sfile="staticts.log"
for hostitem in ${hosts[@]}
do
ipport=(${hostitem
- 单例模式(饿汉 vs懒汉)
oloz
单例模式
package 单例模式;
/*
* 应用场景:保证在整个应用之中某个对象的实例只有一个
* 单例模式种的《 懒汉模式》
* */
public class Singleton {
//01 将构造方法私有化,外界就无法用new Singleton()的方式获得实例
private Singleton(){};
//02 申明类得唯一实例
priva
- springMvc json支持
杨白白
json springmvc
1.Spring mvc处理json需要使用jackson的类库,因此需要先引入jackson包
2在spring mvc中解析输入为json格式的数据:使用@RequestBody来设置输入
@RequestMapping("helloJson")
public @ResponseBody
JsonTest helloJson() {
- android播放,掃描添加本地音頻文件
小桔子
最近幾乎沒有什麽事情,繼續鼓搗我的小東西。想在項目中加入一個簡易的音樂播放器功能,就像華為p6桌面上那麼大小的音樂播放器。用過天天動聽或者QQ音樂播放器的人都知道,可已通過本地掃描添加歌曲。不知道他們是怎麼實現的,我覺得應該掃描設備上的所有文件,過濾出音頻文件,每個文件實例化為一個實體,記錄文件名、路徑、歌手、類型、大小等信息。具體算法思想,
- oracle常用命令
aichenglong
oracledba常用命令
1 创建临时表空间
create temporary tablespace user_temp
tempfile 'D:\oracle\oradata\Oracle9i\user_temp.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
extent management local
- 25个Eclipse插件
AILIKES
eclipse插件
提高代码质量的插件1. FindBugsFindBugs可以帮你找到Java代码中的bug,它使用Lesser GNU Public License的自由软件许可。2. CheckstyleCheckstyle插件可以集成到Eclipse IDE中去,能确保Java代码遵循标准代码样式。3. ECLemmaECLemma是一款拥有Eclipse Public License许可的免费工具,它提供了
- Spring MVC拦截器+注解方式实现防止表单重复提交
baalwolf
spring mvc
原理:在新建页面中Session保存token随机码,当保存时验证,通过后删除,当再次点击保存时由于服务器端的Session中已经不存在了,所有无法验证通过。
1.新建注解:
? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
- 《Javascript高级程序设计(第3版)》闭包理解
bijian1013
JavaScript
“闭包是指有权访问另一个函数作用域中的变量的函数。”--《Javascript高级程序设计(第3版)》
看以下代码:
<script type="text/javascript">
function outer() {
var i = 10;
return f
- AngularJS Module类的方法
bijian1013
JavaScriptAngularJSModule
AngularJS中的Module类负责定义应用如何启动,它还可以通过声明的方式定义应用中的各个片段。我们来看看它是如何实现这些功能的。
一.Main方法在哪里
如果你是从Java或者Python编程语言转过来的,那么你可能很想知道AngularJS里面的main方法在哪里?这个把所
- [Maven学习笔记七]Maven插件和目标
bit1129
maven插件
插件(plugin)和目标(goal)
Maven,就其本质而言,是一个插件执行框架,Maven的每个目标的执行逻辑都是由插件来完成的,一个插件可以有1个或者几个目标,比如maven-compiler-plugin插件包含compile和testCompile,即maven-compiler-plugin提供了源代码编译和测试源代码编译的两个目标
使用插件和目标使得我们可以干预
- 【Hadoop八】Yarn的资源调度策略
bit1129
hadoop
1. Hadoop的三种调度策略
Hadoop提供了3中作业调用的策略,
FIFO Scheduler
Fair Scheduler
Capacity Scheduler
以上三种调度算法,在Hadoop MR1中就引入了,在Yarn中对它们进行了改进和完善.Fair和Capacity Scheduler用于多用户共享的资源调度
2. 多用户资源共享的调度
- Nginx使用Linux内存加速静态文件访问
ronin47
Nginx是一个非常出色的静态资源web服务器。如果你嫌它还不够快,可以把放在磁盘中的文件,映射到内存中,减少高并发下的磁盘IO。
先做几个假设。nginx.conf中所配置站点的路径是/home/wwwroot/res,站点所对应文件原始存储路径:/opt/web/res
shell脚本非常简单,思路就是拷贝资源文件到内存中,然后在把网站的静态文件链接指向到内存中即可。具体如下:
- 关于Unity3D中的Shader的知识
brotherlamp
unityunity资料unity教程unity视频unity自学
首先先解释下Unity3D的Shader,Unity里面的Shaders是使用一种叫ShaderLab的语言编写的,它同微软的FX文件或者NVIDIA的CgFX有些类似。传统意义上的vertex shader和pixel shader还是使用标准的Cg/HLSL 编程语言编写的。因此Unity文档里面的Shader,都是指用ShaderLab编写的代码,然后我们来看下Unity3D自带的60多个S
- CopyOnWriteArrayList vs ArrayList
bylijinnan
java
package com.ljn.base;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
/**
* 总述:
* 1.ArrayListi不是线程安全的,CopyO
- 内存中栈和堆的区别
chicony
内存
1、内存分配方面:
堆:一般由程序员分配释放, 若程序员不释放,程序结束时可能由OS回收 。注意它与数据结构中的堆是两回事,分配方式是类似于链表。可能用到的关键字如下:new、malloc、delete、free等等。
栈:由编译器(Compiler)自动分配释放,存放函数的参数值,局部变量的值等。其操作方式类似于数据结构中
- 回答一位网友对Scala的提问
chenchao051
scalamap
本来准备在私信里直接回复了,但是发现不太方便,就简要回答在这里。 问题 写道 对于scala的简洁十分佩服,但又觉得比较晦涩,例如一例,Map("a" -> List(11,111)).flatMap(_._2),可否说下最后那个函数做了什么,真正在开发的时候也会如此简洁?谢谢
先回答一点,在实际使用中,Scala毫无疑问就是这么简单。
- mysql 取每组前几条记录
daizj
mysql分组最大值最小值每组三条记录
一、对分组的记录取前N条记录:例如:取每组的前3条最大的记录 1.用子查询: SELECT * FROM tableName a WHERE 3> (SELECT COUNT(*) FROM tableName b WHERE b.id=a.id AND b.cnt>a. cnt) ORDER BY a.id,a.account DE
- HTTP深入浅出 http请求
dcj3sjt126com
http
HTTP(HyperText Transfer Protocol)是一套计算机通过网络进行通信的规则。计算机专家设计出HTTP,使HTTP客户(如Web浏览器)能够从HTTP服务器(Web服务器)请求信息和服务,HTTP目前协议的版本是1.1.HTTP是一种无状态的协议,无状态是指Web浏览器和Web服务器之间不需要建立持久的连接,这意味着当一个客户端向服务器端发出请求,然后We
- 判断MySQL记录是否存在方法比较
dcj3sjt126com
mysql
把数据写入到数据库的时,常常会碰到先要检测要插入的记录是否存在,然后决定是否要写入。
我这里总结了判断记录是否存在的常用方法:
sql语句: select count ( * ) from tablename;
然后读取count(*)的值判断记录是否存在。对于这种方法性能上有些浪费,我们只是想判断记录记录是否存在,没有必要全部都查出来。
- 对HTML XML的一点认识
e200702084
htmlxml
感谢http://www.w3school.com.cn提供的资料
HTML 文档中的每个成分都是一个节点。
节点
根据 DOM,HTML 文档中的每个成分都是一个节点。
DOM 是这样规定的:
整个文档是一个文档节点
每个 HTML 标签是一个元素节点
包含在 HTML 元素中的文本是文本节点
每一个 HTML 属性是一个属性节点
注释属于注释节点
Node 层次
- jquery分页插件
genaiwei
jqueryWeb前端分页插件
//jquery页码控件// 创建一个闭包 (function($) { // 插件的定义 $.fn.pageTool = function(options) { var totalPa
- Mybatis与Ibatis对照入门于学习
Josh_Persistence
mybatisibatis区别联系
一、为什么使用IBatis/Mybatis
对于从事 Java EE 的开发人员来说,iBatis 是一个再熟悉不过的持久层框架了,在 Hibernate、JPA 这样的一站式对象 / 关系映射(O/R Mapping)解决方案盛行之前,iBaits 基本是持久层框架的不二选择。即使在持久层框架层出不穷的今天,iBatis 凭借着易学易用、
- C中怎样合理决定使用那种整数类型?
秋风扫落叶
c数据类型
如果需要大数值(大于32767或小于32767), 使用long 型。 否则, 如果空间很重要 (如有大数组或很多结构), 使用 short 型。 除此之外, 就使用 int 型。 如果严格定义的溢出特征很重要而负值无关紧要, 或者你希望在操作二进制位和字节时避免符号扩展的问题, 请使用对应的无符号类型。 但是, 要注意在表达式中混用有符号和无符号值的情况。
&nbs
- maven问题
zhb8015
maven问题
问题1:
Eclipse 中 新建maven项目 无法添加src/main/java 问题
eclipse创建maevn web项目,在选择maven_archetype_web原型后,默认只有src/main/resources这个Source Floder。
按照maven目录结构,添加src/main/ja
- (二)androidpn-server tomcat版源码解析之--push消息处理
spjich
javaandrodipn推送
在 (一)androidpn-server tomcat版源码解析之--项目启动这篇中,已经描述了整个推送服务器的启动过程,并且把握到了消息的入口即XmppIoHandler这个类,今天我将继续往下分析下面的核心代码,主要分为3大块,链接创建,消息的发送,链接关闭。
先贴一段XmppIoHandler的部分代码
/**
* Invoked from an I/O proc
- 用js中的formData类型解决ajax提交表单时文件不能被serialize方法序列化的问题
中华好儿孙
JavaScriptAjaxWeb上传文件FormData
var formData = new FormData($("#inputFileForm")[0]);
$.ajax({
type:'post',
url:webRoot+"/electronicContractUrl/webapp/uploadfile",
data:formData,
async: false,
ca
- mybatis常用jdbcType数据类型
ysj5125094
mybatismapperjdbcType
MyBatis 通过包含的jdbcType
类型
BIT FLOAT CHAR