摘要:1:安装 apache2命令 sudo apt-get install apache2 php5 libapache2-mod-php52: 添加 ssl 模块 默认安装apache2后,并没enable ssl功能,查看apache2 当前enable 的模块 命令 sudo apache2ctl -M 此时输出中应不包括 ssl_module 运行 sudo a2enmod ssl 命令 使ssl模块 enable 然后 sudo /etc/init.d/apache2 force-reload 强制重新载入 此时再运行sudo apache2ctl -M 输出中应出现 ssl_modu.
阅读全文
摘要:raspberry PI 配置1:在raspberry安装snmp 客户端 sudo apt-get install snmp安装mib下载器 使oid可读 sudo apt-get install snmp-mibs-downloader edit /etc/snmp/snmp.conf and comment out the following line: mibs : 下载 mib: download-mibs2:为了本机测试,再安装 snmp 服务sudo apt-get install snmpd 编辑 edit /etc/snmp/snmpd.conf 取消这句的注释rocommu
阅读全文
摘要:#!/bin/bashftp_site=192.168.1.102username=anonymouspasswd=a@b.cnPS3='Select a destination directory: '# bash seleccd /ftpdir/scriptssudo ftp -in <<EOFopen $ftp_siteuser $username $passwdget bb.txtclosebyeEOF#sudo ftp <192.168.0.104>#user <anonymous> <a@b.cn>#get bb.tx
阅读全文