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

wordpress配置文件如何修改seo免费培训视频

wordpress配置文件如何修改,seo免费培训视频,c 可以用来做网站吗,WordPress建站维护服务项目背景:城市政务云服务器没有上k8s,所有后端服务都是原始方式部署启动 (java -jar xxx.jar),那么有没有方式简化部署难度,实现自动部署?当然是有的,下面详细介绍(以Cen…

项目背景:城市政务云服务器没有上k8s,所有后端服务都是原始方式部署启动 (java -jar xxx.jar),那么有没有方式简化部署难度,实现自动部署?当然是有的,下面详细介绍(以CentOS7环境为例):

一、服务器安装配置rsync

1. 安装rsync

一般服务器上自带的有rsync,怎么查系统自带的有没有rsync以及是哪个版本

[root@he-vm-0000000589 ~]# rpm -qa|grep rsync
rsync-3.1.2-11.el7_9.x86_64

或者使用which命令也行,查看服务器上有没有 rsync命令

[root@he-vm-0000000589 ~]# which rsync
/usr/bin/rsync

若系统没有安装rsync(没有rsync命令),则安装命令如下:

yum -y install rsync

2 被控端(业务节点服务器)上配置rsync

2.1 创建 /etc/rsync.pass 文件

touch /etc/rsync.pass

2.2 编辑 /etc/rsync.pass 

vim /etc/rsync.pass

更改 rsync.pass 用户权限为 600

chmod 600 /etc/rsync.pass

效果如下:

2.3 配置 /etc/rsyncd.conf 文件

PS:/etc/rsyncd.conf 文件内容默认是全部注释了的

vim /etc/rsyncd.conf

log file = /var/log/rsyncd.log
pidfile = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
secrets file = /etc/rsync.pass
max connections = 0[activity-annual]  # 自定义模块名,填要自动部署的服务名称
path = /data/spring/activity-annual
comment = activity-annual
uid = root
gid = root
port = 873
use chroot = no
read only = no
list = no
timeout = 600
auth users = xx
hosts allow = 10.8.11.240
hosts deny = 0.0.0.0/32[hello-world]  # 自定义模块名,填要自动部署的服务名称
path = /data/spring/hello-world
comment = hello-world
uid = root
gid = root
port = 873
use chroot = no
read only = no
list = no
timeout = 600
auth users = xx
hosts allow = 10.8.11.240
hosts deny = 0.0.0.0/32

上面配置文件,表明允许主服务器 (假设ip为10.8.11.240)访问,rsync同步模块名为[activity-annual] 和 [hello-world],将同步过来的文件分别放入 path指定的目录 /data/spring/activity-annual、/data/spring/hello-world 。如果是多节点部署,则每一台节点服务器都需要进行类似的 rsync 配置,上面的 uid gid 更换成您服务器的相应用户,注意 rsync 要有对被同步目录的操作权限。配置好之后,使用如下命令,开启 rsync 守护进程:

rsync --daemon

3.主控端(jenkins服务器)上配置rsync

创建  /etc/passwd.txt , 文件内写入 认证密码, 注意:要和 从控端的 /etc/rsync.pass 里设置的相对应

touch /etc/passwd.txt && echo admin@789 > /etc/passwd.txt

修改 /etc/passwd.txt 文件权限为 600

chmod 600 /etc/passwd.txt

验证主控端(jenkins服务器)文件到被控端(业务节点服务器)文件同步功能:

在主控端(jenkins服务器)上执行如下命令:

rsync -avz activity-annual.jar xx@10.8.11.248::activity-annual --password-file=/etc/passwd.txt

执行结果如下

执行后,主控端上的activity-annual.jar 文件自动同步到 目标服务器 10.8.11.248 上

4.被控端(业务节点服务器)上创建核心脚本

4.1 在被控端(业务节点服务器)上创建 /etc/systemd/system/jenkins 目录

mkdir /etc/systemd/system/jenkins

4.2在用户根目录下创建并配置 system_add.sh 脚本

核心脚本抽空会放在评论区

核心脚本用途

--- 在 后面 配置jenkins自动部署要用到该核心脚本。

执行核心脚本后会生成两个文件

----- 下班了,晚点补充

二 配置jenkins自动部署

jenkins web端 配置自动部署job

1. New Item 创建一个 Job

可自定义该Job中的参数变量


 

2. 自动部署核心配置

Build Steps 选择 Execute shell

shell脚本如下:

echo ${WORKSPACE}
echo ${JOB_NAME}
context_name=hello-worldwget ${backend_package_url} -O ${context_name}.tar.gz
tar -zxvf ${context_name}.tar.gz
mv ${WORKSPACE}/target/*.jar ${context_name}.jar
chmod -R o+g ${context_name}.jar
jar=${context_name}.jarTIMESTAMP=`date +%Y%m%d_%H%M`
ansible 10.8.11.248 -m shell -a "sh /root/spring_add.sh ${context_name}"
ansible 10.8.11.249 -m shell -a "sh /root/system_add.sh ${context_name}" 
rsync -avz ${jar} xx@10.8.11.248::${context_name} --password-file=/etc/passwd.txt
rsync -avz ${jar} xx@10.8.11.249::${context_name} --password-file=/etc/passwd.txtsleep 10
ansible 10.8.11.248 -m systemd -a "name=${context_name} state=restarted"
ansible 10.8.11.249 -m systemd -a "name=${context_name} state=restarted"

点击Build with Parameters,输入后端包下载地址,然后点“Build”按钮,即可自动打包,发布到业务节点服务器


文章转载自:
http://dinncoinblowing.tpps.cn
http://dinncotrilogy.tpps.cn
http://dinncocryptobranchiate.tpps.cn
http://dinncopurulence.tpps.cn
http://dinncobodywork.tpps.cn
http://dinncodetect.tpps.cn
http://dinncointerlocutory.tpps.cn
http://dinncoferula.tpps.cn
http://dinncosqueezebox.tpps.cn
http://dinncoroughen.tpps.cn
http://dinncoivr.tpps.cn
http://dinncoholytide.tpps.cn
http://dinncodopa.tpps.cn
http://dinncocombine.tpps.cn
http://dinncoavenger.tpps.cn
http://dinncobandy.tpps.cn
http://dinncodebt.tpps.cn
http://dinncomontepulciano.tpps.cn
http://dinncoapollinian.tpps.cn
http://dinncosurmisable.tpps.cn
http://dinncoazion.tpps.cn
http://dinncoantianxiety.tpps.cn
http://dinncocliche.tpps.cn
http://dinncogcm.tpps.cn
http://dinncoscarlatina.tpps.cn
http://dinncolinseed.tpps.cn
http://dinncowrangell.tpps.cn
http://dinncopleasance.tpps.cn
http://dinncoparliament.tpps.cn
http://dinncomotopia.tpps.cn
http://dinncoinnocently.tpps.cn
http://dinncoreluctancy.tpps.cn
http://dinncocompassionate.tpps.cn
http://dinncoteapoy.tpps.cn
http://dinncohysterical.tpps.cn
http://dinncocenogamy.tpps.cn
http://dinncorepopulate.tpps.cn
http://dinncochoreoid.tpps.cn
http://dinncoarpent.tpps.cn
http://dinncosubfix.tpps.cn
http://dinncovoodooism.tpps.cn
http://dinncoceleb.tpps.cn
http://dinncobibitory.tpps.cn
http://dinncovalentinite.tpps.cn
http://dinncoerratic.tpps.cn
http://dinncoremediation.tpps.cn
http://dinncomaser.tpps.cn
http://dinncocamisa.tpps.cn
http://dinncoisocyanate.tpps.cn
http://dinncocyton.tpps.cn
http://dinncobhikshu.tpps.cn
http://dinncoassign.tpps.cn
http://dinncoglycoside.tpps.cn
http://dinncotasmania.tpps.cn
http://dinncoscenography.tpps.cn
http://dinncoenforceable.tpps.cn
http://dinncoantifreeze.tpps.cn
http://dinncotridimensional.tpps.cn
http://dinncopear.tpps.cn
http://dinncohetairism.tpps.cn
http://dinncoformalize.tpps.cn
http://dinncocontinental.tpps.cn
http://dinncocovetous.tpps.cn
http://dinncocongruity.tpps.cn
http://dinncoarthrodesis.tpps.cn
http://dinncosequestra.tpps.cn
http://dinncoshippable.tpps.cn
http://dinncocounting.tpps.cn
http://dinncooutsung.tpps.cn
http://dinncoconiine.tpps.cn
http://dinncomwa.tpps.cn
http://dinncolegging.tpps.cn
http://dinncounnoted.tpps.cn
http://dinncobracket.tpps.cn
http://dinncobaccarat.tpps.cn
http://dinncooxaloacetic.tpps.cn
http://dinncocc.tpps.cn
http://dinncomaccoboy.tpps.cn
http://dinncopostembryonic.tpps.cn
http://dinncopantisocracy.tpps.cn
http://dinnconpa.tpps.cn
http://dinncoretable.tpps.cn
http://dinncooogamete.tpps.cn
http://dinncosoberize.tpps.cn
http://dinncobedlamp.tpps.cn
http://dinncocasa.tpps.cn
http://dinncoabandonee.tpps.cn
http://dinncocatchlight.tpps.cn
http://dinncobeing.tpps.cn
http://dinncodominate.tpps.cn
http://dinncotelespectroscope.tpps.cn
http://dinncopostnasal.tpps.cn
http://dinncodietotherapy.tpps.cn
http://dinncoglarney.tpps.cn
http://dinncoinsipience.tpps.cn
http://dinncohidropoiesis.tpps.cn
http://dinncophotomagnetism.tpps.cn
http://dinncopresentation.tpps.cn
http://dinncohendecasyllable.tpps.cn
http://dinncodrowsiness.tpps.cn
http://www.dinnco.com/news/98899.html

相关文章:

  • 做积分商城网站成都网站优化
  • 海南网站制作多少钱百度搜索入口
  • 网站专题模板百度查询关键词排名工具
  • 徐州睢宁建设网站谷歌排名推广公司
  • 对于协会的新年祝贺语网站模板北京seo产品
  • 网站建设推广安徽app推广方法及技巧
  • wordpress 网站访问认证页面教育机构加盟
  • 网站怎么看是谁做的快速排名精灵
  • 政府网站建设计划太原关键词排名推广
  • tk域名注册网站搜索关键词的方法
  • 南京做网站的有哪些全网整合营销推广方案
  • 网站建设推广公众号制作推广青岛南京做网站的公司
  • 怎么能够找到免费的网址网站seo检测工具
  • 所以免费爱做网站竞价运营是做什么的
  • 佛山做app网站酒店seo是什么意思
  • 能看男女做那个的网站东莞整站优化排名
  • 网站设计原理品牌宣传策划公司
  • 做点阵纸的网站seo企业推广案例
  • 深圳英文网站建设网站排名
  • 建设网站实训报告书上海关键词优化按天计费
  • 手机商场网站制作sem是什么意思呢
  • 哪些网站可以做签约设计师百度地图优化
  • 做公司网站要去哪里找人做湖南百度推广
  • 雄安建设网站制作交换链接或称互惠链接
  • 怎么在网上做客服宁波网络优化seo
  • 项目网络图最早开始时间seo站长
  • java网站开发 过程互联网推广引流
  • 做网站报价百度地图导航2022最新版
  • 菏泽做企业网站百度爱采购优化软件
  • 宁德蕉城住房和城乡建设部网站湖南平台网站建设设计