Skip to content

linux

鍒犻櫎杩囨湡鐨刲inux鍐呮牳

寤変环vps鐨勭‖鐩樼┖闂村嚑涔庨兘寰堝皬锛岀湡姝f湁浠峰肩殑鏄偅涓浐瀹歩p銆 浣嗘槸澶氭鍗囩骇鍐呮牳涔嬪悗锛屼細娈嬬暀鑻ュ共宸ㄥぇ鐨勫唴鏍告枃浠讹紝鍑犱箮姣棤鐢ㄥ銆傛垜宸茬粡鎳掑緱鑷繁鍔ㄦ墜鍐欒剼鏈紝浜庢槸闅忔墜涓鎼滐紝鎵惧埌涓涓剼鏈紝鍙互鑷姩鍒犻櫎涓嶇敤鐨勫唴鏍告枃浠躲 sudo apt install byobu sudo purge-old-kernels 鍏ㄥ墽缁堬紒

slowdown 椋庢毚

鏄ㄥぉ鏅氫笂锛寃ordpress缃戠珯绐佺劧鏄剧ず涓嶅嚭鍥剧墖鏉ャ 绱фュ皢鎵鏈夋彃浠跺仠鎺夛紝閲嶆柊鎭㈠浜嗕竴閬嶏紝鍥剧墖鍙互鏄剧ず浜嗐備絾鏄綉绔欏法鎱紝绛夊緟鏃堕棿浠1绉掑欢杩熷埌20绉掞細 褰撴櫄鍚勭璋冭瘯鏃犳晥銆傛棭鏅ㄧ户缁皟璇曘備紭鍖杗ginx, mysql, php锛岄兘娌′粈涔堟晥鏋溿傛渶鍚庡畾浣嶅湪php-fpm涓婏紝鍥犱负闈欐侀〉闈㈣皟鐢ㄦ椂闂村彧鏈200ms锛岃屼竴涓猵hpinfo()灏辫4-5绉掋 闅忔墜涓婄綉涓鏌ワ紙椤轰究璇翠竴涓嬶紝鎴戠幇鍦ㄥ凡缁忎笉鐢╣oogle浜嗭紝缂虹渷鎼滅储寮曟搸鏄痙uckduckgo), 鏈変汉鎸囧嚭杩欎笉鏄痯hp-fpm鐨勯棶棰橈紝鑰屾槸dns瑙f瀽鐨勯棶棰橈細 鏈変簺璧勬簮鐨刣ns瑙f瀽鏈夐棶棰橈紝绯荤粺瀹氫綅鍒颁竴涓敊璇殑璧勬簮涓婏紝鎶ラ敊锛岀劧鍚庡洖鍒扮己鐪佸硷紝鍙堟姤閿欙紝杩欐牱鍙嶅寰幆閫犳垚鐨勩 瑙e喅鏂规鏄湪hosts鏂囦欢涓姞涓 127.0.0.1 eddyemma.com 璇曠潃鍋氫簡涓涓嬶紝浼间箮鏋滅劧娓呯悊浜嗘暎甯冨湪澶栫殑dns缂撳瓨锛岀綉绔欑珛鍒诲氨蹇簡璧锋潵锛 鎯宠鎭㈠鍒颁粠鍓嶆參鐨勬牱瀛愶紝灞呯劧涓嶅彲寰椾簡銆 浠旂粏鎯虫兂锛屽墠鍑犲ぉ鏂伴儴缃蹭簡涓鍙癲ns鏈嶅姟鍣紝闅忔墜灏嗗煙鍚嶈涓轰簡eddyemma.com锛岀劧鍚庝慨鏀逛簡host璁板綍鍜孉璁板綍锛岀劧鍚庡氨蹇樿浜嗐傝繖绠楁槸no zuo no die鍚с

鍗囩骇CentOS鍐呮牳鈥斺擶ireguard

  • by
  • IT

鏈杩戝繖鐫wireguard鐨勯厤缃 濡傛灉浣跨敤VPS锛岄偅涔堝厛鍐虫潯浠舵槸锛氬唴鏍哥増鏈>3.10鐨凨VM铏氭嫙鏈恒 棣栧厛锛孫penVZ鐨勮櫄鎷熸満鏄笉琛岀殑銆傚洜涓哄叡浜唴鏍镐笉鑳芥敼鍙樸傛墍浠ヨ嚦灏戦渶瑕並VM鐨勮櫄鎷熸満銆 鍏舵锛屽唴鏍哥増鏈皬浜庣瓑浜3.10涓嶈锛屽洜涓烘棤娉曡杞絯ireguard妯″潡銆 涓嶅垢鐨勬槸锛孋entOS灏变娇鐢ㄧ殑鍙よ佺殑3.10鍐呮牳锛屽摢鎬旵entOS 7涔熶竴鏍枫備簬鏄紝瀹夎鏃剁郴缁熶細鎶ュ憡锛 RTNETLINK answers: Operation not supported 鎵浠ワ紝涓嶅緱涓嶈繘琛屽唴鏍稿崌绾с 浠巈lrepo鍗囩骇鐨勫懡浠ゅ涓嬶細 sudo rpm –import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org sudo rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm sudo yum –enablerepo=elrepo-kernel install… Read More »鍗囩骇CentOS鍐呮牳鈥斺擶ireguard

WireGuard VPN

鑺变簡涓ゅぉ鏃堕棿閰嶇疆wireguard VPN銆傛妸鐢熶骇鏈嶅姟鍣ㄦ悶姝昏繃涓娆★紝鎶奦PS鎼炴浜嗕竴涓や釜銆備笉杩囨渶鍚庢荤畻鏄氫簡銆 鍙傝冪殑杩欑瘒鏂囩珷wireguard vpn typical setup. 鏈夋椂闂村啀鏉ュ啓鏀荤暐銆 wireguard 姝e湪杩涘叆Linux鍐呮牳銆傝繖鏄繀椤绘悶瀹氱殑鎶鏈憖銆

Down for stupid

涓嶈鐢ㄨ繍琛屾満鍋氭祴璇曪紝涓嶉亷鏄父璀樿屽凡銆 浣嗘槸锛屽彟涓鍊嬪父璀樹篃寰堥噸瑕侊細涓嶈鍦ㄧ潯瑕哄墠鍋氶噸瑕佹焙瀹氥 濡傛灉鍏╂閮界姱浜嗭紝绲愭灉灏辨槸锛 鐫¤璧蜂締涓鐪嬶紝鏈嶅嫏鍣ㄧ暥姗6鍊嬪皬鏅傘傚洜鐐虹潯鍓嶅湪閬嬭鏈嶅嫏鍣ㄤ笂瑾胯│浜嗕竴鍊嬫湇鍕欍 瓒曠穵铏曠悊锛岃伅绻紝娓│锛屼絾鏄倓鏄附鍏辩暥姗7灏忔檪浠ヤ笂銆 鏁欒〒娣卞埢鍛锛佷竴骞寸殑濂栭噾閮芥墸瀹屼簡銆 PingdomAlert UP: Eddyemma (eddyemma.com) is UP again at 03/16/2018 07:39:52 AM, after 7h 5m of downtime.

Clarity

鍙兘鎴戠殑鑱屼笟鐢熸动閲岋紝灏卞彧鍐欒繃涓や釜绋嬪簭銆備竴涓槸涓轰簡璐靛窞閾濆巶鍐欑殑钂稿彂鍣ㄦ晠闅滆瘖鏂郴缁燂紝涓涓槸涓轰簡灏忕尗婕吉鍐欑殑鍓戜緺鎯呯紭鑷姩缁冪骇鎵撴悎鎴愮巹鏅惰嚜鍔ㄤ氦鏄撶郴缁熴 瑕佽寮鍙戠綉绔欙紝杩樻槸鍦1999骞村紑鍙戠綉涓婅В鏀剧鐨勬椂鍊欍傜幇鍦ㄧ殑鎶鏈拰褰撴椂鐨勬妧鏈病鏈変换浣曠浉浼间箣澶勶紝鍩烘湰涓婃槸鎺ㄥ掗噸鏉ヤ簡銆 ******************************************** 涓轰簡Clarity锛屾渶杩戦噸璧风倝鐏躲傝繃绋嬪涓嬶細 鍏堝幓GoDaddy涔颁簡涓涓煙鍚嶏紝绗竴骞村彧瑕0.99缇庡厓銆傜劧鍚庨『鎵嬩粠GoDaddy鐨凞NS鎸囧悜鎴戠殑VPS锛屼篃鏄0.99缇庡厓锛屼絾鏄湀浠樸 鐒跺悗涓奵loud.atlantic.net, 閲嶅仛浜嗙郴缁熶负debian 8.3銆 SSH涓婂幓锛屽厛鍦/etc/apt/sources.list 閲屽姞涓婁竴琛岋細 deb http://ftp.debian.org/debian jessie-backports main 鐒跺悗 apt-get update. 鎺ョ潃灏辫LAMP锛屽叏閮ㄧ己鐪侀厤缃 鐒跺悗鍘 https://certbot.eff.org/#debianjessie-apache 閫夋嫨debian+apache 鐨勫厤璐筯ttps璁よ瘉鏈嶅姟銆 鎺ヤ笅鏉ワ紝瀹夎vsftpd. 鍒涘缓涓涓猣tp璐﹀彿锛歟ddy 鍦╤ome/eddy涓,… Read More »Clarity

鎶鏈腑鎬

1Cor. 10:23 鍑′簨閮藉彲琛岋紝浣嗕笉閮芥湁鐩婂銆傚嚒浜嬮兘鍙锛屼絾涓嶉兘閫犲氨浜恒 24 鏃犺浣曚汉锛屼笉瑕佹眰鑷繁鐨勭泭澶勶紝涔冭姹傚埆浜虹殑鐩婂銆 25 鍑″競涓婃墍鍗栫殑锛屼綘浠彧绠″悆锛屼笉瑕佷负鑹績鐨勭紭鏁呴棶鐢氫箞璇濓紝 26 鍥犱负鍦板拰鍏朵腑鎵鍏呮弧鐨勯兘灞炰箮涓汇 27 鍊樻湁涓涓笉淇$殑浜鸿浣犱滑璧村腑锛屼綘浠嫢鎰挎剰鍘伙紝鍑℃憜鍦ㄤ綘浠潰鍓嶇殑锛屽彧绠″悆锛屼笉瑕佷负鑹績鐨勭紭鏁呴棶鐢氫箞璇濄 28 鑻ユ湁浜哄浣犱滑璇达細杩欐槸鐚繃绁殑鐗╋紝灏辫涓洪偅鍛婅瘔浣犱滑鐨勪汉锛屽苟涓鸿壇蹇冪殑缂樻晠涓嶅悆銆 29 鎴戣鐨勮壇蹇冧笉鏄綘鐨勶紝涔冩槸浠栫殑銆傛垜杩欒嚜鐢变负鐢氫箞琚埆浜虹殑鑹績璁烘柇鍛紵 30 鎴戣嫢璋㈡仼鑰屽悆锛屼负鐢氫箞鍥犳垜璋㈡仼鐨勭墿琚汉姣佽挨鍛紵 31 鎵浠ワ紝浣犱滑鎴栧悆鎴栧枬锛屾棤璁哄仛鐢氫箞锛岄兘瑕佷负鑽h绁炶岃銆 32 涓嶆嫎鏄姽澶汉锛屾槸甯岃厞浜猴紝鏄鐨勬暀浼氾紝浣犱滑閮戒笉瑕佷娇浠栬穼鍊掞紱 33 灏卞ソ璞℃垜鍑′簨閮藉彨浼椾汉鍠滄锛屼笉姹傝嚜宸辩殑鐩婂锛屽彧姹備紬浜虹殑鐩婂锛屽彨浠栦滑寰楁晳銆 ************************************************* 鎴戠殑鏈嬪弸閲岄潰锛屾湁濂戒簺杞欢澶╂墠銆傝寰楁浘缁忕湅杩囦竴涓瘎璁鸿锛屼笌Prince鐩告瘮锛孧J鐨勮垶韫堝氨鍍忛拤鍦ㄥ涓婄殑鏈ㄥ伓涓鏍烽毦鐪嬨傛垜涔熸兂璇勮璇达紝鍜屸滈潪闈炩濃滃窛宸濃濃滃厓鍏冣濃滈洦杈扳濊繖浜涘ぉ鎵嶇▼搴忓憳鐩告瘮锛屾垜灏卞儚涓涓淗elloWorld鈥濅竴鏍枫傝繖鏄垜甯稿父椋樻潵椋樺幓涓嶇煡閬撳共浠涔堢殑鍘熷洜銆… Read More »鎶鏈腑鎬

浜戝瓨鍌ㄥ拰Linux鍛戒护琛岃闂簹椹婁簯鐩

涓涓汉鑻ヨ偗姣忔湀浠樿嫢骞茬數璇濊垂鍜屼笂缃戣垂锛屽叾瀹炲啀澶氫竴鐐筕PS鐨勮垂鐢ㄤ篃涓嶇畻浠涔堛傛暟鎹佽绠楀拰閫氳锛屾槸鐢靛瓙鏃朵唬鐨勪笁瓒抽紟绔嬶紝鍙负璁$畻鍜岄氳浠樿垂锛屼笉鑰冭檻鏁版嵁瀹夊叏锛屾槸瀹屽叏娌℃湁閬撶悊鐨勩 鎴戜竴鐩翠笉鐢ㄥ浗鍐呯殑鎻愪緵鍟嗘彁渚涚殑瀛樺偍鏈嶅姟锛岃嚦灏戜粠蹇冪悊涓婅寰楀畨鍏ㄤ竴浜涖傚湪澧欏瀿楂樹互鍓嶏紝google drive锛岀敋鑷砱oogle 閭閮借兘寰堟柟渚垮湴瀛樺偍鏁版嵁锛岃繖涓鐐逛笉绠椾粈涔堝ぇ闂銆 鍚庢潵锛屾參鎱㈢殑鍚勭鏈嶅姟閮借闂笉浜嗕簡锛岀‖鐩樺浠戒篃鍥犱负鍚勭鍘熷洜涓㈠け杩囦笉灏戞锛岀粓浜庝笅瀹氬喅蹇冭寮濮嬩簯澶囦唤銆 鎵浠ワ紝鎴戠洰鍓嶅氨鐢ㄧ潃鍚勭涓绘祦鐨勬湇鍔★細 google drive锛屽厤璐癸紝涓昏鏄皬鍨嬫枃浠朵氦鎹€傚お鎱簡锛屽浗鍐呭嚑涔庣敤涓嶄簡銆 dropbox, 鍏嶈垂10澶氫釜G锛屽彲浠ラ氳繃鎺ㄨ崘鏈嬪弸鎷垮埌20澶欸锛屾湰鏉ュ凡缁忓緢鏂逛究浜嗭紝鍙槸鍥炲埌鍥藉唴闇瑕佺炕澧欙紝杩樻槸涓嶅お濂界敤銆 OneNote锛屽厤璐广傚井杞笉闈犺氨锛岀幇鍦ㄥ彧鏈5G绌洪棿浜嗐備絾鏄洜涓鸿兘澶熷湪鍥藉唴鍚屾锛屾墍浠ョ洰鍓嶆槸鎴戠殑宸ヤ綔绌洪棿锛屾鍦ㄧ紪杈戠殑鏂囦欢鍦ㄤ笂闈繚瀛樸 evernote锛屼粯璐癸紝缇庡浗璐︽埛銆傝繖鏄垜鐨勭瑪璁板拰璧勬枡鐨勪富瑕佸瓨鍌ㄥ湴鐐广傚洜涓哄浗鍐呭彲浠ヨ闂紝閫熷害涔熶笉閿欙紝鑰屼笖鑷姩鍚屾锛屽崄鍒嗘柟渚裤傛浘缁忔兂瑕佹妸鎵鏈夌収鐗囦笂浼犲埌evernote锛岀粨鏋滈┈涓婂彈鍒拌鍛婏紝璇存垜鐨勭敤娉曚笉瀵广 amazon锛屼粯璐癸紝缇庡浗璐︽埛銆備簹椹婃槸鎴戠殑涓昏鐓х墖瀛樺偍锛屽凡缁忎笂浼犱簡40G鐨勭収鐗囧拰瑙嗛涓婂幓銆傝繖鏄粰瀛╁瓙浠暀涓嬬殑璧勬枡锛屼粬浠暱澶т互鍚庤嚜宸辩湅鐪嬪効鏃剁殑鍥炲繂銆備簹椹婄殑闂鏄笂浼犲緢鎱紝鎵浠ュ啀娆¢渶瑕侀氳繃vps杞Щ銆 eddyemma.com锛屾槸鍜屾湅鍙嬩竴璧风鐢ㄧ殑娴峰绌洪棿銆傜嫭绔婭P锛屽洜涓轰互鍓嶅叡浜獻P锛岃澧欒繃涓娆°傛垜鑷繁鍙彂涓浜涢鑺遍洩鏈堢殑涓滆タ锛屼富瑕佹槸涓轰簡鏂逛究鍚勪釜鍦版柟鐨勬湅鍙嬮兘鑳借闂傚浗鍐呯殑瀹朵汉鍙互鏂逛究鍦扮湅鍒版垜鐨勮繎鍐碉紝鑰岃嚜鍔ㄥ彂甯冨埌facebook涓婏紝鍙互鏂逛究鍥藉鐨勬湅鍙嬩滑銆傝繖涓┖闂翠笉鑳界敤鏉ュ仛澶ц妯$殑鏂囦欢瀛樺偍锛屼絾鏄彲浠ヤ綔涓烘柟渚垮揩閫熺殑涓浆绔欙紝鎶婃枃浠朵笂浼犲埌dropbox鍜宎mazon銆 鍙﹀锛岃繕鏈変竴涓粯璐圭殑VPS锛岀敤鏉ュ仛缈诲鏈嶅姟銆 鏈鍚庯紝杩樼敤浜嗕粯璐圭殑lastpass鏉ョ鐞嗘墍鏈夌殑璐﹀彿鏁版嵁锛屾妸姣忎釜缃戠珯鐨勫瘑鐮佸己搴﹂兘鎻愬埌缃戠珯鍏佽鐨勬瀬闄愩 鎵浠ワ紝鎴戜竴鍏变娇鐢ㄤ簡涓変釜鍏嶈垂鏈嶅姟锛実oogle锛屽井杞拰dropbox銆傚啀鍔犱笂浜斾釜浠樿垂鏈嶅姟锛宔vernote (鏃犻檺绌洪棿)锛宎mazon锛堟棤闄愮┖闂达級锛屼竴涓鐢ㄧ綉绔欑┖闂达紝涓涓獀ps锛屼竴涓猯astpass銆傚湪瀛樺偍涓婄殑寮鏀紝姣忓勾澶х害鍑犵櫨鍏冿紝甯屾湜灏藉彲鑳芥彁楂樻暟鎹殑瀹夊叏鎬у拰鏄撶敤鎬с ********************************************** 鍥炲埌amazon cloud drive銆 鐩墠鎴戜娇鐢╝cd_cli (https://acd-cli.readthedocs.org/en/latest/)鏉ヨ闂產mazon銆傛柟寮忎篃寰堢畝鍗曪紝閰嶇疆濂戒互鍚庯紝鍒颁簹椹婃巿鏉冦傜劧鍚庡氨鍙互閫氳繃vps涓浆锛岄珮閫熶笂浼犳枃浠朵簡銆傚疄娴嬮熷害锛屼粠鎴戠殑vps涓婁紶浜氶┈閫婏紝鍙互杈惧埌8M/绉掋傚墿涓嬬殑闂灏辨槸濡備綍鎶婃枃浠跺紕鍒癡PS涓婁簡銆傝繖涓熷害锛屼粠鎴戠殑鐢典俊瀹藉甫涓婂幓锛屼竴鑸彧鏈夊嚑鐧綤銆