ssh-keygen -t rsa -C "memo"- 在 gitlab 中添加
ssk-key内容为.ssh/id_rsa.pub文件内容 - 若
id_rsa文件是被改名的, 要在.ssh/config中添加指向说明
指向说明示例:
Host 192.168.150.162
RSAAuthentication yes
IdentityFile ~/.ssh/gitlab_rsa
ssh-keygen -t rsa -C "memo"ssk-key 内容为 .ssh/id_rsa.pub 文件内容id_rsa 文件是被改名的, 要在 .ssh/config 中添加指向说明指向说明示例:
Host 192.168.150.162
RSAAuthentication yes
IdentityFile ~/.ssh/gitlab_rsa
参考地址:https://about.gitlab.com/downloads/
sudo yum install curl policycoreutils openssh-server openssh-clients
sudo systemctl enable sshd
sudo systemctl start sshd| <?php | |
| namespace { | |
| const SWOOLE_BASE = 4; | |
| const SWOOLE_THREAD = 2; | |
| const SWOOLE_PROCESS = 3; | |
| const SWOOLE_IPC_UNSOCK = 1; | |
| const SWOOLE_IPC_MSGQUEUE = 2; | |
| const SWOOLE_IPC_PREEMPTIVE = 3; | |
| const SWOOLE_SOCK_TCP = 1; |
| <?php | |
| $extName = 'ev'; | |
| $ref = new ReflectionExtension($extName); | |
| $classes = $ref->getClasses(); | |
| $classTpl = <<<EOT | |
| class %s { | |
| %s |
| <?php | |
| use Zend\Diactoros\ServerRequest; | |
| use Zend\Diactoros\ServerRequestFactory; | |
| use Zend\Http\Request; | |
| $http = new swoole_http_server("0.0.0.0", 9501); | |
| $rootServerConfigs = array( | |
| 'DOCUMENT_ROOT' => __DIR__, | |
| ); |
| function toTreeData(rows, key = 'role_id', childKey = 'items', dataMapCallable = null) | |
| { | |
| var rootId = 0; | |
| var data = {0 : { [childKey]: [] } }; | |
| rows.forEach(function (row) { | |
| if (!data[row[key]]) { | |
| data[row[key]] = { [childKey]: [] }; | |
| } |
| <?php | |
| $a = <<<EOT | |
| Markdown table content | |
| EOT; | |
| $a = explode("\n", $a); | |
| $c = ""; | |
| $ll = []; | |
| foreach ($a as &$aa) { |
| <?php | |
| $dsn = 'mysql:dbname=test;host=192.168.66.49'; | |
| $user = 'root'; | |
| $password = ''; | |
| try { | |
| $dbh = new PDO($dsn, $user, $password); | |
| } catch (PDOException $e) { | |
| echo 'Connection failed: ' . $e->getMessage(); |
| <?php | |
| if ( array_key_exists(1, $argv) ){ | |
| $cfgServer = $argv[1]; | |
| } else { | |
| echo "ex: 'php test.php 10.0.0.0 [port]' \n"; | |
| exit; | |
| } | |
| $cfgPort = isset($argv[2]) ? $argv[2] : 23; //port, 22 if SSH |
| <?php | |
| /** | |
| * HexConvert, 16进制, 32进制, 64进制转换 | |
| * | |
| * @author xiemaomao520@163.com | |
| * | |
| * @example | |
| * <code> | |
| * echo HexConvert::hexc32('FF'); //7v |