CentOS6 だとlocateがないと言われる。
そういう場合は、
yum install mlocate
でインストールできる。
またインストールしたあとに最初にlocate xxxを実行すると
def is_prime_number(num) | |
return false if num < 2 || num % 2 == 0 | |
3.step(Math.sqrt(num), 2) { |i| | |
return false if num % i == 0 | |
} | |
true | |
end |
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
func main() { | |
r := F([]int{1, 2, 3, 4, 5}).Map(func(x int) int { return x + 1 }) | |
fmt.Println("result=" + fmt.Sprint(r)) |
openssl genrsa 2048 > server.key | |
openssl req -new -key server.key -subj '/C=JP/ST=###/L=###/O=###/OU=###/CN=###' -out server.csr | |
openssl x509 -days 3650 -req -signkey server.key < server.csr > server.crt |
CentOS6 だとlocateがないと言われる。
そういう場合は、
yum install mlocate
でインストールできる。
またインストールしたあとに最初にlocate xxxを実行すると
#!/bin/bash | |
case $1 in | |
"a" ) SS=100;; | |
"b" ) SS=101;; | |
"c" ) SS=102;; | |
"d" ) SS=103;; | |
"e" ) SS=104;; | |
* ) SS=$1;; | |
esac |