如果登陆失败,请检查ssh配置文件(/etc/ssh/sshd_config)中的PubkeyAuthentication是否为yes。
如果验证成功的话就可以关闭密码登陆方式了,编辑/etc/ssh/sshd_config,将PasswordAuthentication改为no,
ChallengeResponseAuthentication改为no,不过需要重启sshd(service sshd restart)后才能生效。
rbenv sudo unicorn_rails -c config/unicorn1.rb -D -E production | |
ps aux | grep unicorn | awk '{print $2}' | sudo xargs kill -s 9 | |
RAILS_ROOT = File.expand_path("../..", __FILE__) | |
worker_processes Integer(ENV["WEB_CONCURRENCY"] || 3) | |
timeout 240 |
#mm/dd/yyyy | |
function checkdateformat(date) { | |
var dateformat = /^(0?[1-9]|[12][0-9]|3[01])[\/\-](0?[1-9]|1[012])[\/\-]\d{4}$/; | |
if(date.match(dateformat)){ | |
var splitdate= date.split('/'); | |
var dd = parseInt(splitdate[0]); | |
var mm = parseInt(splitdate[1]); | |
var yy = parseInt(splitdate[2]); |
如果登陆失败,请检查ssh配置文件(/etc/ssh/sshd_config)中的PubkeyAuthentication是否为yes。
如果验证成功的话就可以关闭密码登陆方式了,编辑/etc/ssh/sshd_config,将PasswordAuthentication改为no,
ChallengeResponseAuthentication改为no,不过需要重启sshd(service sshd restart)后才能生效。
brew install app | |
brew uninstall app | |
brew uninstall neovim --force | |
brew prune | |
brew info app | |
brew list | |
brew update |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install Oracle-java8-installer | |
完成之后可以通过以下命令来查看版本: | |
javac -version |
gzip on; | |
gzip_disable "msie6"; | |
gzip_comp_level 6; | |
gzip_min_length 1100; | |
gzip_buffers 16 8k; | |
gzip_proxied any; | |
gzip_types | |
text/plain | |
text/css |