怎么安装就不说了,网上一堆

这噶搭是配置 目录是/etc/vsftpd/vsftpd.conf

# Example config file /etc/vsftpd/vsftpd.conf

#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
# When SELinux is enforcing check for SE bool ftp_home_dir
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
# When SELinux is enforcing check for SE bool allow_ftpd_anon_write, allow_ftpd_full_access
anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/xferlog
#
# If you want, you can have your log file in standard ftpd xferlog format.
# Note that the default log file location is /var/log/xferlog in this case.
xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd/banned_emails
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
# (Warning! chroot'ing can be very dangerous. If using chroot, make sure that
# the user does not have write access to the top level directory within the
# chroot)
#chroot_local_user=YES
#chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/vsftpd/chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=NO
#
# This directive enables listening on IPv6 sockets. By default, listening
# on the IPv6 "any" address (::) will accept connections from both IPv6
# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
# sockets. If you want that (perhaps because you want to listen on specific
# addresses) then you must run two copies of vsftpd with two configuration
# files.
# Make sure, that one of the listen options is commented !!
listen_ipv6=YES

pam_service_name=vsftpd
userlist_enable=YES
tcp_wrappers=YES
#123qwe123

如果以上完事发现550,那就是用户对那个/var/ftp下的文件夹权限不够,比如/var/ftp/pub文件夹

chmod 755 /var/ftp,这个目录是必须755

可以chmod 777 pub

----------------------------------------------------------------

Publish over FTP

在Jenkins服务上安装 Publish over FTP也就不讲了也可百度 ,配置是这样

----------------------------------------------------------------

----------------------------------------------------------------

最后是pipline配置

node ('master') {
    def mvnHome
    stage('Code checkout') {
        checkout([$class: 'SubversionSCM', additionalCredentials: [], excludedCommitMessages: '', excludedRegions: '', excludedRevprop: '', excludedUsers: '', filterChangelog: false, ignoreDirPropChanges: false, includedRegions: '', locations: [[credentialsId: 'ed7688fa-9ae9-4a1c-a5fd-99957f7b5b5f', depthOption: 'infinity', ignoreExternalsOption: true, local: './tgcw-service-fyz', remote: 'https://10.11.63.242/svnplugin/tyz/fyz-code/trunk/tgcw-service-fyz']], quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']])
    }
    stage('Build') {
        mvnHome = tool 'maven3.5.2'
        env.JAVA_HOME= tool 'Java8'
        env.PATH="${env.JAVA_HOME}/bin:${env.PATH}"
        dir('/opt/jenkins/jenkins_home/workspace/tgcw-service-fyz/tgcw-service-fyz') {
            sh "'${mvnHome}/bin/mvn' clean install"
        }
    }
   stage('FTP upload') {
ftpPublisher alwaysPublishFromMaster: false, continueOnError: false, failOnError: false, publishers: [[configName: 'anonymous215', transfers: [[asciiMode: false, cleanRemote: false, excludes: '', flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '/', remoteDirectorySDF: false, removePrefix: '', sourceFiles: '**/*.jar']], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false]]
    }
    stage('Clean up') {
        cleanWs cleanWhenFailure: false, cleanWhenUnstable: false, deleteDirs: true, notFailBuild: true
    }

}

-------------------------------------------------------------------------------------------------------------

sbin/service crond start //启动服务

/sbin/service crond stop //关闭服务

/sbin/service crond restart //重启服务

/sbin/service crond reload //重新载入配置

/etc/crontab

懂的人知道我这思路有多重要,不懂的,联系我也可以给讲。

linux jenkins部署之路之,ftp部署怎么匿名还好用咋解决思密达相关推荐

  1. 夕阳桥断 Linux(centos6.5)下安装jenkins Jenkins 的前身是 Hudson 是一个可扩展的持续集成引擎。 通俗的来讲,jenkins就是一个可以实现自动化部署的一个插

    夕阳桥断 Linux(centos6.5)下安装jenkins Jenkins 的前身是 Hudson 是一个可扩展的持续集成引擎. 通俗的来讲,jenkins就是一个可以实现自动化部署的一个插件, ...

  2. FTP部署看这一篇就够了——Linux版

    文章目录 文件服务(FTP)-Linux版 前言 查看服务器是否已安装FTP 若已安装,查看一下是否已启动vsftp 启动vsftp(若已启动跳过此步骤) 若已安装,建议查看一下本地vsftp的版本 ...

  3. 码神之路博客部署教程【完整版】|基于Linux的Docker部署教程|非常详细

    说明 前记:最近跟着哔站码神之路做了一个SpringBoot练手项目,第一次操作碰到了很多困难和问题,尤其是在部署部分,走了很多弯路,这里写下自己的部署过程,供大家参考,也欢迎大家提出宝贵的意见. 哔 ...

  4. 码神之路博客部署教程【完整版】基于Linux的Docker部署教程非常详细

    说明 前记:最近跟着哔站码神之路做了一个SpringBoot练手项目,第一次操作碰到了很多困难和问题,尤其是在部署部分,走了很多弯路,这里写下自己的部署过程,供大家参考,也欢迎大家提出宝贵的意见. 哔 ...

  5. ASP.NET Core 实战:Linux 小白的 .NET Core 部署之路

    一.前言  最近一段时间自己主要的学习计划还是按照毕业后设定的计划,自己一步步的搭建一个前后端分离的 ASP.NET Core 项目,目前也还在继续学习 Vue 中,虽然中间断了很长时间,好歹还是坚持 ...

  6. ftp部署一个可供centos6、centos7系统使用的yum网络仓库

    今天我们讲一个小项目:使用centos6 ftp部署一个可供centos6.centos7系统使用的yum网络仓库 我们来分析一下这个项目:首先我们要先安装ftp包,开启并配置ftp服务.接着关闭并配 ...

  7. 【完整示例】采用jenkins pipeline实现自动构建并部署至k8s

    前言 在日常开发中,经常会有发布的需求,而且经常会碰到各种环境,比如:开发环境.测试环境.生产环境.虽然可以使用手动构建.上传服务器部署的方式,但在微服务架构下一个项目经常包含多个微服务的部署,如果用 ...

  8. AWS DevOps – 配合Jenkins和CodeDeploy实现代码自动化部署

    AWS DevOps – 配合Jenkins和CodeDeploy实现代码自动化部署 Amazon ElastiCache 连接至 Redis 节点 通过 AWS Command Line Inter ...

  9. Linux学习——废旧电脑再利用Ubuntu部署私有云Nextcloud

    Linux学习--废旧电脑再利用Ubuntu部署私有云Nextcloud 一.引言 最近在网络上学到如何在电脑Ubuntu系统上部署私有云Nextcloud,部署完发现相当实用,可以当作自己的私有网盘 ...

最新文章

  1. Python中正则表达式用法 重点格式以这个为准_首看_各种问题
  2. 清华学计算机的住在哪个公寓,清华附近住宿情况一览
  3. 使用QT Creator开发C++程序
  4. 采用vue-cli安装的一些注意点
  5. C++ vector中的resize,reserve,size和capacity函数讲解
  6. 树莓派IO口驱动代码的编写、微机总线地址、物理地址、虚拟地址、BCM2835芯片手册
  7. 前驱和后驱什么意思_为什么只有豪车才敢用后驱
  8. bootstrap-模态框
  9. 晨哥真有料丨你喜欢人家啊,你追求人家。你到了什么地步就该放弃了?
  10. Windows Server 8 让人有点茫然
  11. python腾训面试_Google资深工程师推荐Python面试必须要看的15个问题
  12. linux 位置参数数组,荐Linux中的shell编程Ⅱ——位置参数、数组、date和cal
  13. Struts2拦截器-MethodFilterInterceptor
  14. 大牛教你如何利用积分商城API接口对接积分商城平台
  15. python测网速_python一键测试网速
  16. jvm System.gc()说明
  17. ConTeXt TeXmacs
  18. MFC写的单人拖拉机游戏程序
  19. C笔记《C Primer Plus 6E》
  20. php20以内的勾股数,[求助]编程求100以内的所有勾股数

热门文章

  1. PL/SQL Developer跑在Oracle 64位数据库上初始化错误
  2. CSDN挑战编程——《数学问题》
  3. mysqld进程 ut_delay 占用率过高
  4. 【C++基础】STL迭代器
  5. HDU嵌入式实验课程大作业分析报告
  6. 【智能车Code review】——坡道图像与控制处理
  7. 2560介绍_炒股高手收益翻10倍,只因妙用这一招2560战法,看了都不亏了
  8. ffplay源码(版本:ffmpeg-4.2.1)
  9. web安全---浏览器解析提交数据的过程
  10. 使用宝塔部署node项目_使用宝塔面板进行项目的自动部署WebHook