这个类可以理解为是对query操作的描述.
final public MongoDB\Driver\Query::__construct ( array|object $filter [, array $queryOptions ] )
$filter:支持mongodb官方的所有查询操作,
详见:https://docs.mongodb.com/manual/tutorial/query-documents/
这个类可以理解为是对query操作的描述.
final public MongoDB\Driver\Query::__construct ( array|object $filter [, array $queryOptions ] )
$filter:支持mongodb官方的所有查询操作,
详见:https://docs.mongodb.com/manual/tutorial/query-documents/
这个是个对mongodb的写入性能、以及确保数据一致性的控制设置,非常重要的一个类
1、final public MongoDB\Driver\WriteConcern::__construct ( string|int $w [, integer $wtimeout [, boolean $journal ]] )
参数:$w
1:默认的writeConcern,数据写入到Primary就向客户端发送确认
0:对客户端的写入不需要发送任何确认,适用于性能要求高,但不关注正确性的场景
这个MongoDB中的操作入口类,包括了连接MongoDB服务器、write、query的操作.
final public MongoDB\Driver\Manager::__construct ( string $uri [, array $options [, array $driverOptions ]] )
这个类可以理解为是一个搜集类,从类名中也可以提现,bulk在有道中的释义“使扩大”。该类可以将insert(写)、update(更新)、delete(删除)的多条操作收集后,发送给
MongoDB\Driver\Manager::executeBulkWrite()使用。
1、下载地址:http://php.net/downloads.php
2、configure的配置如下:
./configure –prefix=/usr/local/php7 -with-config-file-path=/usr/local/php7/etc -with-mcrypt=/usr/local/libmcrypt -with-mysqli=mysqlnd -with-pdo-mysql=mysqlnd -with-gd -with-iconv -with-zlib -enable-xml -enable-bcmath -enable-shmop -enable-sysvsem -enable-inline-optimization -enable-mbregex -enable-fpm -enable-mbstring -enable-ftp -enable-gd-native-ttf -with-openssl -enable-pcntl -enable-sockets -with-xmlrpc -enable-zip -enable-soap -without-pear -with-gettext -enable-session -with-curl -with-jpeg-dir -with-freetype-dir -enable-opcache –with-readline
编译PHP8:
./configure –prefix=/usr/local/php8 –with-config-file-path=/usr/local/php8/etc –with-mysqli=mysqlnd –with-pdo-mysql=mysqlnd –with-iconv –with-zlib –enable-xml –enable-bcmath –enable-shmop –enable-sysvsem –enable-mbregex –enable-fpm –enable-mbstring –enable-ftp –with-openssl –enable-pcntl –enable-sockets –enable-soap –without-pear –with-gettext –enable-session –with-curl –enable-opcache –with-readline –enable-cgi
–enable-pdo –with-mhash
1、查看已安装的PHP
rpm -qa | grep php
2、使用rpm -e 逐个删除
http://rpms.remirepo.net/enterprise/7.2/php71/x86_64/repoview/
1、** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is ‘always’.
** We suggest setting it to ‘never’
1、启动、停止、关闭网络服务
systemctl retart network.service 或 systemctl restart network systemctl start network.service 或 systemctl start network systemctl stop network.service 或 systemctl stop network
1、[2016-11-19T03:22:22,188][WARN ][o.e.b.BootstrapCheck ] [4Ut8v_1] max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
配置文件路径:config/jvm.options
举例说明:
这个使整个html文档(web页面)布局更清晰,类似于header、footer、section、nav、aside、article、dialog、mark、time等
补充:contenteditable=”true” ,好用,点赞
参考:HTML 5 的教程