02 2020 档案
摘要:代码: <?phpfunction show($i,$j,$s){ #$s就是回调参数 return $s($i+$j);}function sum($a,$b){ return $a+$b;}echo show(1,2,'sum');?> //注释 $i=1,$j=2,$s=sum //传入参数到
阅读全文
摘要:Note:如果网络正常,apache服务正常,仍然不能访问网页。需要检查linux 防火墙是否关闭。 ( 先重新启动防火墙 service iptables start 然后输入配置防火墙的命令并查看配置后的防火墙策略 iptables -I INPUT -p TCP --dport 80 -j A
阅读全文
摘要:将之前的CentOS-Base.repo文件里的内容换成如下内容 vi /etc/yum.repos.d/CentOS-Base.repo # CentOS-Base.repo## The mirror system uses the connecting IP address of the cli
阅读全文
摘要:for gz 1.制作压缩包 [root@192 mnt]# tar czf mydir.tar.gz mydir1/ 2.解压gz 压缩包 [root@192 mnt]# tar xvf mydir.tar.gz 3.查看压缩包内容 [root@192 mnt]# tar tf mydir.tar
阅读全文
摘要:步骤: 1.激活cockpit服务 2.启动cockpit 3.查看cockpit服务是否启动 4.浏览器访问http://192.168.1.10:9090(用户名root,密码123) 5.查看系统监控信息
阅读全文
摘要:ubuntu13.10 步骤: 1.官网下载webbech: http://soft.vpser.net/test/webbench/webbench-1.5.tar.gz 2.解压安装 tar zxvf webbench-1.5.tar.gz make make install 3.如果步骤2失败
阅读全文
摘要:操作系统:win7 虚拟机:Virtual box with Ubuntu13.10 WEB服务器: Nginx WEB服务器发布目录:/usr/local/nginx/html/c 测试文件:list.txt 步骤: 1.新建一个shell脚本文件auto_html.sh.编辑内容如下: #!/b
阅读全文
摘要:步骤: ubuntu :13.10(32bit) -->i586 jdk 1.7 安装JDK 步骤: 1.官网下载如下图: 2.点击java SE7,下载jdk1.7 3.点击接受,并下载对应的版本 4. 解压文件 5.重命名jdk为jdk1.7 1.进入官网下载tomcat8.5 2.把下载的文件
阅读全文
摘要:1.启动Nginx root@bing-VirtualBox:/home/bing/nginx-1.6.2# /usr/local/nginx/sbin/nginx -s reload 2.停止Nginx 3.强制停止 Nginx 4.查看Nginx进程号 5.
阅读全文
摘要:1.load sdk shell ./auto_load_user.sh 2.查看all端口状态 IVM:0>ifcs show devport 3.查看个别端口状态 IVM:0>ifcs show devport 6 4.enable/disable 端口 IVM:0>port enable 1-
阅读全文
摘要:1.查看端口link状态 BCM.0>ps 2.查看vlan BCM.0>vlan show 3.查看pvlan BCM.0>pvlan show 4.CPU发包 BCM.0>tx 1000 pbm=ce0 vlan=1 length=512 sm=0x001122334455 dm=0x0xfff
阅读全文
摘要:What is Issue Management? Issue Management is the process to make others aware of the problem and then resolve it as fast as possible To understand th
阅读全文
摘要:What is Bug? A bug is the consequence/outcome of a coding fault What is Defect? A defect is a variation or deviation from the original business requir
阅读全文
摘要:1.echo -n > test.log #-n选项可以去掉空行 2.cat /dev/null > test.log 3.truncate -s 0 test.log
阅读全文
摘要:1.remote access control powerIpmitool -I lanplus -H 192.168.0.10 -U username -P Password chassis power offIpmitool -I lanplus -H 192.168.0.10 -U usern
阅读全文
摘要:步骤: 1.vi打开/etc/network/interfaces 2.手动添加static ip address 3.:wq保存退出 4.重启网络 service network-manager restart(1.service network restart失败,不生效 2./etc/init
阅读全文
摘要:步骤: 首先确保网络连接是ok,网络连接方式"桥接“,手动配置 ip 192.168.1.9,和主机是同一网段 1.检查当前有没有安装openssh-server(已安装) 2. 安装openssh-server(如安装,跳过这一步) 3.再次尝试进行ssh连接,此时应该能够连接成功,但是无法使用r
阅读全文
摘要:步骤: 1>设置网络连接方式,NAT 2>自动获取ip address 10.0.2.15 3>更新源soureces.list soureces.list deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe m
阅读全文
摘要:步骤: 1>cd /mnt 2> ./VBoxLinuxAdditions.run 3>设置共享文件夹share 4>访问共享文件夹cd /media/sf_share note: 只有安装增强功能,共享文件夹才可以用
阅读全文
浙公网安备 33010602011771号