面对这样的问题,为了项目的组装,一台2015年的老MacBook Pro上没有足够的磁盘。
我想到了一个外部驱动器,但到目前为止我找不到有关如何更正确地连接它的信息 - 我希望外部硬盘驱动器作为当前文件系统的一部分工作。
也许有人有链接或遇到过类似的链接怎么办?
面对这样的问题,为了项目的组装,一台2015年的老MacBook Pro上没有足够的磁盘。
我想到了一个外部驱动器,但到目前为止我找不到有关如何更正确地连接它的信息 - 我希望外部硬盘驱动器作为当前文件系统的一部分工作。
也许有人有链接或遇到过类似的链接怎么办?
遇到这样的问题。
在 Jenkins 的帮助下,我们构建了工件 - 这里一切都很好,然后我们需要将它上传到 Nexus
接下来,在 Nexus 上,我删除了旧的工件:
curl -u {user}:{password} -X DELETE https://path.repos/repos/new/filename.zip
并上传一个新的工件
curl -u {user}:{password} --upload-file filename.zip https://path.repos/repos/new/filename.zip
但是有以下问题,在成功上传到 nexus 后 - 我启动了下一步的部署 - 这会拉出这个非常工件 - 这里出现的问题是在删除之前下载的 ARTIFACT(甚至可能被删除多次) IE。有某种缓存-首先使用。
试图做
curl -u {user}:{password} -X DELETE --silent https://path.repos/repos/new/filename.zip
它也没有帮助......我怎样才能摆脱这个?- 你不能爬到关系的引擎盖下;
有一个任务要进行轮换(例如,每周一次)或当日志大小达到 50mb 时
经过一番谷歌搜索,我没有找到最佳解决方案,旋转每 X 次抽动一次表冠。
伙计们,我无法决定以哪种方式接近
重命名文件夹中所有文件的任务
> file.txt -> file.new.txt
> file space.txt -> file space.new.txt
> file.txt.txt.txt -> file.txt.txt.new.txt
> FILE.TXT -> FILE.new.txt
有一个解决方案涵盖了除最后两个之外的所有内容,正如我试图做的那样,它已经误入歧途......
在 bash
find . -iname "*.txt" -print0 | while read -d $'\0' file
do
res=${file/'.txt'/'.new.txt'}
cp '$file' '$res'
done
OpenDKIM 使用本机配置的 Postfix 邮件服务器进行签名
有一个任务我不知道该做什么了.. 任务: - 有 2 个域 example.com example.net - 两者都由我的 postfix 提供服务(我还提出了我自己的本地 dns) DKIM 配置在example.com - 从 example.com 发送邮件时 - 创建签名 如何确保检查相同的字母...
opendkim 配置:
AutoRestart Yes
AutoRestartRate 10/1h
PidFile /var/run/opendkim/opendkim.pid
Mode sv
Syslog yes
SyslogSuccess yes
LogWhy yes
UserID opendkim:opendkim
Socket inet:8891@localhost
Umask 022
Canonicalization relaxed/relaxed
Selector default
MinimumKeyBits 1024
KeyFile /etc/postfix/dkim/mail.example.com.private
KeyTable /etc/postfix/dkim/keytable
SigningTable refile:/etc/postfix/dkim/signingtable
签署信件 - 但不检查 从外面我无法发送信件,原因很明显
其实macbook命令长寿,所以我把它放在老山毛榉,Linux Mint上
自行安装 Ruby 和 Rails
该项目创建良好,但在尝试运行后,我们得到以下信息(大量行)
rails aborted!
Bundler::GemRequireError: There was an error while trying to load the gem 'uglifier'.
Gem Load Error is: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.
Backtrace for gem load error is:
/home/andrey/.rvm/gems/ruby-2.3.0/gems/execjs-2.7.0/lib/execjs/runtimes.rb:58:in `autodetect'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/execjs-2.7.0/lib/execjs.rb:5:in `<module:ExecJS>'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/execjs-2.7.0/lib/execjs.rb:4:in `<top (required)>'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/uglifier-3.0.1/lib/uglifier.rb:5:in `require'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/uglifier-3.0.1/lib/uglifier.rb:5:in `<top (required)>'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:86:in `require'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:86:in `block (2 levels) in require'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:81:in `each'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:81:in `block in require'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:70:in `each'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:70:in `require'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler.rb:102:in `require'
/home/andrey/railsnew/omg/config/application.rb:7:in `<top (required)>'
/home/andrey/railsnew/omg/Rakefile:4:in `require_relative'
/home/andrey/railsnew/omg/Rakefile:4:in `<top (required)>'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/lib/rake/rake_module.rb:28:in `load'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/lib/rake/application.rb:686:in `raw_load_rakefile'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/lib/rake/application.rb:96:in `block in load_rakefile'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/lib/rake/application.rb:178:in `standard_exception_handling'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/lib/rake/application.rb:95:in `load_rakefile'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/commands/rake_proxy.rb:12:in `block in run_rake_task'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/lib/rake/application.rb:178:in `standard_exception_handling'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/commands/rake_proxy.rb:10:in `run_rake_task'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:51:in `run_command!'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>'
/home/andrey/railsnew/omg/bin/rails:9:in `require'
/home/andrey/railsnew/omg/bin/rails:9:in `<top (required)>'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/client/rails.rb:28:in `load'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/client/rails.rb:28:in `call'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/client/command.rb:7:in `call'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/client.rb:30:in `run'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/bin/spring:49:in `<top (required)>'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/binstub.rb:11:in `load'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/binstub.rb:11:in `<top (required)>'
/home/andrey/railsnew/omg/bin/spring:13:in `require'
/home/andrey/railsnew/omg/bin/spring:13:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Bundler Error Backtrace:
/home/andrey/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:89:in `rescue in block (2 levels) in require'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:85:in `block (2 levels) in require'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:81:in `each'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:81:in `block in require'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:70:in `each'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:70:in `require'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler.rb:102:in `require'
/home/andrey/railsnew/omg/config/application.rb:7:in `<top (required)>'
/home/andrey/railsnew/omg/Rakefile:4:in `require_relative'
/home/andrey/railsnew/omg/Rakefile:4:in `<top (required)>'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/lib/rake/rake_module.rb:28:in `load'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/lib/rake/application.rb:686:in `raw_load_rakefile'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/lib/rake/application.rb:96:in `block in load_rakefile'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/lib/rake/application.rb:178:in `standard_exception_handling'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/lib/rake/application.rb:95:in `load_rakefile'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/commands/rake_proxy.rb:12:in `block in run_rake_task'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/lib/rake/application.rb:178:in `standard_exception_handling'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/commands/rake_proxy.rb:10:in `run_rake_task'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:51:in `run_command!'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>'
/home/andrey/railsnew/omg/bin/rails:9:in `require'
/home/andrey/railsnew/omg/bin/rails:9:in `<top (required)>'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/client/rails.rb:28:in `load'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/client/rails.rb:28:in `call'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/client/command.rb:7:in `call'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/client.rb:30:in `run'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/bin/spring:49:in `<top (required)>'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/binstub.rb:11:in `load'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/binstub.rb:11:in `<top (required)>'
/home/andrey/railsnew/omg/bin/spring:13:in `require'
/home/andrey/railsnew/omg/bin/spring:13:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.
/home/andrey/.rvm/gems/ruby-2.3.0/gems/execjs-2.7.0/lib/execjs/runtimes.rb:58:in `autodetect'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/execjs-2.7.0/lib/execjs.rb:5:in `<module:ExecJS>'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/execjs-2.7.0/lib/execjs.rb:4:in `<top (required)>'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/uglifier-3.0.1/lib/uglifier.rb:5:in `require'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/uglifier-3.0.1/lib/uglifier.rb:5:in `<top (required)>'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:86:in `require'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:86:in `block (2 levels) in require'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:81:in `each'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:81:in `block in require'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:70:in `each'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:70:in `require'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler.rb:102:in `require'
/home/andrey/railsnew/omg/config/application.rb:7:in `<top (required)>'
/home/andrey/railsnew/omg/Rakefile:4:in `require_relative'
/home/andrey/railsnew/omg/Rakefile:4:in `<top (required)>'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/lib/rake/rake_module.rb:28:in `load'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/lib/rake/rake_module.rb:28:in `load_rakefile'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/lib/rake/application.rb:686:in `raw_load_rakefile'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/lib/rake/application.rb:96:in `block in load_rakefile'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/lib/rake/application.rb:178:in `standard_exception_handling'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/lib/rake/application.rb:95:in `load_rakefile'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/commands/rake_proxy.rb:12:in `block in run_rake_task'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/rake-11.2.2/lib/rake/application.rb:178:in `standard_exception_handling'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/commands/rake_proxy.rb:10:in `run_rake_task'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/commands/commands_tasks.rb:51:in `run_command!'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/railties-5.0.0.1/lib/rails/commands.rb:18:in `<top (required)>'
/home/andrey/railsnew/omg/bin/rails:9:in `require'
/home/andrey/railsnew/omg/bin/rails:9:in `<top (required)>'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/client/rails.rb:28:in `load'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/client/rails.rb:28:in `call'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/client/command.rb:7:in `call'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/client.rb:30:in `run'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/bin/spring:49:in `<top (required)>'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/binstub.rb:11:in `load'
/home/andrey/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/binstub.rb:11:in `<top (required)>'
/home/andrey/railsnew/omg/bin/spring:13:in `require'
/home/andrey/railsnew/omg/bin/spring:13:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
gem 文件中的实际代码
GEM
remote: https://rubygems.org/
specs:
actioncable (5.0.0.1)
actionpack (= 5.0.0.1)
nio4r (~> 1.2)
websocket-driver (~> 0.6.1)
actionmailer (5.0.0.1)
actionpack (= 5.0.0.1)
actionview (= 5.0.0.1)
activejob (= 5.0.0.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 2.0)
actionpack (5.0.0.1)
actionview (= 5.0.0.1)
activesupport (= 5.0.0.1)
rack (~> 2.0)
rack-test (~> 0.6.3)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (5.0.0.1)
activesupport (= 5.0.0.1)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
activejob (5.0.0.1)
activesupport (= 5.0.0.1)
globalid (>= 0.3.6)
activemodel (5.0.0.1)
activesupport (= 5.0.0.1)
activerecord (5.0.0.1)
activemodel (= 5.0.0.1)
activesupport (= 5.0.0.1)
arel (~> 7.0)
activesupport (5.0.0.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
minitest (~> 5.1)
tzinfo (~> 1.1)
arel (7.1.1)
builder (3.2.2)
byebug (9.0.5)
coffee-rails (4.2.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.2.x)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.10.0)
concurrent-ruby (1.0.2)
debug_inspector (0.0.2)
erubis (2.7.0)
execjs (2.7.0)
ffi (1.9.14)
globalid (0.3.7)
activesupport (>= 4.1.0)
i18n (0.7.0)
jbuilder (2.6.0)
activesupport (>= 3.0.0, < 5.1)
multi_json (~> 1.2)
jquery-rails (4.1.1)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
listen (3.0.8)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.4)
mime-types (>= 1.16, < 4)
method_source (0.8.2)
mime-types (3.1)
mime-types-data (~> 3.2015)
mime-types-data (3.2016.0521)
mini_portile2 (2.1.0)
minitest (5.9.0)
multi_json (1.12.1)
nio4r (1.2.1)
nokogiri (1.6.8)
mini_portile2 (~> 2.1.0)
pkg-config (~> 1.1.7)
pkg-config (1.1.7)
puma (3.6.0)
rack (2.0.1)
rack-test (0.6.3)
rack (>= 1.0)
rails (5.0.0.1)
actioncable (= 5.0.0.1)
actionmailer (= 5.0.0.1)
actionpack (= 5.0.0.1)
actionview (= 5.0.0.1)
activejob (= 5.0.0.1)
activemodel (= 5.0.0.1)
activerecord (= 5.0.0.1)
activesupport (= 5.0.0.1)
bundler (>= 1.3.0, < 2.0)
railties (= 5.0.0.1)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.1)
activesupport (>= 4.2.0, < 6.0)
nokogiri (~> 1.6.0)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
railties (5.0.0.1)
actionpack (= 5.0.0.1)
activesupport (= 5.0.0.1)
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (11.2.2)
rb-fsevent (0.9.7)
rb-inotify (0.9.7)
ffi (>= 0.5.0)
sass (3.4.22)
sass-rails (5.0.6)
railties (>= 4.0.0, < 6)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
spring (1.7.2)
spring-watcher-listen (2.0.0)
listen (>= 2.7, < 4.0)
spring (~> 1.2)
sprockets (3.7.0)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.1.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.3.11)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.5)
turbolinks (5.0.1)
turbolinks-source (~> 5)
turbolinks-source (5.0.0)
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (3.0.1)
execjs (>= 0.3.0, < 3)
web-console (3.3.1)
actionview (>= 5.0)
activemodel (>= 5.0)
debug_inspector
railties (>= 5.0)
websocket-driver (0.6.4)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.2)
PLATFORMS
ruby
DEPENDENCIES
byebug
coffee-rails (~> 4.2)
jbuilder (~> 2.5)
jquery-rails
listen (~> 3.0.5)
puma (~> 3.0)
rails (~> 5.0.0, >= 5.0.0.1)
sass-rails (~> 5.0)
spring
spring-watcher-listen (~> 2.0.0)
sqlite3
turbolinks (~> 5)
tzinfo-data
uglifier (>= 1.3.0)
web-console
BUNDLED WITH
1.12.5