一台windows服务器,要部署jar,启动成功,却无法正常请求。 会报错: InetAddress.getLocalHost().getHostName() took 20021 milliseconds to respond. Please verify your network configuration. 经查,该服务器启动了一个其他服务,该服务占用了所有的网络请求带宽,导致网络不通。
server { #SSL 默认访问端口号为 443 listen 443 ssl; #请填写绑定证书的域名 server_name qzkuma.cn; #请填写证书文件的相对路径或绝对路径 ssl_certificate /home/ssl/qzkuma.cn_bundle.crt; #请填写私钥文件的相对路径或绝对路
services: mysql: image: mysql:5.7 container_name: mysql57 environment: MYSQL_ROOT_PASSWORD: kuma_57_123 MYSQL_DATABASE: zq_diancan MYSQL_USER: root MYSQL_PASSWORD
server { listen 80; server_name qzkuma.cn; #填写您的证书绑定的域名,例如:cloud.tencent.com return 301 https://$host$request_uri; #将http的域名请求转成https }
services: tomcat: image: tomcat:latest ports: - "8080:8080" volumes: - ./tomcat/webapps:/usr/local/tomcat/webapps - ./tomcat/logs:/usr/local/tomcat/logs
拉镜像:dockerpullmysql:latest启动容器:dockerrunp3306:3306namemysqlcase\v/mydata/mysql/log:/var/log/mysql\v/mydata/mysql/data:/var/lib/mysql\v/mydata/mysql/conf:/etc/mysql/conf.d\eMYSQL_ROOT_PASSWORD=123456\d
mkdirminiocdminiovidockerfiledockerfile的内容:基础镜像FROMminio/minioauthorMAINTAINERcjq新建dockercompose.yml:cd..vidockercompose.ymldockercompose.yml内容为:version:'3.8'services:kumaminio:container_name:kumamini
wgethttps://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat8/v8.5.71/bin/apachetomcat8.5.71.tar.gztarzxvfapachetomcat8.5.71.tar.gzmvapachetomcat8.5.71tomcat8sh/root/tomcat8/bin/startup.shtailf/root/
第1步:yuminstallgccgcccautoconfautomake出现类似如下错误:Couldnotresolvehost:mirrors.tencentyun.com;Unknownerror百度结果说:我们需要把DNS恢复为内网DNS:广州服务器:nameserver10.225.30.181nameserver10.225.30.223北京服务器:nameserver10.53.21
将任意mysql一个版本中bin/mysql.exe,复制到指定目录下。如d:\mysql:cdd:\mysqlmysqlh192.168.0.110urootp1233showdatabases;usetest1;
server{listen8082;server_namelocalhost;charsetkoi8r;access_loglogs/host.access.logmain;location/{root/home/a8082/dist/;indexindex.htmlindex.htm;try_filesuriuri//index.html;}error_page404/404.html;redi
打开vim/etc/docker/daemon.json(若没有自行创建){"registrymirrors":"https://docker.mirrors.ustc.edu.cn"}重启一下dockersystemctlrestartdocker
mysql8下载:https://mirrors.tuna.tsinghua.edu.cn/mysql/downloads/MySQL8.0/zip包安装的,启动服务时,提示:服务没有响应控制功能msi安装的,提示requiresviusalstudio2019x64redistributable解决方案:安装viusalstudio2019x64下载地址:链接:https://pan.baidu
若:netstat:未找到命令,则安装:yumyinstallnettoolsnetstattunlpgrep端口号t(tcp)仅显示tcp相关选项u(udp)仅显示udp相关选项n拒绝显示别名,能显示数字的全部转化为数字l仅列出在Listen(监听)的服务状态p显示建立相关链接的程序名netstattunlpgrep8080
yumyinstallwget
url='http://localhost:9002/api/external/test1'code=curlconnecttimeout5m5Io/dev/null/sw%{http_code}urldt="date'+%Y%m%d%H:%M:%S'"if((code200))thenecho"dtcode=code"/opt/notice2/logs/a.logexit0elseecho"dt
vinginx.conf在gzipon;之后添加:upstreamorg.tonny.balance{server127.0.0.1:8081weight=1;server127.0.0.1:8082weight=1;}在server节点下:location/{roothtml;indexindex.htmlindex.htm;proxy_passhttp://org.tonny.balance}
wgetichttp://dev.mysql.com/get/mysql57communityreleaseel710.noarch.rpmyumyinstallmysql57communityreleaseel710.noarch.rpmyumyinstallmysqlcommunityserversystemctlstartmysqld.service查看状态:systemctlstatusm
停止docker容器服务:dockerpsdockerstop容器ID或容器名dockerkill容器ID或容器名:直接关闭容器启动:dockerstart容器ID或容器名删除容器:查看所有显示的容器:dockerpsa删除容器:dockerrm容器ID或容器名Docker容器向宿主机传送文件格式:dockercpcontainer_id:<docker容器内的路径<本地保存文件的路径比如:doc
安装和启动:curlLOhttps://artifacts.elastic.co/downloads/elasticsearch/elasticsearch6.0.1.tar.gztarxvfelasticsearch6.0.1.tar.gzcdelasticsearch6.0.1/bin./elasticsearch在这里可能报错:org.elasticsearch.bootstrap.Star
第一步:sudoyuminstallyhttps://download.postgresql.org/pub/repos/yum/reporpms/EL7x86_64/pgdgredhatrepolatest.noarch.rpm第二步:sudoyuminstallypostgresql13server第三步:sudo/usr/pgsql13/bin/postgresql13setupinitdb
下载geomesakafka_2.113.1.1bin.tar.gz解压:tarzxvfgeomesakafka_2.113.1.1bin.tar.gzcd/home/geomesakafka_2.113.1.1/conf主要是修改kafka的版本和zookeeper的版本:vidependencies.sh(可不用修改,因为修改后,可能无法找到对应的jar包)修改kafkaenv.sh配置文件配
wgethttps://mirrors.tuna.tsinghua.edu.cn/apache/kafka/2.6.1/kafka_2.122.6.1.tgztarzxvfkafka_2.122.6.1.tgzcd/home/kafka_2.122.6.1vi/home/kafka_2.122.6.1/config/server.properties修改:broker.id=0允许外部端口连接li
wgethttp://sourceforge.net/projects/geoserver/files/GeoServer/2.16.2/geoserver2.16.2war.zip下载unzip:sudoyuminstallunzipy解压:unzipgeoserver2.16.2war.zipcp/home/geoserver.war/home/tomcat10/webappscp/home/
wgethttp://mirror.bit.edu.cn/apache/zookeeper/zookeeper3.5.9/apachezookeeper3.5.9bin.tar.gztarzxfapachezookeeper3.5.9bin.tar.gzC/homecd/homemvapachezookeeper3.5.9binzookeepercd/home/zookeeper/confcpzo
1.先查看防火墙是否开启的状态,以及开放端口的情况:systemctlstatusfirewalld.service(查看防火墙开启还是关闭)2.使用以下命令来开启或者关闭虚拟机的防火墙systemctlstopfirewalld.service(停止防火墙)systemctlstartfirewalld.service(打开防火墙)disablefirewalld.service(关闭开机自启)
首先,要确保CentOS7安装了opensshserver,在终端中输入:yumlistinstalledgrepopensshserver未安装,则安装:yuminstallopensshserver编辑:vi/etc/sysconfig/networkscripts/ifcfgens33BOOTPROTO=staticNOBOOT=yesnewIPADDR=192.168.36.10GATEW
crontabeFordetailsseeman4crontabsExampleofjobdefinition:.minute(059).hour(023).dayofmonth(131).month(112)ORjan,feb,mar,apr....dayofweek(06)(Sunday=0or7)ORsun,mon,tue,wed,thu,fri,satusernamecommandtobe
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号