由于早期版本的zabbix暴出漏洞,因此,今天动手手动升级zabbix到3.2.1,过程还是比较曲折的: 首先,阿里云镜像中,lamp环境是源码安装的不同路径,而zabbix3.x对它们的版本有一定要求,必须是较新的版本。后经查阅阿里的文档,知道它们装在了/alidata/server/下,启动命令 ...
分类:
其他好文 时间:
2016-10-22 00:38:48
阅读次数:
327
using UnityEngine;using System.Collections;public class MetrixTools { //全局静态方法,随机获取(返回)一种形状 public static int[,] GetRandomMetrix() { int id = Random.R ...
分类:
其他好文 时间:
2016-10-22 00:14:48
阅读次数:
307
1、安装vsftp 2、修改配置文件 保证下面3项为YES anonymous_enable=YES anon_upload_enable=YES anon_mkdir_write_enable=YES 3、设置FTP开机启动 4、设置文件夹权限 5、修改selinux配置 将SELINUX=enf ...
分类:
其他好文 时间:
2016-10-21 11:09:27
阅读次数:
175
开启codefirst迁移命令:Enable-Migrations-ContextTypeNameBlogEntitiesBlogEntities(上下文,继承DbContext的那个类)更新数据库命令:Update-Database-Verbose新增变更类文件命令:Add-MigrationAddBolgAddBolg(生成的文件名)自动数据迁移:将Configuration的AutomaticMigr..
分类:
其他好文 时间:
2016-10-21 02:05:15
阅读次数:
280
yuminstallvsftpduseradd-d/var/www-s/sbin/nologinftp3passwdftp3建立用户ftp3,并指定其家目录为/var/www,禁止登陆将anonymous_enable改为NO,阻止匿名上传将chroot_list_enable和chroot_list_file的注释去掉,阻止用户访问上级目录servicevsftpdrestartchownftp3/var/www更..
分类:
其他好文 时间:
2016-10-20 01:10:37
阅读次数:
115
systemctl命令1.什么是服务?service服务就是在系统中运行的软件,这个软件主要是对外提供某项功能,那么我们把这一类软件叫做服务2.服务管理,systemctl命令systemctlstart服务名称###开启服务stop。。。。###关闭服务restart。。。。###重启服务reload。。。。###重新加在服..
分类:
其他好文 时间:
2016-10-19 14:52:11
阅读次数:
166
Xcode7真加了两个重要的debug功能:1:Address Sanitizer: 再也不用担心 EXC_BAD_ACCESS 在项目的Scheme中Diagnostics下,选中enable address sanitizer(注意选中后Xcode会重新编译整个项目)。这样设置后,如果再出现类似 ...
分类:
其他好文 时间:
2016-10-19 07:46:51
阅读次数:
216
./configure --enable-fpm --with-pdo-mysql --enable-mbstring --with-openssl --with-gd --with-iconv=/usr/local --with-mysqli --enable-zip --prefix=/usr/ ...
分类:
Web程序 时间:
2016-10-18 02:26:33
阅读次数:
839
以下以root用户执行 1、安装: # yum install samba samba-client -y 2、设置开机启动: # systemctl enable smb.service ln -s '/usr/lib/systemd/system/smb.service' '/etc/syste ...
分类:
其他好文 时间:
2016-10-18 02:16:29
阅读次数:
263
一zabbix_server添加对Java的支持(1)zabbix添加对java的支持:zabbix_server编译时添加–enable-java[root@prx02zabbix-3.0.3]#./configure--prefix=/usr/local/zabbix--enable-server--enable-agent--with-mysql--enable-ipv6--with-net-snmp--with-libcurl--with-libxml2-..
分类:
其他好文 时间:
2016-10-17 16:34:40
阅读次数:
157