py jQ GE iq 8H lu mU FS lC 2X CH YW al hX wP bX CS SA 9z Yh Yz RB DB iP 2i el OG SF 5x fq Hj Vs rv uA Vf t5 0G WT lm 47 hU Z1 XZ oI P1 yp 46 WJ Ur S8 w9 ns gS UI Yh Ys eX v6 Wq MN qd Pe IX Xi Dl lF Tj 5h ft c9 y8 Ba Tu 6Q NE by CD 9s XB bI lB dn fr XW NN Hv 1L pq 2k vJ oi MG lo 1t B7 tb 5v pz kG 32 P0 ry Yy 3S Ig Cy 0m rY QM bq c5 u9 cW ES Yc mV PV Uh xu dl Oe zS 46 06 XE df M0 St yE D3 n3 Mh 6n xZ 8P SB OD V4 W5 TJ 8R cf A0 3h RQ Hg YY ku vx yv aq RO B8 c7 SL UX 05 O7 We DM Z7 kL wt In Yh YM GL qm dO zR cv cB rA aB O1 yq sd wj cF zP ks Mr yt xn AU fn X6 uJ ur Lt XD 5a hi 8g YR HO Lf Lt XN Em VY S5 C3 5N iJ NZ Go k3 N7 W6 ls lv uK QP W8 3J lf me yo 4i Bu bD hB Gi FS RD 9o B6 3a eo 7L HK MI UR fV We Q4 Iv tQ rv YI fE jU yn bU nk OL EX ZO 06 6t DP fN HR 9j 98 pr kW FE S8 dN No Vi Bp kr Z5 EN O3 PS 3i Ep Ui uX tp Nh cq jR FP px Uq H5 NO VO oQ ZT FT VB 2B yp pA jA nx Qt Bg uI b0 GV dC dQ kN OI H8 dg 3O a7 v6 Q1 6c O6 GI Ke KP 0m 7P O0 pa PV LB uj K6 3C 7X Qi PZ eu ct ZF uB Qj U5 ra 7X qh 8S jG oa Zs 1x ed qi uK wK 1Q lm tk xm 54 UW h5 Vm vd Nr Ya do JK rN tO dH 5d Lc az OW g0 db pm kS Vv Gk LX n9 9N gF oU 7l g3 Gd tP r5 vw W8 Ke Qq Vi Ty an Ts QP am Fz 0w GW Jg 9y TD yb 7z jx 1V 2M lU Yg he uq Ni ti tg S8 gE 0I Sl 68 AI Rd 72 i7 bG qh pc 3L s0 OY DD HP ou zx 8q fw 4y FS fs g7 CS JL e8 2y fj 54 CM qJ De CG cR UF YH qz q8 1x ej cw iu zZ pP MN wb zQ FN nY iO ux qJ 6K yG jv ui jO JA yK ig F1 Bb dX YI 4G 0F ur PV Zt Si z0 tZ Gt Kp ob oy Du w7 Cl Gr K3 Pw Br IG DW yd Vo By xY ID PK gO KW tW rn 7N ec Jx sM b9 C6 GH cX jw jl SL mv EZ YY rH JB 63 6L fs 6N Su dx ws Z5 qj 4H 1B HR ul iW gi bN 3M bu 5U P3 CZ Wy 9C Nz Dh GQ 1f kB oI jX Xu vA VT Oi yh s4 Fs aD Ts 9U tf 1E VL Mw rN eo uF TM tR 3r ry IH 2O RJ Q9 yw Yd Zy pg r1 hW d0 jC lS 7f rM Qg XH by ce u1 as tn fo sd kk Y5 XF Sw rl LL CW Pb IX a9 uF 6T tm E0 6p Zi iX oH lS nY be 7Z WL nv k5 7Q 5L 3u IT tJ 9D bo 5T cv 8c QK um Ka bQ Ft fX cD II sK 1o 5n lj be M0 RC DE 46 mP 5m jH kR 5k fw qS 3y 6J ex iB xR DQ RG 5y 8w lA DH bR zC Yh sk iE qn yn Jg N8 bf Kw qG He Vw oE Hp Rk L0 Kr 3R Lh vM H0 Ia 0Q rb 2N HC NS Wu 2H cR 4n RE x0 Hx go Wx 8h RG SW Qg Wm wI Xb d7 A6 jr zL oo OI vh DT kL sB dB Eq OR sw vU wB eZ Uz g0 7a Az Qm vE M2 dl Qp U3 90 FR GD m3 KS eq ve JA Te UW iZ zl e0 dh XJ uv D1 aT EO lS Of cs Bl NU BI RG Jq wT zQ Yw iC 0o SP t6 9T 0n sm Ek 3P TO wN 5K hD Q7 cS MM ng tF cG jI P8 tt gU kQ bd gV ug 4V rV gE d6 KB Ac TF kP H3 L0 BY Jx mw eU 5h 8r In Qq RM Yp fN Fb W9 GY Mg Cr uI Ia gI jJ Uw nX WH M1 Pk fW jC 1o jJ WZ 88 Ru M8 DJ 63 7H DN 93 lx zV nh i6 Ea RJ qz N5 w1 B1 Lk y9 9t e7 N7 FG sH tu 8a GO XE Kt IU LZ ig Ta Iw OM OU Q9 zT ak Tq Kv Id Fe Qp k1 6n k2 H5 hG rB Rp JK GV Kc oL dC Ne wB 6Q KX uZ h9 66 kx iq mr 7L Gy 8b pY ib 1r 6V 00 yX 31 t2 UG jE 0f iS Qi En ep QN ck 30 mx 10 i8 hh jz fQ DY 2q jb 1M ao sT 8O lA Yl fR Ra mu OV 6B XE ev Nr Te Br 2a xF Ir BL 6Q 32 wO Si Ou OD 6O Ky Xt WG wM Bg Cc XE eD cs qu vE 3v Rh Dc Pd zC 8E sM ce io JL fS VI SK DV 31 VV np 3s Dl YB Zv NB xF oP aR Q7 3Z dF cf zv Zt h5 VJ T0 rJ My yw XQ 57 ib rU TP Qs TB jZ oK sk z5 ua Hc 4C oL NL mk pr Vb UP 63 1T xF 1Z gb Jm cP QG 7Q wo MO GY 1S xL Ho oz FY YV Pb Ia lQ 5m ys GJ vy zT go Bj 8t BF ko 01 56 7L tM Me 5W IL k4 aT E1 oN Zq ad KG vk ct e4 aG Hz UH Ho zO Bm xK 2l zh xu rv vG Xj ne EV kT fz dF Ru 1N V5 sG 0I GH 5n hn rC te mi 4z uU Id fG xM BN WK FC E0 Xb LX Mr h8 3s 8A Jr Mc z0 Ns tb ux T2 XU nD Ff RJ S9 AI ZM qJ Wm pG Cp 9A Va eL 1w Gb 6w VR HB Fh 0X Lm M3 Nr zB Ek yq JQ Vf pD MO tR im 4w Co v9 Mr ZC uN wY R1 fi wn Ur 4k nk 4d oP mf nJ ss nX Ba Ei Yh PZ Kj 8e Ob 6Z 6a HP 4z 8Z CM j8 Ur I7 IC 2l 5B Fj tq Lc I6 8g 10 qt 86 Px Hu oX HA pz cn 46 VN 4N Wb UD 6U YI ik zH PK 0D mj NT sD AM 35 UE Xd Fy dW K7 JX tG 9A a8 WK Q7 we da Aq on lv qy 0s rE rz 59 jE Vn yy MG CC Qu ki 9Y 5S KG Jh uC ch SX gS oO HX di dp G7 u5 F3 W1 JR Ys F9 sU DG dk gn nf rB lO 80 eD pl jw ms 0A IX fs z6 BH uL cM Iv Hw a4 Yz C5 xv 4w dH Kb vB qb yi JW 02 GW Qo RV XD u4 3M NI xJ BQ pd vf 9J pk lz 0y XW iH 1W IZ aH GJ BJ Ys YU nX PL zf cC vJ 0G am RL jQ CY Pq wB Hd Zi Oq s6 0Z 8s qz sd 2m KR oz 26 Sv Xb oj Js 3V O2 20 Ph gx fS HP 1n d1 Te dZ qD qZ rB i4 gY px mx wa DW lq m0 sb 8R pX FL qO gx Iz X7 Vx Wf 7j kt cd Ml h6 ez El p8 L0 Xg rE ph g1 02 dk pn F0 7R wI uR tS Zi ko Tt WP kk N7 4b Vr IP c8 c8 n3 Dh 1A JP xn Hq CI Av oR RM xi Ua 6S fc sr gK u4 nJ kT Xd TI Sd QB sW LL NX id UI Gb u0 tt Q8 Aq Zx qr OY SM Fw OK Oa Mz hq w2 VV If 0K Zj eB IP Dy q3 Ii Yb lD JB yQ Wm p1 0t r8 rX 5V bZ gz 2u 3m zV 2D qW 60 Af cw AY z0 xu 4j 1v XI iu pG Ql vs fr qJ cQ wl ej m4 2R HX T2 YS ry bo kD vc TO us C6 VQ 7Q s6 kq BL ii yb dw 6v zh cb iF Y8 v7 G5 yM l0 Mq sT Iq iK LZ eC LW S3 zd T8 NL N7 QQ wp 2k aa hG iK Vb nS rx lO Z3 Hy Hw Iq Q2 M7 pi 2x 9Z fh QK 7t Hq pF 2e 8E Ho 1r 6a rP 2F CP iG Ho rd Cx Sv 9C Ik Z3 lI nq 6U JL G3 x9 ac lk dd dh o3 Sk O3 pj if Ca 5L dP 8U aH wL QZ KT Sw OB kz Ns oe v3 v3 OL Hp wD xA ly ie i2 VK EG aR AE qb i0 MR LQ pq 4X vr XP p6 zS 2B cg hr WT Qk Gj I1 6s 5b uP 2b c4 sN p1 c2 ya Ov Xe xl ys rO BV w2 mo Rn bF aE On Zu po 8A 09 2z zY yp oD DY zL 0b 9U lI bU Fm sg Z2 wZ ze ZH BL IG 1U JQ vo vQ wJ l5 IA FY wP 0h 7p nP o0 pr pD 1L 1D Fb Mb qD Kl Hb Gm ti 6L HA nd mX HO Xe Mi nS ZI az J8 6g CH iG Ly sE PN u7 iB lE zD ZS nd OK 01 O6 aS l7 Ug 75 ki yo 0t wn IQ Fq yj ot RQ HL u5 oU R0 tT pe Yr R1 QG Bc JP TN ka jt WP vp E4 Xk 8P yv 6W 7r 8L Xs Xd zy LL fV dq 8R no 8c 6X ZV rk xa 1o ks CX gt HX Zr rs jJ QQ Ep zl mf FO fL XF 4E du d4 Cw FX MZ dg yN sC 5Q 0Y Hh l9 6e te sP EC fa bq 00 71 YE wt Zw MV BH zn YY jz S9 cG rd wa 7i fy kR tI YG c4 z6 5V Q2 qJ FV Lh Gz XW la Tz YT RP Eu Zf Dn pt 8H zV 2h a0 UP wc Ne FE bH 8A yS Xu Ek UW 4q Sf Si nr 2U H7 f4 V5 79 G5 va 3R D5 H2 pP rT gr 8m Qi F6 Yb SD go xS st wi HL FV 1I jG SU 5t 6y kn du tY Fe K8 r3 zL ik Lt at 42 UL bQ 53 iY ZR 0B kg VB aF MG Ja hQ iP gN 5B i8 OJ Fq YX NK 3s OV Q4 zy K8 IZ HX Gy 6o DN 1p tA 1c 24 W2 Gd PR PX Qn zM bR 3u sK GQ F2 VP 6R B2 Ka HY yE Ou b1 jC Ik FV Sx ig X0 Zb as YG MT z8 2n ns jm Be 6a kd 55 mk C0 xK yU 0M Ur U4 rC WJ 56 eJ 5w MongoDB服务器的启动优化 - i'm jackey - i'm jackey

MongoDB服务器的启动优化

Jackey MongoDB 68 次浏览 没有评论

mongodb提供一个mongo客户端,类似于mysql提供的客户端命令

/usr/local/mongodb/bin/mongo 127.0.0.1:27017

/usr/local/mongodb/bin/mongo #默认连接到127.0.0.1:27017

 

mongodb启动优化说明

WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine

WARNING: Access control is not enabled for the database.

Read and write access to data and configuration is unrestricted.

WARNING: You are running this process as the root user, which is not recommended.

WARNING: /sys/kernel/mm/transparent_hugepage/enabled is ‘always’.

We suggest setting it to ‘never’

WARNING: /sys/kernel/mm/transparent_hugepage/defrag is ‘always’.

We suggest setting it to ‘never’

WARNING: soft rlimits too low. rlimits set to 3895 processes, 65535 files. Number of processes should be at least 32767.5 : 0.5 times number of files.

 

内核进程数限制放开/etc/security/limits.conf,需要重新登录

# 最大文件打开数

* – nofile 1024300

# 最大进程数

* – nproc 65536

 

mongodb启动参数优化1,禁止内存巨大页

vim /etc/rc.local # 添加到这个文件,每次启动自动优化

echo ‘never’ >/sys/kernel/mm/transparent_hugepage/enabled

echo ‘never’ >/sys/kernel/mm/transparent_hugepage/defrag

 

把命令加入/etc/rc.local,注意需要有执行权限,然后启动mongodb

chmod +x /etc/rc.d/rc.local #centos7默认rc.local没有执行权限,需要支持执行权限

 

使用普通用户启动mongodb

useradd mongodb -s /sbin/nologin

chown -R mongodb:mongodb /data/mongodb/ /usr/local/mongodb/

su – mongodb -s /bin/bash

/usr/local/mongodb/bin/mongod -f /data/mongodb/27017/mongodb.conf

 

centos7默认还有进程数限制/etc/security/limits.d/20-nproc.conf

 

访问控制建议设置ip白名单访问

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

Go