一、基础配置1、配置主机名[root@ecs-cd34~]hostnamectlset-hostnamenode1[root@ecs-cd34~]execbash#主机名生效2、配置hosts解析(根据自己的服务器id修改)cat>>/etc/hosts/etc/docker/daemon.json<
docker网站
水彩橘子
docker运维linux
1、安装docker环境curl-sSLhttps://get.daocloud.io/docker|shvi/etc/docker/daemon.json添加如下{"insecure-registries":["harbor.wtown.com"],"registry-mirrors":["http://hub-mirror.c.163.com"]}启动systemctldaemon-reloa
rh124第九章知识点问答----白熊的Linux学习之旅12
白白白白熊爱打APEX
linux学习服务器
第9章控制服务和守护进程1.守护进程(Daemon)是什么?列举一些常见的守护进程。答:守护进程是执行各种任务的后台等待或运行的进程。一般情况下,守护进程在系统引导时自动启动并持续运行至关机但可手动停止。且守护进程多以d结尾。常见的守护进程有Systemd2.怎么理解systemd.unit?列举一些常用的单元类型。答:systemd.unit是一个抽象的概念,用于定义一类对象,这类对象是系统知道
【Linux】孤儿进程(第十二篇)
爱编程的小猴
Linuxlinuxmicrosoft运维
目录孤儿进程定义产生原因处理机制特性与影响示例守护进程(daemon)定义:特点:与孤儿进程的区别:孤儿进程孤儿进程是操作系统中的一个概念,主要出现在类UNIX操作系统中。以下是关于孤儿进程的详细解释:定义孤儿进程指的是在其父进程执行完成或被终止后,仍继续运行的一类进程。这些进程由于失去了父进程的监控和管理,因此被称为“孤儿”。产生原因在类UNIX操作系统中,子进程是通过父进程创建的。当一个父进程
java守护线程的使用场景_详解Java线程-守护线程与用户线程
桦雪Monica
java守护线程的使用场景
干java开发这么多年,之前一直没留意java进程还区分守护进程和用户进程。守护进程这个概念最早还是在linux系统中接触的,直到近期使用java开发心跳检测功能时,使用Timer时才发现原来java也有守护线程的概念。1.Java线程1.1守护线程与用户线程Java线程分为守护线程(DaemonThread)和用户线程(UserThread)两类.通常情况下,我们使用Thread创建的线程在默认
Linux下基于TCP协议的简易服务器实现(C语言)
代码能跑就可以
服务器linuxtcp/ipc语言开发语言
最近在学习Linux应用层开发,学习了基于TCP的简易服务器的搭建,在这里和大家分享分享。关键词:守护进程,TCP,进程和线程,系统调用,Makefile教程:嵌入式Linux应用层开发教程_bilibili目录知识准备服务端(tcp_server)客户端(tcp_client)守护进程(daemon_test)Makefile功能介绍知识准备守护进程:是一种在后台运行的进程,我们常听到的daem
【云原生】Docker入门 -- 阿里云服务器Linux环境下安装Docker
m0_61067876
服务器云原生docker
输入y确认即可!️配置阿里云加速镜像打开阿里云控制台,弹性计算-->容器与镜像服务打开之后选择镜像工具-->镜像加速器,复制内容即可进入Linux服务器根据步骤配置镜像加速器#创建docker文件夹sudomkdir-p/etc/docker#打开文件并配置内容sudotee/etc/docker/daemon.json<<-'EOF'{"registry-mirrors":["https://p
Kubernetes 1.20 上将容器从 Docker Engine 改为 Containerd
运维小弟| srebro.cn
dockeropeneulerk8skubernetesdocker容器
官网参考:https://kubernetes.io/zh-cn/docs/tasks/administer-cluster/migrating-from-dockershim/change-runtime-containerd/1、配置先决条件【如果k8s环境初始化的时候如果做过了,直接忽略】$cat替换为你所要下线的节点的名称kubectldrain--ignore-daemonsets3、停
Docker拉取镜像-2024-07-有效
木卫二号Coding
docker容器运维
Docker拉取镜像-有效配置加速地址首先,创建Docker配置目录:sudomkdir-p/etc/docker然后,编辑daemon.json文件,添加以下加速地址:sudotee/etc/docker/daemon.json<<-'EOF'{"registry-mirrors":["https://do.nark.eu.org","https://dc.j8.work","https://d
docker: Error response from daemon: could not select device driver with capabilities: [[gpu]]问题记录解决
爱科技Ai
docker容器运维
具体参考:docker:Errorresponsefromdaemon:couldnotselectdevicedriverwithcapabilities:[[gpu]]问题记录解决_奶茶不加冰的博客-CSDN博客docker:Errorresponsefromdaemon:couldnotselectdevicedriver““withcapabilities:[[gpu]]问题解决_一个菜鸟
使用Dockerfile创建应用镜像及私有仓库
琉璃一梦
云计算学习eureka云原生docker服务器linux运维
目录1.Dockerfile介绍2.Dockerfile应用1.创建目录2.跳转目录3.编辑启动脚本4.编辑index.html文件5.编辑Dockerfile6.创建镜像7.查看镜像8.创建容器测试9.挂载其他项目测试3.私有仓库1.安装仓库镜像---仓库注册器2.创建目录3.启动容器、映射端口、挂载目录4.访问仓库5.配置pull和push,修改daemon.json文件6.重启docker服
maxwell读取mysql binlog到kafka
gengjianchun
我的笔记mysqlkafka数据库
下载地址https://maxwells-daemon.io/解压压缩包tar-zxvfmaxwell-1.29.0.tar.gz-C/opt/module/初始化maxwell元数据库在mysql中为maxwell创建一个数据库复制config.properties.example文件cpconfig.properties.exampleconfig.properties修改config.pro
ubuntu22.04 安装clamav并使用定时任务扫描
大新新大浩浩
等保建设记录安全
文章目录前言一、安装服务二、配置定时任务前言记录一下ubuntu22.04安装clamav。操作系统版本:Ubuntu20.04.6LTS(GNU/Linux5.15.0-118-genericx86_64)clamav版本:0.103.11+dfsg-0ubuntu0.20.04.1一、安装服务sudoaptinstallclamavclamav-daemon-y#修改freshclam配置,将
【计算机面试整理1】学习中可能没学到的知识点
ICE·BING
学习pythonjava
守护线程是什么?Java提供了两种线程:守护线程与用户线程。守护线程是在程序运行过程中在后台进行的线程,它的任务是为其他线程提供服务和支持。当所有的非守护线程结束运行时,虚拟机会自动退出。与之相对的是用户线程,用户线程的结束并不会导致程序的终止。在Java中,通过设置线程的setDaemon(true)方法将线程设置为守护线程。守护线程通常用来执行一些辅助性的任务,比如垃圾回收、内存管理等。pyt
jquery实现的jsonp掉java后台
知了ing
javajsonpjquery
什么是JSONP?
先说说JSONP是怎么产生的:
其实网上关于JSONP的讲解有很多,但却千篇一律,而且云里雾里,对于很多刚接触的人来讲理解起来有些困难,小可不才,试着用自己的方式来阐释一下这个问题,看看是否有帮助。
1、一个众所周知的问题,Ajax直接请求普通文件存在跨域无权限访问的问题,甭管你是静态页面、动态网页、web服务、WCF,只要是跨域请求,一律不准;
2、
Struts2学习笔记
caoyong
struts2
SSH : Spring + Struts2 + Hibernate
三层架构(表示层,业务逻辑层,数据访问层) MVC模式 (Model View Controller)
分层原则:单向依赖,接口耦合
1、Struts2 = Struts + Webwork
2、搭建struts2开发环境
a>、到www.apac
SpringMVC学习之后台往前台传值方法
满城风雨近重阳
springMVC
springMVC控制器往前台传值的方法有以下几种:
1.ModelAndView
通过往ModelAndView中存放viewName:目标地址和attribute参数来实现传参:
ModelAndView mv=new ModelAndView();
mv.setViewName="success
WebService存在的必要性?
一炮送你回车库
webservice
做Java的经常在选择Webservice框架上徘徊很久,Axis Xfire Axis2 CXF ,他们只有一个功能,发布HTTP服务然后用XML做数据传输。
是的,他们就做了两个功能,发布一个http服务让客户端或者浏览器连接,接收xml参数并发送xml结果。
当在不同的平台间传输数据时,就需要一个都能解析的数据格式。
但是为什么要使用xml呢?不能使json或者其他通用数据
js年份下拉框
3213213333332132
java web ee
<div id="divValue">test...</div>测试
//年份
<select id="year"></select>
<script type="text/javascript">
window.onload =
简单链式调用的实现技术
归来朝歌
方法调用链式反应编程思想
在编程中,我们可以经常遇到这样一种场景:一个实例不断调用它自身的方法,像一条链条一样进行调用
这样的调用你可能在Ajax中,在页面中添加标签:
$("<p>").append($("<span>").text(list[i].name)).appendTo("#result");
也可能在HQ
JAVA调用.net 发布的webservice 接口
darkranger
webservice
/**
* @Title: callInvoke
* @Description: TODO(调用接口公共方法)
* @param @param url 地址
* @param @param method 方法
* @param @param pama 参数
* @param @return
* @param @throws BusinessException
Javascript模糊查找 | 第一章 循环不能不重视。
aijuans
Way
最近受我的朋友委托用js+HTML做一个像手册一样的程序,里面要有可展开的大纲,模糊查找等功能。我这个人说实在的懒,本来是不愿意的,但想起了父亲以前教我要给朋友搞好关系,再加上这也可以巩固自己的js技术,于是就开始开发这个程序,没想到却出了点小问题,我做的查找只能绝对查找。具体的js代码如下:
function search(){
var arr=new Array("my
狼和羊,该怎么抉择
atongyeye
工作
狼和羊,该怎么抉择
在做一个链家的小项目,只有我和另外一个同事两个人负责,各负责一部分接口,我的接口写完,并全部测联调试通过。所以工作就剩下一下细枝末节的,工作就轻松很多。每天会帮另一个同事测试一些功能点,协助他完成一些业务型不强的工作。
今天早上到公司没多久,领导就在QQ上给我发信息,让我多协助同事测试,让我积极主动些,有点责任心等等,我听了这话,心里面立马凉半截,首先一个领导轻易说
读取android系统的联系人拨号
百合不是茶
androidsqlite数据库内容提供者系统服务的使用
联系人的姓名和号码是保存在不同的表中,不要一下子把号码查询来,我开始就是把姓名和电话同时查询出来的,导致系统非常的慢
关键代码:
1, 使用javabean操作存储读取到的数据
package com.example.bean;
/**
*
* @author Admini
ORACLE自定义异常
bijian1013
数据库自定义异常
实例:
CREATE OR REPLACE PROCEDURE test_Exception
(
ParameterA IN varchar2,
ParameterB IN varchar2,
ErrorCode OUT varchar2 --返回值,错误编码
)
AS
/*以下是一些变量的定义*/
V1 NUMBER;
V2 nvarc
查看端号使用情况
征客丶
windows
一、查看端口
在windows命令行窗口下执行:
>netstat -aon|findstr "8080"
显示结果:
TCP 127.0.0.1:80 0.0.0.0:0 &
【Spark二十】运行Spark Streaming的NetworkWordCount实例
bit1129
wordcount
Spark Streaming简介
NetworkWordCount代码
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
Struts2 与 SpringMVC的比较
BlueSkator
struts2spring mvc
1. 机制:spring mvc的入口是servlet,而struts2是filter,这样就导致了二者的机制不同。 2. 性能:spring会稍微比struts快。spring mvc是基于方法的设计,而sturts是基于类,每次发一次请求都会实例一个action,每个action都会被注入属性,而spring基于方法,粒度更细,但要小心把握像在servlet控制数据一样。spring
Hibernate在更新时,是可以不用session的update方法的(转帖)
BreakingBad
Hibernateupdate
地址:http://blog.csdn.net/plpblue/article/details/9304459
public void synDevNameWithItil()
{Session session = null;Transaction tr = null;try{session = HibernateUtil.getSession();tr = session.beginTran
读《研磨设计模式》-代码笔记-观察者模式
bylijinnan
java设计模式
声明: 本文只为方便我个人查阅和理解,详细的分析以及源代码请移步 原作者的博客http://chjavach.iteye.com/
import java.util.ArrayList;
import java.util.List;
import java.util.Observable;
import java.util.Observer;
/**
* “观
重置MySQL密码
chenhbc
mysql重置密码忘记密码
如果你也像我这么健忘,把MySQL的密码搞忘记了,经过下面几个步骤就可以重置了(以Windows为例,Linux/Unix类似):
1、关闭MySQL服务
2、打开CMD,进入MySQL安装目录的bin目录下,以跳过权限检查的方式启动MySQL
mysqld --skip-grant-tables
3、新开一个CMD窗口,进入MySQL
mysql -uroot
 
再谈系统论,控制论和信息论
comsci
设计模式生物能源企业应用领域模型
再谈系统论,控制论和信息论
偶然看
oracle moving window size与 AWR retention period关系
daizj
oracle
转自: http://tomszrp.itpub.net/post/11835/494147
晚上在做11gR1的一个awrrpt报告时,顺便想调整一下AWR snapshot的保留时间,结果遇到了ORA-13541这样的错误.下面是这个问题的发生和解决过程.
SQL> select * from v$version;
BANNER
-------------------
Python版B树
dieslrae
python
话说以前的树都用java写的,最近发现python有点生疏了,于是用python写了个B树实现,B树在索引领域用得还是蛮多了,如果没记错mysql的默认索引好像就是B树...
首先是数据实体对象,很简单,只存放key,value
class Entity(object):
'''数据实体'''
def __init__(self,key,value)
C语言冒泡排序
dcj3sjt126com
算法
代码示例:
# include <stdio.h>
//冒泡排序
void sort(int * a, int len)
{
int i, j, t;
for (i=0; i<len-1; i++)
{
for (j=0; j<len-1-i; j++)
{
if (a[j] > a[j+1]) // >表示升序
自定义导航栏样式
dcj3sjt126com
自定义
-(void)setupAppAppearance
{
[[UILabel appearance] setFont:[UIFont fontWithName:@"FZLTHK—GBK1-0" size:20]];
[UIButton appearance].titleLabel.font =[UIFont fontWithName:@"FZLTH
11.性能优化-优化-JVM参数总结
frank1234
jvm参数性能优化
1.堆
-Xms --初始堆大小
-Xmx --最大堆大小
-Xmn --新生代大小
-Xss --线程栈大小
-XX:PermSize --永久代初始大小
-XX:MaxPermSize --永久代最大值
-XX:SurvivorRatio --新生代和suvivor比例,默认为8
-XX:TargetSurvivorRatio --survivor可使用
nginx日志分割 for linux
HarborChung
nginxlinux脚本
nginx日志分割 for linux 默认情况下,nginx是不分割访问日志的,久而久之,网站的日志文件将会越来越大,占用空间不说,如果有问题要查看网站的日志的话,庞大的文件也将很难打开,于是便有了下面的脚本 使用方法,先将以下脚本保存为 cutlog.sh,放在/root 目录下,然后给予此脚本执行的权限
复制代码代码如下:
chmo
Spring4新特性——泛型限定式依赖注入
jinnianshilongnian
springspring4泛型式依赖注入
Spring4新特性——泛型限定式依赖注入
Spring4新特性——核心容器的其他改进
Spring4新特性——Web开发的增强
Spring4新特性——集成Bean Validation 1.1(JSR-349)到SpringMVC
Spring4新特性——Groovy Bean定义DSL
Spring4新特性——更好的Java泛型操作API
Spring4新
centOS安装GCC和G++
liuxihope
centosgcc
Centos支持yum安装,安装软件一般格式为yum install .......,注意安装时要先成为root用户。
按照这个思路,我想安装过程如下:
安装gcc:yum install gcc
安装g++: yum install g++
实际操作过程发现,只能有gcc安装成功,而g++安装失败,提示g++ command not found。上网查了一下,正确安装应该
第13章 Ajax进阶(上)
onestopweb
Ajax
index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/
How to determine BusinessObjects service pack and fix pack
blueoxygen
BO
http://bukhantsov.org/2011/08/how-to-determine-businessobjects-service-pack-and-fix-pack/
The table below is helpful. Reference
BOE XI 3.x
12.0.0.
y BOE XI 3.0 12.0.
x.
y BO
Oracle里的自增字段设置
tomcat_oracle
oracle
大家都知道吧,这很坑,尤其是用惯了mysql里的自增字段设置,结果oracle里面没有的。oh,no 我用的是12c版本的,它有一个新特性,可以这样设置自增序列,在创建表是,把id设置为自增序列
create table t
(
id number generated by default as identity (start with 1 increment b
Spring Security(01)——初体验
yang_winnie
springSecurity
Spring Security(01)——初体验
博客分类: spring Security
Spring Security入门安全认证
首先我们为Spring Security专门建立一个Spring的配置文件,该文件就专门用来作为Spring Security的配置