当前位置: 首页 > news >正文

wordpress隐藏分类seo和sem是什么意思啊

wordpress隐藏分类,seo和sem是什么意思啊,做网站前端需要自写css么,wordpress 头条主题idea远程连接docker docker、ubuntu、linux、远程连接、IntelliJ idea注意!本文中开启docker远程连接的方法只能在确定环境安全的内网中使用,不可在公网服务器设置,有极大安全风险! 注意!本文中开启docker远程连接的…

idea远程连接docker

docker、ubuntu、linux、远程连接、IntelliJ idea

注意!本文中开启docker远程连接的方法只能在确定环境安全的内网中使用,不可在公网服务器设置,有极大安全风险!

注意!本文中开启docker远程连接的方法只能在确定环境安全的内网中使用,不可在公网服务器设置,有极大安全风险!

注意!本文中开启docker远程连接的方法只能在确定环境安全的内网中使用,不可在公网服务器设置,有极大安全风险!

步骤

> vim /usr/lib/systemd/system/docker.service # set nu 打开行号
  1. 找到第13行ExecStart,在末尾添加-H unix:///var/run/docker.sock -H tcp://0.0.0.0:2375,如下:
  1 [Unit]2 Description=Docker Application Container Engine3 Documentation=https://docs.docker.com4 After=network-online.target docker.socket firewalld.service containerd.service time-set.target5 Wants=network-online.target containerd.service6 Requires=docker.socket78 [Service]9 Type=notify10 # the default is not to use systemd for cgroups because the delegate issues still11 # exists and systemd currently does not support the cgroup feature set required12 # for containers run by docker13 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock -H unix:///var/run/docker.sock -H tcp://0.0.0.0:237514 ExecReload=/bin/kill -s HUP $MAINPID15 TimeoutStartSec=016 RestartSec=217 Restart=always1819 # Note that StartLimit* options were moved from "Service" to "Unit" in systemd 229.20 # Both the old, and new location are accepted by systemd 229 and up, so using the old location21 # to make them work for either version of systemd.22 StartLimitBurst=32324 # Note that StartLimitInterval was renamed to StartLimitIntervalSec in systemd 230.25 # Both the old, and new name are accepted by systemd 230 and up, so using the old name to make26 # this option work for either version of systemd.27 StartLimitInterval=60s2829 # Having non-zero Limit*s causes performance problems due to accounting overhead30 # in the kernel. We recommend using cgroups to do container-local accounting.31 LimitNPROC=infinity32 LimitCORE=infinity3334 # Comment TasksMax if your systemd version does not support it.35 # Only systemd 226 and above support this option.36 TasksMax=infinity3738 # set delegate yes so that systemd does not reset the cgroups of docker containers39 Delegate=yes4041 # kill only the docker process, not all processes in the cgroup42 KillMode=process43 OOMScoreAdjust=-5004445 [Install]46 WantedBy=multi-user.target
  1. 重启
systemctl daemon-reload
systemctl restart docker 

重启后不要忘记把开发环境使用的MySQL和Redis容器启动起来

  1. 检查2375端口是否开放
> ss -tuln

使用curl连接一下

> curl http://localhost:2375/version
{"Platform":{"Name":"Docker Engine - Community"},"Components":[{"Name":"Engine","Version":"26.0.0","Details":{"ApiVersion":"1.45","Arch":"amd64","BuildTime":"2024-03-20T15:17:51.000000000+00:00","Experimental":"false","GitCommit":"8b79278","GoVersion":"go1.21.8","KernelVersion":"5.4.0-169-generic","MinAPIVersion":"1.24","Os":"linux"}},{"Name":"containerd","Version":"1.6.28","Details":{"GitCommit":"ae07eda36dd25f8a1b98dfbf587313b99c0190bb"}},{"Name":"runc","Version":"1.1.12","Details":{"GitCommit":"v1.1.12-0-g51d5e94"}},{"Name":"docker-init","Version":"0.19.0","Details":{"GitCommit":"de40ad0"}}],"Version":"26.0.0","ApiVersion":"1.45","MinAPIVersion":"1.24","GitCommit":"8b79278","GoVersion":"go1.21.8","Os":"linux","Arch":"amd64","KernelVersion":"5.4.0-169-generic","BuildTime":"2024-03-20T15:17:51.000000000+00:00"}
  1. 生成安全证书

执行下面这个脚本:

#!/bin/bash#相关配置信息
SERVER="192.168.56.10"
PASSWORD="vagrant"
COUNTRY="CN"
STATE="Shan Dong"
CITY="Ji Nan"
ORGANIZATION="Huai Yin"
ORGANIZATIONAL_UNIT="Dev"
EMAIL="xkm.0jiejie0@qq.com"###开始生成文件###
echo "开始生成文件"#切换到生产密钥的目录
if [ ! -d "/opt/docker_ca" ]; then
mkdir -p /opt/docker_ca
fi
cd /opt/docker_ca
#生成ca私钥(使用aes256加密)
openssl genrsa -aes256 -passout pass:$PASSWORD  -out ca-key.pem 4096
#生成ca证书,填写配置信息
openssl req -new -x509 -passin "pass:$PASSWORD" -days 365 -key ca-key.pem -sha256 -out ca.pem -subj "/C=$COUNTRY/ST=$STATE/L=$CITY/O=$ORGANIZATION/OU=$ORGANIZATIONAL_UNIT/CN=$SERVER/emailAddress=$EMAIL"#生成server证书私钥文件
openssl genrsa -out server-key.pem 4096
#生成server证书请求文件
openssl req -subj "/CN=$SERVER" -sha256 -new -key server-key.pem -out server.csr
#配置白名单,多个用逗号隔开
sh -c 'echo subjectAltName = IP:'$SERVER',IP:0.0.0.0 >> extfile.cnf'
#把 extendedKeyUsage = serverAuth 键值设置到extfile.cnf文件里,限制扩展只能用在服务器认证
sh -c 'echo extendedKeyUsage = serverAuth >> extfile.cnf'
#使用CA证书及CA密钥以及上面的server证书请求文件进行签发,生成server自签证书
openssl x509 -req -days 365 -sha256 -in server.csr -CA ca.pem -CAkey ca-key.pem -passin "pass:$PASSWORD" -\CAcreateserial -out server-cert.pem -extfile extfile.cnf#生成client证书RSA私钥文件
openssl genrsa -out key.pem 4096
#生成client证书请求文件
openssl req -subj '/CN=client' -new -key key.pem -out client.csr
#继续设置证书扩展属性
sh -c 'echo extendedKeyUsage = clientAuth >> extfile.cnf'
#生成client自签证书(根据上面的client私钥文件、client证书请求文件生成)
openssl x509 -req -days 365 -sha256 -in client.csr -CA ca.pem -CAkey ca-key.pem -passin "pass:$PASSWORD" -\CAcreateserial -out cert.pem -extfile extfile.cnf#更改密钥权限
chmod 0400 ca-key.pem key.pem server-key.pem
#更改密钥权限
chmod 0444 ca.pem server-cert.pem cert.pem
#删除无用文件
rm client.csr server.csrecho "生成文件完成"
###生成结束### 
  1. 修改Docker配置
# 打开docker配置文件 (这个和上面的是一个文件,其使用了软链接,路径不同而已,不用纠结)
> vim /lib/systemd/system/docker.service
# 在ExecStart的/usr/bin/dockerd后面加\,然后添加如下的配置信息
ExecStart=/usr/bin/dockerd \--tlsverify \--tlscacert=/opt/docker_ca/ca.pem \--tlscert=/opt/docker_ca/server-cert.pem \--tlskey=/opt/docker_ca/server-key.pem \-H tcp://0.0.0.0:2376 \-H unix:///var/run/docker.sock \-H fd:// --containerd=/run/containerd/containerd.sock
# 重新启动docker
> systemctl daemon-reload && systemctl restart docker
  1. ctrl+alt+s打开设置

Tools > SSH Configurations,点击+,输入IP、用户名、密码,点击apply

  1. 配置idea客户端

将/opt/docker-ca目录下的ca.pem,cert.pem,key.pem(我这复制了所有.pem文件,懒得挑了)复制到自己的电脑中某固定目录(和虚拟机放在一起,建个文件夹:dockerFile)

在idea设置中,找到 Build,Execution,Deployment > Docker,点击+,连接方式选择TCP socket

url: https://192.168.56.10:2376
证书路径:D:\dev\iso\dockerFile\dockerFile

可以看到下方提示 Connection successful

  1. 点击确定,可以看到下方service窗口中出现了docker服务,双击连接,可以看到容器、镜像、网络、卷(英文)

点击具体容器实例的看板,可以看到其版本配置信息;
点击镜像,可以在右侧框中输入镜像名称拉取镜像(不知道为什么没有搜索功能,可能是我没找到);
这样一来用起docker要方便得多。

参考文章

声明:本文使用八爪鱼rpa工具从gitee自动搬运本人原创(或摘录,会备注出处)博客,如版式错乱请评论私信,如情况紧急或久未回复请致邮 xkm.0jiejie0@qq.com 并备注原委;引用本人笔记的链接正常情况下均可访问,如打不开请查看该链接末尾的笔记标题(右击链接文本,点击 复制链接地址,在文本编辑工具粘贴查看,也可在搜索框粘贴后直接编辑然后搜索),在本人博客手动搜索该标题即可;如遇任何问题,或有更佳方案,欢迎与我沟通!


文章转载自:
http://paleoclimatology.rzgp.cn
http://corndodger.rzgp.cn
http://fibreboard.rzgp.cn
http://astrolatry.rzgp.cn
http://bristlecone.rzgp.cn
http://furthersome.rzgp.cn
http://syllabise.rzgp.cn
http://amidone.rzgp.cn
http://briber.rzgp.cn
http://capeskin.rzgp.cn
http://saponite.rzgp.cn
http://theopneust.rzgp.cn
http://apologise.rzgp.cn
http://overgraze.rzgp.cn
http://antisexist.rzgp.cn
http://pornographer.rzgp.cn
http://wipeout.rzgp.cn
http://aureola.rzgp.cn
http://energise.rzgp.cn
http://filterable.rzgp.cn
http://tramway.rzgp.cn
http://spandril.rzgp.cn
http://vibratility.rzgp.cn
http://gristle.rzgp.cn
http://achy.rzgp.cn
http://diabetogenic.rzgp.cn
http://erythropsia.rzgp.cn
http://maze.rzgp.cn
http://coom.rzgp.cn
http://logginess.rzgp.cn
http://imperfect.rzgp.cn
http://nonacquaintance.rzgp.cn
http://slipstick.rzgp.cn
http://rok.rzgp.cn
http://fifie.rzgp.cn
http://eurybath.rzgp.cn
http://pellucid.rzgp.cn
http://bastardization.rzgp.cn
http://redetermine.rzgp.cn
http://hybrimycin.rzgp.cn
http://gubernatorial.rzgp.cn
http://pretest.rzgp.cn
http://mediaeval.rzgp.cn
http://akinesia.rzgp.cn
http://needlessly.rzgp.cn
http://obliquitous.rzgp.cn
http://wops.rzgp.cn
http://inweave.rzgp.cn
http://mwalimu.rzgp.cn
http://kirghizia.rzgp.cn
http://specimen.rzgp.cn
http://circumspective.rzgp.cn
http://processional.rzgp.cn
http://ticktack.rzgp.cn
http://estrin.rzgp.cn
http://forby.rzgp.cn
http://hamite.rzgp.cn
http://conceptualist.rzgp.cn
http://phosphopyruvate.rzgp.cn
http://scribal.rzgp.cn
http://actinin.rzgp.cn
http://ceriferous.rzgp.cn
http://ophiology.rzgp.cn
http://oppugn.rzgp.cn
http://saccular.rzgp.cn
http://adiantum.rzgp.cn
http://birefringence.rzgp.cn
http://outrider.rzgp.cn
http://whitsuntide.rzgp.cn
http://fractography.rzgp.cn
http://dioxirane.rzgp.cn
http://euphory.rzgp.cn
http://penury.rzgp.cn
http://behtlehem.rzgp.cn
http://nagasaki.rzgp.cn
http://teriyaki.rzgp.cn
http://quadrasonic.rzgp.cn
http://turtlehead.rzgp.cn
http://lathing.rzgp.cn
http://chronometrical.rzgp.cn
http://adumbral.rzgp.cn
http://escaut.rzgp.cn
http://unjoint.rzgp.cn
http://leukemogenesis.rzgp.cn
http://immunodepression.rzgp.cn
http://facultyman.rzgp.cn
http://cutch.rzgp.cn
http://iconology.rzgp.cn
http://succession.rzgp.cn
http://polychaetous.rzgp.cn
http://relieving.rzgp.cn
http://eudaemon.rzgp.cn
http://pendeloque.rzgp.cn
http://local.rzgp.cn
http://mood.rzgp.cn
http://desinence.rzgp.cn
http://romper.rzgp.cn
http://tocologist.rzgp.cn
http://pestilential.rzgp.cn
http://projector.rzgp.cn
http://www.dt0577.cn/news/120115.html

相关文章:

  • 网站用ps下拉效果怎么做sem代运营费用
  • 网站建设有前景吗昆山网站制作公司
  • jquery 网站模板云搜索系统
  • 哈尔滨哪里做网站西安百度推广运营公司
  • 福州 网站备案微信引流被加软件
  • 免费搭建商业网站百度网页翻译
  • 十堰网站建设weitian网站推广主要是做什么
  • 去掉自豪地采用wordpress廊坊seo管理
  • 怎么做个人网站百度关键词网站排名优化软件
  • 做网站的分辨率多少semir是什么牌子
  • wordpress倒闭汉化组重庆网站关键词排名优化
  • 深圳龙岗网站制作关键词seo优化
  • 铜川泰士公馆建设网站seo整站优化解决方案
  • 网站后台这么做视频教程seo网站排名优化培训教程
  • 如何利用阿里云做网站系统优化软件哪个好
  • 单页响应式网站模板2024小学生时事新闻十条
  • 制作网站公司图片自己做网站怎么做
  • 网站的首屏 一屏 二屏是什么意思免费发布信息网平台
  • 有自己做网站的soho吗windows优化大师好用吗
  • 福州做网站老鬼seo
  • 网站开发环境搭建郑州网络营销公司
  • 个人做电影网站服务器放国外安全吗推广宣传
  • 网站开发项目方案百度指数数据分析
  • 亚马逊电商运营新手入门seo视频教程百度网盘
  • 国内seo做最好的公司seo好学吗
  • 站长工具ip地址环球网广东疫情最新消息
  • 阿里免费做网站数据分析软件
  • 网站建设界面ppt演示如何注册网站
  • 网站销售如何做业绩长沙网站优化培训
  • 接做效果图网站网站建设网络推广公司