ICode9

精准搜索请尝试: 精确搜索
  • window 安装redis2022-07-30 10:01:21

    下载地址:https://github.com/tporadowski/redis/releases 修改配置文件:requirepass  passwd 因redis-server 启动命令只是临时启动,关闭窗口服务会关闭,所以需要后台运行。 安装 安装命令:redis-server.exe --service-install redis.windows.conf --loglevel verbose 启动服务命令

  • How to Install, Configure and Enable SSH Service in Linux2022-07-29 16:00:42

    引用网址:https://www.ubuntupit.com/how-to-install-configure-and-enable-ssh-service-in-linux/ In Linux, the Secure Shell (SSH) is a method where you can access another computer through a secure and two-way encrypted communication system over the internet. By e

  • 离线安装docker2022-07-29 15:33:45

    一、安装步骤 1.下载Docker二进制文件(离线安装包) 下载地址:https://download.docker.com/linux/static/stable/x86_64/ 注:本文使用 docker-18.06.1-ce.tgz 注意对应操作系统类型 2.通过 FTP 或者 lrzsz  将 docker-18.06.1-ce.tgz 上传的服务器 3.解压安装包 tar -zxvf docker-18

  • firewall命令操作2022-07-29 11:04:33

    1、firewalld的基本使用 启动: systemctl start firewalld 查看状态: systemctl status firewalld 停止: systemctl disable firewalld 禁用: systemctl stop firewalld2、systemctl是CentOS7的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体 启动一个服务:systemc

  • selenium4 与 selenium3 的区别2022-07-28 19:00:26

    1、初始化driver对象时候的区别:   selenium4多了一个Service类,用来管理驱动程序的启动,停止。   service = Service(r"E:\python39\chromedriver.exe")   driver = webdriver.Chrome(service=service) 2、查找元素区别:   selenium4只保留了find_element,和find_elements这2

  • 部署VNC2022-07-28 18:31:25

    1、安装服务 yum install tigervnc tigervnc-server -y  2、编辑文件进行配置 vim /etc/sysconfig/vncservers #复制最后两行并去掉行首注释符,然后修改,如下所示: # THIS FILE HAS BEEN REPLACED BY /lib/systemd/system/vncserver@.service # VNCSERVERS="2:root" VNCSERVERAR

  • spring的四种属性2022-07-28 12:33:41

    注解含义 @Component 最普通的组件,可以被注入到spring容器进行管理 @Repository 作用于持久层 @Service 作用于业务逻辑层 @Controller 作用于表现层(spring-mvc的注解)   @Controller注解类进行前端请求的处理,转发,重定向。包括调用Service层的方法@Service注解类

  • 主机检测脚本2022-07-27 12:33:11

    #!/bin/bash # sys_check.sh [ $(id -u) -gt 0 ] && echo "请用root用户执行此脚本!" && exit 1 sysversion=$(rpm -q centos-release|cut -d- -f3) line="-------------------------------------------------" [ -d logs ] || mkdir logs #1s

  • Linux 13 配置服务自启动2022-07-26 21:31:26

    参考源 https://www.bilibili.com/video/BV187411y7hF?spm_id_from=333.999.0.0 版本 本文章基于 CentOS 7.6 准备 我们通常的部署流程是: 1、将写好的项目打成 jar 包。 2、将打好的 jar 包传输到服务器上。 3、编写 shell 脚本来运行 jar 包。 这样运行 jar 包有两个不方便

  • 安装iptables2022-07-26 20:04:25

    centos7默认防火墙:firewalld 查看firewalld状态:service firewalld status 包含active(running)表示运行中,停用firewalld: service firewalld stop 再次查看firewalld状态:service firewalld status 包含inactive(dead)表示已停止 禁用firewalld:systemctl disable firewalld.service

  • 关闭Ubuntu自动检查更新2022-07-26 14:35:02

    systemctl stop apt-daily.service systemctl stop apt-daily.timer systemctl stop apt-daily-upgrade.service systemctl stop apt-daily-upgrade.timer systemctl disable apt-daily.service systemctl disable apt-daily.timer systemctl disable apt-daily-upgrade.servi

  • firewall 命令简单操作2022-07-25 23:06:00

    Firewalld 是维护防火墙策略的守护程序的名称。使用 firewall-cmd 命令与防火墙配置进行交互, 使用区域概念对与系统交互的流量进行分段。网络接口分配给一个或多个区域,每个区域都包含允许的端口和服务的列表。默认区域还可用于管理与任何区域都不匹配的流量。 0 语法规则 Usage: f

  • Linux 安装并配置 MySQL2022-07-24 18:05:18

    参考:https://www.cnblogs.com/zhuyp1015/p/3561470.html   ubuntu上安装mysql非常简单只需要几条命令就可以完成。   1. sudo apt-get install mysql-server    2. sudo apt-get install mysql-client    3. sudo apt-get install libmysqlclient-dev 安装完成之后可

  • 通知与服务——服务Service——推送服务到前台2022-07-24 16:31:26

                                      ============================================================================================               布局: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:

  • 通知与服务——服务Service——服务的启动和停止2022-07-24 15:02:53

            服务是在后台默默运行着的Android组件,它与生命周期有关的方法说明如下: onCreate:创建服务。 onStart:开始服务,Android 2.0以下版本使用,现已废弃。 onStartCommand:开始服务,Android 2.0及以上版本使用。 onDestroy:销毁服务。 onBind:绑定服务。 onUnbind:解除绑定。返回值

  • docker常用命令2022-07-24 15:02:33

    查看所有的容器命令如下: $ docker ps -a 使用 docker start 启动一个已停止的容器: $ docker start b750bbbcfd88(CONTAINER ID) 在大部分的场景下,我们希望 docker 的服务是在后台运行的,我们可以过 -d 指定容器的运行模式 $ docker run -itd --name ubuntu-test ubuntu /bin/bas

  • 在java中使用SPI创建可扩展的应用程序2022-07-24 09:36:16

    简介 什么是可扩展的应用程序呢?可扩展的意思是不需要修改原始代码,就可以扩展应用程序的功能。我们将应用程序做成插件或者模块。 这样可以在不修改原应用的基础上,对系统功能进行升级或者定制化。 本文将会向大家介绍如何通过java中的SPI机制实现这种可扩展的应用程序。 SPI简介 SP

  • 【JavaWeb】servlet的继承关系2022-07-24 01:31:17

    1.继承关系 Servlet接口 GenericServlet抽象类 HttpServlet抽象子类 2.相关方法 javax.servlet.Servlet接口: void init(config) - 初始化方法 void service(request,response) - 服务方法 void destory() - 销毁方法 javax.servlet.GenericServlet抽象类: void ini

  • 2022-07-23 用宝塔上传后端文件到服务器,在浏览器直接访问接口地址报Service Unavailable(服务不可用)错误2022-07-23 23:34:57

    前言:我在宝塔上传了php文件,在浏览器输入www.yyy.com/index.php,回车,报错。 具体报错: Service Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Apache Server at www.yyy.com P

  • docker 部署.net core webapi 依赖其他服务2022-07-22 18:38:15

    前言: 当前的服务越来越多的构建在了Docker中,web、api、db、nginx等等都在Docker中构建运行。本文结合实际项目,使用docker-compose工具启动运行服务,配置文件使用docker-compose.yml以及Dockerfile构建镜像的方式,概述了整个使用过程。 1. 在项目根目录创建Dockerfile #See https://

  • 关于seata no available service 'null' found, please make sure registry config correct的一个大坑2022-07-21 22:07:49

    今天在使用seata时,启动一直报错  no available service 'null' found, please make sure registry config correct 在检查了nacos的配置中心和服务中心后没有异常,可是一直找不到服务    这是client的配置 最后研究了半天时间后,终于明白,要在client端配置 seata.tx-service-grou

  • Win10 SVN搭建2022-07-21 14:33:55

    服务端 Visual SVN Server下载 链接:VISUALSVN SERVER // Download // Version 3.9 说明:请下载4.0以下版本,4.0以上版本免费版只支持15个用户。 Visual SVN Server服务端搭建 网上搜索教程,很多。 配置用户方法区别: Understanding VisualSVN Server Authentication options Subversi

  • centos tomcat开机自启2022-07-21 10:00:28

    把tomcat的catalina.sh脚本文件拷一份到/etc/init.d目录 cp /usr/local/tomcat/bin/catalina.sh /etc/init.d/tomcat 并把改脚本授权755权限 chmod 755 /etc/init.d/tomcat 拷贝的脚本并不能直接使用,还需要修改添加一些配置。 vi /etc/init.d/tomcat #chkconfig: 2345 10 90 #des

  • 一个 tomcat 下部署多个项目(超细版)2022-07-20 11:03:36

    前言:网上大佬们的都是一个webapps下面部署多个项目,咱们今天来点不一样的,另一种思路则是,多个webapps,每个webapps下面运行一个项目,不知如何本地部署的可以去看看我上一篇随笔 具体步骤: 1、tomcat目录下复制webapps目录,并重命名为webapps1 2、修改tomcat的conf目下的server.xml文件,设

  • docker-compose up 报错:Bind for 0.0.0.0:8098 failed: port is already allocated2022-07-20 11:00:49

    ERROR: for local_nginx Cannot start service nginx: driver failed programming external connectivity on endpoint local_nginx (c3d788a28999dc7888524cd93d63a5dac3da0fe00d9c7d8a09e8bb815005b9f0): Bind for 0.0.0.0:8098 failed: port is already allocated 容器没有运

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有