列表的赋值: ($v1, $v2, $v3) = qw(yes i am); 整个列表的引用,@操作符: @list = qw(yes i am); @none = (); @huge = (1..5).../usr/bin/perl -w $input_file = "hello.txt"; $output_file = "out.txt"; open INPUT, ">$output_file"; while( ) { chomp(); print OUTPUT ("$_!!!...@k = keys(%hash_one); @v = values(%hash_one); (2)each函数能一一遍历哈希,返回键值对,非常适合于while等循环; while(($key, $value..., "am" => 2, ); @k = keys(%hash_one); @v = values(%hash_one); print("@k\n"); print("@v\n")
列表的赋值: ($v1, $v2, $v3) = qw(yes i am); 整个列表的引用,@操作符: @list = qw(yes i am); @none = (); @huge = (1..5).../usr/bin/perl -w $input_file = "hello.txt"; $output_file = "out.txt"; open INPUT, ">$output_file"; while( ) { chomp(); print OUTPUT ("$_!!!...@k = keys(%hash_one); @v = values(%hash_one); (2)each函数能一一遍历哈希,返回键值对,非常适合于while等循环; while(($key, $value..., "am" => 2, ); @k = keys(%hash_one); @v = values(%hash_one); print("@k\n"); print("@v\n"); $key
该目录优先于已安装服务单元文件的目录。...enable nginx.service systemctl disable xinetd.service #关闭自启动服务 systemctl start nginx.service systemctl...重要的是当保存到硬盘上时这三者之间的关系不会丢失。Syslog 将不同的信息保存到不同的文件中,分析的时候很难确定哪些条目是相关的。...Show terse information about recorded boots 显示有关录制的靴子的简洁信息 -k --dmesg Show kernel message log from...-no-hostname Suppress output of hostname field 禁止输出主机名字段 -m --merge Show entries from all available
-R:递归的操作方式; -V:显示指令的版本信息; -a:列出目录中的所有文件,包括隐藏文件。...output 漂亮的输出 -m[ode] :output mode 输出模式 -f[ields] <field1,field2,......(服务详细信息) systemctl is-active httpd.service (仅显示是否 Active) 显示所有已启动的服务 chkconfig --list systemctl list-units...systemctl restart nfs-server.service # 重新启动某服务 systemctl list-units --type=service # 查看所有已启动的服务 开启防火墙...彻底关闭防火墙: sudo systemctl status firewalld.service sudo systemctl stop firewalld.service sudo
# 停止启动自启动 systemctl 禁用 nginx.service # 查看服务当前状态 systemctl 状态 nginx.service # 查看所有已启动的服务 systemctl list-units...local/nginx/sbin/nginx -V `` 关闭防火墙,或者防火墙规则就可以测试了 ```bash...| 禁止ngx_http_upstream_ip_hash_module| | –with-http_perl_module | 启用 ngx_http_perl_module| | --with-perl_modules_path...=PATH | 指定perl模块的路径| | --with-perl=PATH | 指定 perl 执行文件的路径| | --http-log-path=PATH |设置http访问日志的路径| | –... `-V`这里V是大写的,如果是小楷的`v`即`nginx -v`,则不会出现有哪些模块,结果出现`nginx`
$ nginx -v nginx version: nginx/1.12.2 上面的命令只显示版本号。 如果要查看版本并配置选项,请使用-V标志,如图所示。...) (GCC) built with OpenSSL 1.0.2k-fips 26 Jan 2017 TLS SNI support enabled configure arguments: --prefix...--with-http_degradation_module --with-http_slice_module --with-http_stub_status_module --with-http_perl_module... on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size...-l --full Don't ellipsize unit names on output -r --recursive Show unit list of host
安装和使用 统一配置环境变量,一劳永逸 把export PERL5LIB=${PERL5LIB}:~/perl5lib/加到~/.bashrc中 把export PATH=${PATH}:~/bin 加到...PERL5LIB配置:在系统中新建目录 ~/perl5lib,将其完整路径加入到环境变量。.../libexec/mysqld: Can't change dir to [Error code 13] 确保datadir的所有上层目录有x属性 若依然启动不了,在终端运行setenforce 0 关闭...-o OUTP, --output-prefix=OUTP Prefix for output files....-v, --verbose Show process information -d, --debug Debug the program
安装和使用 统一配置环境变量,一劳永逸 把export PERL5LIB=${PERL5LIB}:~/perl5lib/加到~/.bashrc中 把export PATH=${PATH}:~/bin 加到...PERL5LIB配置:在系统中新建目录 ~/perl5lib,将其完整路径加入到环境变量。.../libexec/mysqld: Can't change dir to [Error code 13] 确保datadir的所有上层目录有x属性 若依然启动不了,在终端运行setenforce 0 关闭...-o OUTP, --output-prefix=OUTP Prefix for output files....-v, --verbose Show process information -d, --debug Debug the program ```
/g" /etc/selinux/config 04、关闭防火墙: systemctl stop firewalld.service && systemctl disable firewalld.service...add-port=10050/udp --permanent firewall-cmd --set-default-zone=public firewall-cmd --complete-reload 注:如果已执行了第...python-setuptools python-devel sendmail mailx net-snmp net-snmp-devel net-snmp-utils freetype-devel libpng-devel perl...innodb_max_dirty_pages_pct = 50 innodb_max_dirty_pages_pct_lwm = 10 innodb_flush_method = O_DIRECT innodb_adaptive_hash_index...= 0 innodb_status_output_locks = 0 innodb_monitor_enable = '%' internal_tmp_disk_storage_engine = InnoDB
*/SELINUX=disabled/' /etc/selinux/config 关闭firewalld: systemctl stop firewalld && systemctl disable...enable iptables && iptables -F && service iptables save 关闭不需要的服务: systemctl stop postfix && systemctl...journald.conf.d cat > /etc/systemd/journald.conf.d/99-prophet.conf <<EOF [Journal] Storage=persistent # 持久化保存到磁盘.../start-keepalived.sh ip addr show ens160: mtu 1500 qdisc mq state...: kubeadm.k8s.io/v1beta2 bootstrapTokens: - groups: - system:bootstrappers:kubeadm:default-node-token
# 关闭 systemctl stop firewalld # 禁止开机启动防火墙 systemctl disable firewalld systemctl start docker # 启动docker...服务 systemctl stop docker # 停止docker服务 systemctl restart docker # 重启docker服务 docker -v Centos7安装DockerCompose...install git yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel yum install gcc-c++ perl-ExtUtils-MakeMaker...,只能使用已存在的用户名(默认为root)和任意密码登录。...abc: create space bxc(partition_num=15, replica_factor=1, vid_type=fixed_string(30)); 查看所有 space : show
准备环境 关闭防火墙: # systemctl stop firewalld # systemctl disable firewalld 关闭selinux: # sed -i 's/enforcing.../disabled/' /etc/selinux/config # setenforce 0 关闭swap: # swapoff -a # 临时 # vim /etc/fstab # 永久 添加主机名与...使用kubeadm创建单个Master集群 5.1 默认下载镜像地址在国外无法访问,先从准备好所需镜像 保存到脚本之间运行: K8S_VERSION=v1.11.2 ETCD_VERSION=3.2.18...DASHBOARD_VERSION=v1.8.3 FLANNEL_VERSION=v0.10.0-amd64 DNS_VERSION=1.1.3 PAUSE_VERSION=3.1 # 基本组件 docker...修改Service: kind: Service apiVersion: v1 metadata: labels: k8s-app: kubernetes-dashboard name
ServerName server_domain_or_IP 完成后保存并关闭文件。...ufw app info "Apache Full" Profile: Apache Full Title: Web Server (HTTP,HTTPS) Description: Apache v2...你可以这样输入: sudo systemctl restart apache2 我们还可以使用systemctl检查apache2服务的状态: sudo systemctl status apache2...它会给你一个简短的描述: libnet-libidn-perl - Perl bindings for GNU Libidn php-all-dev - package depending on all...为了让Apache找到并正确提供文件,必须将其保存到一个非常特定的目录,称为“web root”。 在Ubuntu 16.04中,该目录位于/var/www/html/。
如果 kubelet 版本是 v1.14 及以上,则可以通过在编译 kubelet 的时候加上 Build Tags 来关闭 kmem account: $ git clone --branch v1.14.1...Tags 来关闭,需要重新编译 kubelet,步骤如下。.../_output/dockerized/bin/$GOOS/$GOARCH/kubelet 中。 2 ....验证方法是查看新创建的 pod 的所有 container 已关闭 kmem,如果为下面结果则已关闭: $ cat /sys/fs/cgroup/memory/kubepods/burstable/pod...elfutils-devel sudo yum install pesign yum-utils zlib-devel \ binutils-devel newt-devel python-devel perl-ExtUtils-Embed
Swap分区 大家在安装CentOS7时如果配置了swap分区, 这里由于k8s禁止系统开启此功能, 需要提前进行关闭, 没有配置swap请无视....查看swap分区 free -m (已关闭状态) # free -m total used free shared buff/cache.../flannel:v0.9.1-amd64.tar docker load</root/k8s_images/docker_images/k8s-dns-dnsmasq-nanny-amd64_v1.14.7..._v1.9.0.tar docker load </root/k8s_images/docker_images/kube-scheduler-amd64_v1.9.0.tar docker load <.../root/k8s_images/docker_images/kube-proxy-amd64_v1.9.0.tar docker load </root/k8s_images/docker_images
jobs -K 结束一个漏洞运行工作 show auxiliary 显示辅助模块 use 使用辅助模块 set ...C language P Perl y Ruby R Raw, allows payload to be piped into msfencode and...: nc -lvp 4444 > output.txt传输文件(接受) attacker: nc -v 10.1.1.2 4444 < test.txt传输文件(发送) target: nc...%/repair 备份windows的hash文件: ..../john hash.txt 彩虹表: rcrack *.rt -f hash.txt 本地修改密码: mount umount /mnt/hda1 modprobe fuse ntfsmount
kvm-host ~]# cat /proc/cpuinfo | grep name | cut -d: -f2 | uniq -c #CPU型号 2 4 Intel(R) Core(TM) i5-4690K...1.4 关闭SELinux 1 [root@kvm-host ~]# vi /etc/sysconfig/selinux 2 SELINUX=disabled 二 部署KVM软件 libvirt...:操作和管理KVM虚机的虚拟化 API,使用 C 语言编写,可以由 Python,Ruby, Perl, PHP, Java 等语言调用。...virsh:基于 libvirt 的 命令行工具 (CLI) virt-Manager:基于 libvirt 的 GUI 工具 virt-v2v:虚机格式迁移工具 virt-* 工具:包括 Virt-install...2.2 设置libvirtd服务自启 1 [root@kvm-host ~]# systemctl enable libvirtd 2 [root@kvm-host ~]# systemctl
目前淘宝也正在开发相似产品 TMHA, 目前已支持一主一从....,replication client on *.* to 'slave'@'192.168.43.%' identified by 'ZHOUjian.20'; flush privileges; show...identified by 'ZHOUjian.20'; wget https://github.com/yoshinorim/mha4mysql-manager/releases/download/v0.58...0.58-0.el7.centos.noarch.rpm wget https://github.com/yoshinorim/mha4mysql-node/releases/download/v0.58...需要安装 yum install perl-DBD-MySQL perl-Config-Tiny perl-Log-Dispatch perl-Parallel-ForkManager perl-Time-HiRes
# 停止防火墙 systemctl stop firewalld # 关闭防火墙自启动 systemctl disable firewalld 禁用SELINUX 编辑文件/etc/selinux/...安装需要关闭掉swap。...:v1.23.5 k8s.gcr.io/kube-scheduler:v1.23.5 k8s.gcr.io/kube-proxy:v1.23.5 k8s.gcr.io/pause:3.6 k8s.gcr.io.../etcd:3.5.1-0 k8s.gcr.io/coredns/coredns:v1.8.6 拉取上述镜像,国内机器大概率是不能从k8s.gcr.io拉取镜像的。...v1.23.5 3c53fa8541f9 4 weeks ago 112MB k8s.gcr.io/kube-controller-manager v1.23.5 b0c9e5e4dbb1
systemctl status nginx.service # 查看所有已启动的服务 systemctl list-units --type=service # 重新启动服务 systemctl restart.../usr/local/nginx/sbin/nginx -V 关闭防火墙,或者添加防火墙规则就可以测试了 service iptables stop 或者编辑配置文件: vi /etc/sysconfig...禁用 ngx_http_upstream_ip_hash_module –with-http_perl_module 启用 ngx_http_perl_module –with-perl_modules_path...6.2、ip_hash 上面的2种方式都有一个问题,那就是下一个请求来的时候请求可能分发到另外一个服务器,当我们的程序不是无状态的时候(采用了session保存数据),这时候就有一个很大的很问题了,比如把登录信息保存到了...nginx -V 这里 V 是大写的,如果是小写的 v 即 nginx -v,则不会出现有哪些模块,只会出现 nginx 的版本。
领取专属 10元无门槛券
手把手带您无忧上云