在Linux上: vim hello-world.rb puts 'Hello world' 让后执行ruby hello-world.rb 或者直接命令行执行: ruby -e "puts 'hell'"