Linux中国
1.73K subscribers
777 photos
6.34K links
Linux 中国官方 Telegram 频道
Download Telegram
8 个出没于终端中的吓人命令

&#27426;&#36814;&#26469;&#21040; Linux &#20196;&#20154;&#27611;&#39592;&#24730;&#28982;&#30340;&#19968;&#38754;&#12290;<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/09/195928jin37oithiz6nefu.jpg">Media</a>&#21448;&#26159;&#19968;&#24180;&#20013;&#30340;&#36825;&#20010;&#26102;&#20505;&#65306;&#22825;&#27668;&#21464;&#20919;&#20102;&#12289;&#26641;&#21494;&#21464;&#33394;&#20102;&#65292;&#21508;&#22788;&#30340;&#23401;&#23376;&#37117;&#21270;&#22918;&#25104;&#20102;&#23567;&#39740;&#12289;&#22934;&#31934;&#21644;&#20725;&#23608;&#12290;&#65288;LCTT &#35793;&#27880;&#65306;&#26412;&#25991;&#21407;&#21457;&#34920;&#20110;&#19975;&#22307;&#33410;&#65289;&#20294;&#20320;&#30693;&#36947;&#21527;, Unix (&#21644; Linux) &#21644;&#23427;&#20204;&#30340;&#21508;&#20010;&#20998;&#25903;&#20063;&#20805;&#28385;&#20102;&#20196;&#20154;&#27611;&#39592;&#24730;&#28982;&#30340;&#19996;&#35199;&#65311;&#35753;&#25105;&#20204;&#26469;&#30475;&#19968;&#19979;&#25105;&#20204;&#25152;&#29087;&#24713;&#21644;&#21916;&#29233;&#30340;&#25805;&#20316;&#31995;&#32479;&#30340;&#19968;&#20123;&#20196;&#20154;&#27611;&#39592;&#24730;&#28982;&#30340;&#19968;&#38754;&#12290;&#21322;&#31070;&#65288;&#23432;&#25252;&#36827;&#31243;&#65289;&#22914;&#26524;&#27809;&#26377;&#28508;&#20239;&#20110;&#31995;&#32479;&#20013;&#30340;&#21508;&#31181;&#23432;&#25252;&#36827;&#31243;daemon&#65292;&#37027;&#20040; Unix &#23601;&#27809;&#20160;&#20040;&#19981;&#21516;&#12290;&#23432;&#25252;&#36827;&#31243;&#26159;&#36816;&#34892;&#22312;&#21518;&#21488;&#30340;&#36827;&#31243;&#65292;&#24182;&#20026;&#29992;&#25143;&#21644;&#25805;&#20316;&#31995;&#32479;&#26412;&#36523;&#25552;&#20379;&#26377;&#29992;&#30340;&#26381;&#21153;&#65292;&#27604;&#22914; SSH&#12289;FTP&#12289;HTTP &#31561;&#31561;&#12290;&#20725;&#23608;&#65288;&#20725;&#23608;&#36827;&#31243;&#65289;&#19981;&#26102;&#20986;&#29616;&#30340;&#20725;&#23608;&#36827;&#31243;&#26159;&#19968;&#31181;&#34987;&#26432;&#27515;&#20294;&#26159;&#25298;&#32477;&#31163;&#24320;&#30340;&#36827;&#31243;&#12290;&#24403;&#23427;&#20986;&#29616;&#26102;&#65292;&#26080;&#30097;&#20320;&#21482;&#33021;&#36873;&#25321;&#20320;&#26377;&#30340;&#24037;&#20855;&#26469;&#36214;&#36208;&#23427;&#12290;&#20725;&#23608;&#36827;&#31243;&#36890;&#24120;&#34920;&#26126;&#20135;&#29983;&#23427;&#30340;&#36827;&#31243;&#20986;&#29616;&#20102;&#38382;&#39064;&#12290;&#26432;&#27515;&#65288;kill&#65289;&#20320;&#19981;&#20165;&#21487;&#20197;&#20351;&#29992; <code>kill</code> &#26469;&#24178;&#25481;&#19968;&#20010;&#20725;&#23608;&#36827;&#31243;&#65292;&#20320;&#36824;&#21487;&#20197;&#29992;&#23427;&#26432;&#27515;&#20219;&#20309;&#23545;&#20320;&#31995;&#32479;&#20135;&#29983;&#36127;&#38754;&#24433;&#21709;&#30340;&#36827;&#31243;&#12290;&#26377;&#19968;&#20010;&#20351;&#29992;&#22826;&#22810; RAM &#25110; CPU &#21608;&#26399;&#30340;&#36827;&#31243;&#65311;&#20351;&#29992; <code>kill</code> &#21629;&#20196;&#26432;&#27515;&#23427;&#12290;&#29483;&#65288;cat&#65289;<code>cat</code> &#21644;&#29483;&#31185;&#21160;&#29289;&#26080;&#20851;&#65292;&#20294;&#26159;&#19982;&#25991;&#20214;&#25805;&#20316;&#26377;&#20851;&#65306;<code>cat</code> &#26159; “concatenate” &#30340;&#32553;&#20889;&#12290;&#20320;&#29978;&#33267;&#21487;&#20197;&#20351;&#29992;&#36825;&#20010;&#26041;&#20415;&#30340;&#21629;&#20196;&#26469;&#26597;&#30475;&#25991;&#20214;&#30340;&#20869;&#23481;&#12290;&#23614;&#24052;&#65288;tail&#65289;&#24403;&#20320;&#24819;&#35201;&#26597;&#30475;&#25991;&#20214;&#20013;&#26368;&#21518; n &#34892;&#26102;&#65292;<code>tail</code> &#21629;&#20196;&#24456;&#26377;&#29992;&#12290;&#24403;&#20320;&#24819;&#35201;&#30417;&#25511;&#19968;&#20010;&#25991;&#20214;&#26102;&#65292;&#23427;&#20063;&#24456;&#26834;&#12290;&#24043;&#24072;&#65288;which&#65289;&#21734;&#65292;&#19981;&#65292;&#23427;&#19981;&#26159;&#24043;&…
适用于小型企业的 4 个开源发票工具

用基于 web 的发票软件管理你的账单,轻松完成收款,十分简单。Media

via https://linux.cn/article-10216-1.html
&#36866;&#29992;&#20110;&#23567;&#22411;&#20225;&#19994;&#30340; 4 &#20010;&#24320;&#28304;&#21457;&#31080;&#24037;&#20855;

&#29992;&#22522;&#20110; web &#30340;&#21457;&#31080;&#36719;&#20214;&#31649;&#29702;&#20320;&#30340;&#36134;&#21333;&#65292;&#36731;&#26494;&#23436;&#25104;&#25910;&#27454;&#65292;&#21313;&#20998;&#31616;&#21333;&#12290;<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/09/213218z30yq7b8y1bch8uq.png">Media</a>&#26080;&#35770;&#24744;&#24320;&#21150;&#23567;&#22411;&#20225;&#19994;&#30340;&#21407;&#22240;&#26159;&#20160;&#20040;&#65292;&#20445;&#25345;&#19994;&#21153;&#21457;&#23637;&#30340;&#20851;&#38190;&#26159;&#21487;&#20197;&#30408;&#21033;&#12290;&#25910;&#27454;&#20063;&#23601;&#24847;&#21619;&#30528;&#21521;&#23458;&#25143;&#25552;&#20379;&#21457;&#31080;&#12290;&#20351;&#29992; LibreOffice Writer &#25110; LibreOffice Calc &#25552;&#20379;&#21457;&#31080;&#24456;&#23481;&#26131;&#65292;&#20294;&#26377;&#26102;&#20505;&#20320;&#38656;&#35201;&#30340;&#19981;&#27490;&#36825;&#20123;&#12290;&#20174;&#26356;&#19987;&#19994;&#30340;&#35282;&#24230;&#30475;&#65292;&#19968;&#31181;&#36319;&#36827;&#21457;&#31080;&#30340;&#26041;&#27861;&#65292;&#21487;&#20197;&#25552;&#37266;&#20320;&#20309;&#26102;&#36319;&#36827;&#20320;&#21457;&#20986;&#30340;&#21457;&#31080;&#12290;&#22312;&#36825;&#37324;&#26377;&#21508;&#31181;&#21508;&#26679;&#30340;&#21830;&#19994;&#38381;&#28304;&#30340;&#21457;&#31080;&#31649;&#29702;&#24037;&#20855;&#12290;&#20294;&#26159;&#24320;&#28304;&#30340;&#20135;&#21697;&#21644;&#30456;&#23545;&#24212;&#30340;&#38381;&#28304;&#21830;&#19994;&#24037;&#20855;&#27604;&#36215;&#26469;&#65292;&#24182;&#19981;&#24046;&#65292;&#27809;&#20934;&#36824;&#26356;&#28789;&#27963;&#12290;&#35753;&#25105;&#20204;&#19968;&#36215;&#20102;&#35299;&#36825; 4 &#27454;&#22522;&#20110; web &#30340;&#24320;&#28304;&#21457;&#31080;&#24037;&#20855;&#65292;&#23427;&#20204;&#24456;&#36866;&#29992;&#20110;&#39044;&#31639;&#32039;&#24352;&#30340;&#33258;&#30001;&#32844;&#19994;&#32773;&#21644;&#23567;&#22411;&#20225;&#19994;&#12290;2014 &#24180;&#65292;&#25105;&#22312;&#26412;&#25991;&#30340;<a href="https://opensource.com/business/14/9/4-open-source-invoice-tools">&#26089;&#26399;&#29256;&#26412;</a>&#20013;&#25552;&#21040;&#20102;&#20854;&#20013;&#20004;&#20010;&#24037;&#20855;&#12290;&#36825; 4 &#20010;&#24037;&#20855;&#29992;&#36215;&#26469;&#37117;&#24456;&#31616;&#21333;&#65292;&#24182;&#19988;&#20320;&#21487;&#20197;&#22312;&#20219;&#20309;&#35774;&#22791;&#19978;&#20351;&#29992;&#23427;&#20204;&#12290;Invoice Ninja&#25105;&#19981;&#26159;&#24456;&#21916;&#27426; ninja &#65288;&#24525;&#32773;&#65289;&#36825;&#20010;&#35789;&#12290;&#23613;&#31649;&#22914;&#27492;&#65292;&#25105;&#21916;&#27426; <a href="https://www.invoiceninja.org/">Invoice Ninja</a>&#12290;&#38750;&#24120;&#21916;&#27426;&#12290;&#23427;&#23558;&#21151;&#33021;&#34701;&#21512;&#22312;&#19968;&#20010;&#31616;&#21333;&#30340;&#30028;&#38754;&#65292;&#20854;&#20013;&#21253;&#21547;&#19968;&#32452;&#21487;&#35753;&#20320;&#21019;&#24314;&#12289;&#31649;&#29702;&#21644;&#21521;&#23458;&#25143;&#12289;&#28040;&#36153;&#32773;&#21457;&#36865;&#21457;&#31080;&#30340;&#21151;&#33021;&#12290;&#24744;&#21487;&#20197;&#36731;&#26494;&#37197;&#32622;&#22810;&#20010;&#23458;&#25143;&#31471;&#65292;&#36319;&#36827;&#20184;&#27454;&#21644;&#26410;&#32467;&#28165;&#30340;&#21457;&#31080;&#65292;&#29983;&#25104;&#25253;&#20215;&#24182;&#29992;&#30005;&#23376;&#37038;&#20214;&#21457;&#36865;&#21457;&#31080;&#12290;Invoice Ninja &#19982;&#20854;&#31454;&#20105;&#23545;&#25163;&#19981;&#21516;&#65292;&#23427;<a href="https://www.invoiceninja.com/integrations/">&#38598;&#25104;</a>&#20102;&#36229;&#36807; 40 &#20010;&#27969;&#34892;&#25903;&#20184;&#26041;&#24335;&#65292;&#21253;&#25324; PayPal&#12289;Stripe&#12289;WePay &#20197;&#21450; Apple Pay&#12290;<a href="https://github.com/invoiceninja/invoiceninja">&#19979;&#36733;</a>&#19968;&#20010…
设计更快的网页(二):图片替换

在这部分中你应该学会了如何将光栅图像替换成 SVG,并对它进行优化以供使用。Media

via https://linux.cn/article-10217-1.html
&#35774;&#35745;&#26356;&#24555;&#30340;&#32593;&#39029;&#65288;&#20108;&#65289;&#65306;&#22270;&#29255;&#26367;&#25442;

<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/09/220014lak4vkv9wvy9i5yk.jpg">Media</a>&#27426;&#36814;&#22238;&#21040;&#25105;&#20204;&#20026;&#20102;&#26500;&#24314;&#26356;&#24555;&#32593;&#39029;&#25152;&#20889;&#30340;&#31995;&#21015;&#25991;&#31456;&#12290;&#19978;&#19968;&#31687;<a href="https://linux.cn/article-10166-1.html">&#25991;&#31456;</a>&#35752;&#35770;&#20102;&#21482;&#36890;&#36807;&#22270;&#29255;&#21387;&#32553;&#23454;&#29616;&#36825;&#20010;&#30446;&#26631;&#30340;&#26041;&#27861;&#12290;&#36825;&#20010;&#20363;&#23376;&#20174;&#19968;&#24320;&#22987;&#26377; 1.2MB &#30340;“&#27983;&#35272;&#22120;&#33026;&#32938;”&#65292;&#28982;&#21518;&#23427;&#20943;&#36731;&#21040;&#20102; 488.9KB &#30340;&#22823;&#23567;&#12290;&#20294;&#36825;&#36824;&#19981;&#22815;&#24555;&#65281;&#37027;&#20040;&#26412;&#25991;&#32487;&#32493;&#26469;&#32473;&#27983;&#35272;&#22120;“&#20943;&#32933;”&#12290;&#20320;&#21487;&#33021;&#22312;&#36825;&#20010;&#36807;&#31243;&#20013;&#20250;&#35748;&#20026;&#25105;&#20204;&#25152;&#20570;&#30340;&#20107;&#24773;&#26377;&#28857;&#30127;&#29378;&#65292;&#20294;&#19968;&#26086;&#23436;&#25104;&#65292;&#20320;&#23601;&#20250;&#26126;&#30333;&#20026;&#20160;&#20040;&#35201;&#36825;&#20040;&#20570;&#20102;&#12290;&#20934;&#22791;&#24037;&#20316;&#26412;&#25991;&#20877;&#27425;&#20174;&#23545;&#32593;&#39029;&#30340;&#20998;&#26512;&#24320;&#22987;&#12290;&#20351;&#29992; Firefox &#20869;&#32622;&#30340;&#25130;&#22270;&#21151;&#33021;&#26469;&#23545;&#25972;&#20010;&#39029;&#38754;&#36827;&#34892;&#25130;&#22270;&#12290;&#20320;&#36824;&#38656;&#35201;<a href="https://fedoramagazine.org/howto-use-sudo/">&#29992; sudo</a> &#26469;&#23433;&#35013; Inkscape&#65306;<pre class="prettyprint linenums">$ sudo dnf install inkscape</pre>&#22914;&#26524;&#20320;&#24819;&#20102;&#35299; Inkscape &#30340;&#29992;&#27861;&#65292;Fedora &#26434;&#24535;&#19978;&#26377;&#20960;&#31687;&#29616;&#25104;&#30340;<a href="https://fedoramagazine.org/?s=Inkscape">&#25991;&#31456;</a>&#12290;&#26412;&#25991;&#20165;&#20250;&#20171;&#32461;&#19968;&#20123;&#22522;&#26412;&#30340; SVG &#20248;&#21270;&#26041;&#27861;&#20197;&#20379; Web &#20351;&#29992;&#12290;&#20998;&#26512;&#25105;&#20204;&#20877;&#26469;&#29992; <a href="https://getfedora.org">getfedora.org</a> &#30340;&#32593;&#39029;&#26469;&#20030;&#20363;&#12290;<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/09/220016fcpn9n872nm8z2n2.png">Getfedora &#30340;&#39029;&#38754;&#65292;&#23545;&#20854;&#20013;&#30340;&#22270;&#29255;&#20570;&#20102;&#26631;&#35760;</a>&#36825;&#27425;&#20998;&#26512;&#20197;&#22270;&#24418;&#26041;&#24335;&#23436;&#25104;&#26356;&#22909;&#65292;&#36825;&#20063;&#23601;&#26159;&#23427;&#20174;&#23631;&#24149;&#25130;&#22270;&#24320;&#22987;&#30340;&#21407;&#22240;&#12290;&#19978;&#38754;&#30340;&#25130;&#22270;&#26631;&#35760;&#20102;&#39029;&#38754;&#20013;&#30340;&#25152;&#26377;&#22270;&#24418;&#20803;&#32032;&#12290;Fedora &#32593;&#31449;&#22242;&#38431;&#24050;&#32463;&#38024;&#23545;&#20004;&#31181;&#24773;&#20917;&#25514;&#26045;&#65288;&#20063;&#26377;&#21487;&#33021;&#26159;&#22235;&#31181;&#65292;&#36825;&#26679;&#26356;&#22909;&#65289;&#26469;&#26367;&#25442;&#22270;&#20687;&#20102;&#12290;&#31038;&#20132;&#23186;&#20307;&#30340;&#22270;&#26631;&#21464;&#25104;&#20102;&#23383;&#20307;&#30340;&#23383;&#24418;&#65292;&#32780;&#35821;&#35328;&#36873;&#25321;&#22120;&#21464;&#25104;&#20102; SVG.&#25105;&#20204;&#26377;&#20960;&#20010;&#21487;&#20197;&#26367;&#25442;&#30340;&#36873;&#25321;&#65306;CSS3&#23383;&#20307;SVGHTML5 CanvasHTML5 Canvas&#31616;&#21333;&#26469;&#35828;&#65292;HTML5 Canvas &#26159;&#19968;&#31181; HTML &#20803;&#32032;&#65292;&#23427;&#20801;&#35768;&#20320;&#20511;&#21161;&#33050;&#26412;&#35821;&#35328;&#65288;&#36890;&#24120;&#26159; JavaScrip…
最棒的免费 Roguelike 游戏

Roguelike 属于角色扮演游戏的一个子流派,它从字面上理解就是“类 Rogue 游戏”。Rogue 是一个地牢爬行视频游戏Media

via https://linux.cn/article-10218-1.html
&#26368;&#26834;&#30340;&#20813;&#36153; Roguelike &#28216;&#25103;

<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/10/205247mxmxjxjjzipa9bm9.jpg">Media</a>Roguelike &#23646;&#20110;&#35282;&#33394;&#25198;&#28436;&#28216;&#25103;&#30340;&#19968;&#20010;&#23376;&#27969;&#27966;&#65292;&#23427;&#20174;&#23383;&#38754;&#19978;&#29702;&#35299;&#23601;&#26159;“&#31867; Rogue &#28216;&#25103;”&#12290;Rogue &#26159;&#19968;&#20010;&#22320;&#29282;&#29228;&#34892;&#35270;&#39057;&#28216;&#25103;&#65292;&#31532;&#19968;&#20010;&#29256;&#26412;&#30001;&#24320;&#21457;&#32773; Michel Toy&#12289;Glenn Wichman &#21644; Ken Arnold &#22312; 1980 &#24180;&#21457;&#24067;&#65292;&#30001;&#20110;&#20854;&#26497;&#26131;&#19978;&#30270;&#20351;&#24471;&#23427;&#20174;&#19968;&#20247;&#28216;&#25103;&#20013;&#33073;&#39062;&#32780;&#20986;&#12290;&#25972;&#20010;&#28216;&#25103;&#30340;&#30446;&#26631;&#26159;&#28145;&#20837;&#31532; 26 &#23618;&#65292;&#21462;&#22238; Yendor &#30340;&#25252;&#36523;&#31526;&#24182;&#22238;&#21040;&#22320;&#38754;&#65292;&#25152;&#26377;&#35774;&#23450;&#37117;&#22522;&#20110;&#40857;&#19982;&#22320;&#19979;&#22478;&#30340;&#19990;&#30028;&#35266;&#12290;Rogue &#34987;&#35748;&#20026;&#26159;&#19968;&#20010;&#32463;&#20856;&#12289;&#26497;&#20854;&#22256;&#38590;&#24182;&#19988;&#35753;&#20154;&#24223;&#23517;&#24536;&#39135;&#30340;&#28216;&#25103;&#12290;&#34429;&#28982;&#23427;&#22312;&#22823;&#23398;&#26657;&#22253;&#20013;&#38750;&#24120;&#21463;&#27426;&#36814;&#65292;&#20294;&#24182;&#19981;&#21313;&#20998;&#30021;&#38144;&#12290;&#22312; Rogue &#21457;&#24067;&#26102;&#65292;&#23427;&#24182;&#27809;&#26377;&#20351;&#29992;&#24320;&#28304;&#35768;&#21487;&#35777;&#65292;&#23548;&#33268;&#20102;&#29233;&#22909;&#32773;&#20204;&#24320;&#21457;&#20102;&#35768;&#22810;&#20811;&#38534;&#29256;&#26412;&#12290;&#23545;&#20110; Roguelike &#28216;&#25103;&#24182;&#27809;&#26377;&#19968;&#20010;&#26126;&#30830;&#30340;&#23450;&#20041;&#65292;&#20294;&#26159;&#27492;&#31867;&#28216;&#25103;&#20250;&#25317;&#26377;&#19979;&#36848;&#30340;&#20856;&#22411;&#29305;&#24449;&#65306;&#39640;&#24230;&#39764;&#24187;&#30340;&#21465;&#20107;&#32972;&#26223;&#65307;&#31243;&#24207;&#21270;&#29983;&#25104;&#20851;&#21345;&#12290;&#28216;&#25103;&#19990;&#30028;&#20013;&#30340;&#22823;&#37096;&#20998;&#22320;&#22270;&#22312;&#27599;&#27425;&#24320;&#22987;&#28216;&#25103;&#26102;&#37325;&#26032;&#29983;&#25104;&#65292;&#20063;&#23601;&#24847;&#21619;&#30528;&#40723;&#21169;&#22810;&#21608;&#30446;&#65307;&#22238;&#21512;&#21046;&#30340;&#22320;&#29282;&#25506;&#38505;&#21644;&#25112;&#26007;&#65307;&#22522;&#20110;&#22270;&#22359;&#38543;&#26426;&#29983;&#25104;&#30340;&#22270;&#24418;&#65307;&#38543;&#26426;&#30340;&#25112;&#26007;&#32467;&#26524;&#65307;&#27704;&#20037;&#27515;&#20129;——&#27515;&#20129;&#23454;&#38469;&#36215;&#20316;&#29992;&#65292;&#19968;&#26086;&#27515;&#20129;&#20320;&#23601;&#38656;&#35201;&#37325;&#26032;&#24320;&#22987;&#39640;&#38590;&#24230;&#27492;&#31687;&#25991;&#31456;&#25910;&#38598;&#20102;&#22823;&#37327; Linux &#24179;&#21488;&#21487;&#29609;&#30340; Roguelike &#28216;&#25103;&#12290;&#22914;&#26524;&#20320;&#20139;&#21463;&#25552;&#20379;&#30495;&#23454;&#32039;&#24352;&#24863;&#30340;&#19978;&#30270;&#28216;&#25103;&#20307;&#39564;&#65292;&#25105;&#34935;&#24515;&#25512;&#33616;&#20320;&#19979;&#36733;&#36825;&#20123;&#28216;&#25103;&#12290;&#19981;&#35201;&#34987;&#20854;&#20013;&#24456;&#22810;&#28216;&#25103;&#30340;&#21407;&#22987;&#30011;&#38754;&#21523;&#36864;&#65292;&#19968;&#26086;&#20320;&#27785;&#28024;&#20854;&#20013;&#20320;&#20250;&#24456;&#24555;&#24573;&#30053;&#31616;&#38475;&#30340;&#30011;&#38754;&#12290;&#35760;&#20303;&#65292;&#22312; Roguelike &#28216;&#25103;&#20013;&#24212;&#26159;&#28216;&#25103;&#26426;&#21046;&#21344;&#20027;&#23548;&#65292;&#30011;&#38754;&#21482;&#26159;&#19968;&#20010;&#21152;&#20998;&#39033;&#32780;&#19981;&#26159;&#24517;&#3…
如何在 CentOS 中添加、启用和禁用一个仓库

对于基于 RPM 的系统,有许多第三方仓库可用,但所建议使用的仓库很少,因为这些不会替换大量的基础包。Media

via https://linux.cn/article-10219-1.html
&#22914;&#20309;&#22312; CentOS &#20013;&#28155;&#21152;&#12289;&#21551;&#29992;&#21644;&#31105;&#29992;&#19968;&#20010;&#20179;&#24211;

<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/10/221336sona2ooagwuohton.jpg">Media</a>&#22312;&#22522;&#20110; RPM &#30340;&#31995;&#32479;&#19978;&#65292;&#20363;&#22914; RHEL&#12289;CentOS &#31561;&#65292;&#25105;&#20204;&#20013;&#30340;&#35768;&#22810;&#20154;&#20351;&#29992; yum &#21253;&#31649;&#29702;&#22120;&#26469;&#31649;&#29702;&#36719;&#20214;&#30340;&#23433;&#35013;&#12289;&#21024;&#38500;&#12289;&#26356;&#26032;&#12289;&#25628;&#32034;&#31561;&#12290;Linux &#21457;&#34892;&#29256;&#30340;&#22823;&#37096;&#20998;&#36719;&#20214;&#37117;&#26469;&#33258;&#21457;&#34892;&#29256;&#23448;&#26041;&#20179;&#24211;&#12290;&#23448;&#26041;&#20179;&#24211;&#21253;&#21547;&#22823;&#37327;&#20813;&#36153;&#21644;&#24320;&#28304;&#30340;&#24212;&#29992;&#21644;&#36719;&#20214;&#12290;&#23427;&#24456;&#23481;&#26131;&#23433;&#35013;&#21644;&#20351;&#29992;&#12290;&#30001;&#20110;&#19968;&#20123;&#38480;&#21046;&#21644;&#19987;&#26377;&#38382;&#39064;&#65292;&#22522;&#20110; RPM &#30340;&#21457;&#34892;&#29256;&#22312;&#20854;&#23448;&#26041;&#20179;&#24211;&#20013;&#27809;&#26377;&#25552;&#20379;&#26576;&#20123;&#21253;&#12290;&#21478;&#22806;&#65292;&#20986;&#20110;&#31283;&#23450;&#24615;&#32771;&#34385;&#65292;&#23427;&#19981;&#20250;&#25552;&#20379;&#26368;&#26032;&#29256;&#26412;&#30340;&#26680;&#24515;&#21253;&#12290;&#20026;&#20102;&#20811;&#26381;&#36825;&#31181;&#24773;&#20917;&#65292;&#25105;&#20204;&#38656;&#35201;&#23433;&#35013;&#25110;&#21551;&#29992;&#38656;&#35201;&#30340;&#31532;&#19977;&#26041;&#20179;&#24211;&#12290;&#23545;&#20110;&#22522;&#20110; RPM &#30340;&#31995;&#32479;&#65292;&#26377;&#35768;&#22810;&#31532;&#19977;&#26041;&#20179;&#24211;&#21487;&#29992;&#65292;&#20294;&#25152;&#24314;&#35758;&#20351;&#29992;&#30340;&#20179;&#24211;&#24456;&#23569;&#65292;&#22240;&#20026;&#36825;&#20123;&#19981;&#20250;&#26367;&#25442;&#22823;&#37327;&#30340;&#22522;&#30784;&#21253;&#12290;&#24314;&#35758;&#38405;&#35835;&#65306;<a href="https://www.2daygeek.com/yum-command-examples-manage-packages-rhel-centos-systems/">&#22312; RHEL/CentOS &#31995;&#32479;&#20013;&#20351;&#29992; YUM &#21629;&#20196;&#31649;&#29702;&#21253;</a><a href="https://www.2daygeek.com/dnf-command-examples-manage-packages-fedora-system/">&#22312; Fedora &#31995;&#32479;&#20013;&#20351;&#29992; DNF (YUM &#30340;&#20998;&#25903;) &#21629;&#20196;&#26469;&#31649;&#29702;&#21253;</a><a href="https://www.2daygeek.com/list-of-command-line-package-manager-for-linux/">&#21629;&#20196;&#34892;&#21253;&#31649;&#29702;&#22120;&#21644;&#29992;&#27861;&#21015;&#34920;</a><a href="https://www.2daygeek.com/list-of-graphical-frontend-tool-for-linux-package-manager/">Linux &#21253;&#31649;&#29702;&#22120;&#30340;&#22270;&#24418;&#21270;&#24037;&#20855;</a>&#36825;&#21487;&#20197;&#22312;&#22522;&#20110; RPM &#30340;&#31995;&#32479;&#19978;&#23436;&#25104;&#65292;&#27604;&#22914; RHEL, CentOS, OEL, Fedora &#31561;&#12290;Fedora &#31995;&#32479;&#20351;&#29992; dnf config-manager [options] [section …]&#20854;&#23427;&#22522;&#20110; RPM &#30340;&#31995;&#32479;&#20351;&#29992; yum-config-manager [options] [section …]&#22914;&#20309;&#21015;&#20986;&#21551;&#29992;&#30340;&#20179;&#24211;&#21482;&#38656;&#36816;&#34892;&#20197;&#19979;&#21629;&#20196;&#21363;&#21487;&#26816;&#26597;&#31995;&#32479;&#19978;&#21551;&#29992;&#30340;&#20179;&#24211;&#21015;&#34920;&#12290;&#23545;&#20110; CentOS/RHEL/OLE &#31995;&#32479;&#65306;<pre class="prettyprint linenums"># yum repolistLoaded plugins: fastestmirror, securityLoading mirror speeds from cached hostfilerepo id repo name statusbase CentOS-6 - Base 6,706extras CentOS-6 - Extras 53updates CentOS-6 - Updates 1,255repolist: 8,014</pre>&#23545;&#20110; Fedora &#31995;&#32479;&#65306;<pre class="prettyprint linenums"># dnf repolist</pre>&#22914;&#20309;&#22312;&#3199…
Joplin:开源加密笔记及待办事项应用

它的主要功能包括端到端加密,Markdown 支持以及通过 NextCloud、Dropbox、OneDrive 或 WebDAV 等第三方服务进行同步。Media

via https://linux.cn/article-10220-1.html
Joplin&#65306;&#24320;&#28304;&#21152;&#23494;&#31508;&#35760;&#21450;&#24453;&#21150;&#20107;&#39033;&#24212;&#29992;

<a href="https://joplin.cozic.net/">Joplin</a> &#26159;&#19968;&#20010;&#33258;&#30001;&#24320;&#28304;&#30340;&#31508;&#35760;&#21644;&#24453;&#21150;&#20107;&#39033;&#24212;&#29992;&#65292;&#21487;&#29992;&#20110; Linux&#12289;Windows&#12289;macOS&#12289;Android &#21644; iOS&#12290;&#23427;&#30340;&#20027;&#35201;&#21151;&#33021;&#21253;&#25324;&#31471;&#21040;&#31471;&#21152;&#23494;&#65292;Markdown &#25903;&#25345;&#20197;&#21450;&#36890;&#36807; NextCloud&#12289;Dropbox&#12289;OneDrive &#25110; WebDAV &#31561;&#31532;&#19977;&#26041;&#26381;&#21153;&#36827;&#34892;&#21516;&#27493;&#12290;<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/11/102838p4awwjpaaijpiqw6.png">Media</a>&#22312; Joplin &#20013;&#20320;&#21487;&#20197;&#29992; Markdown &#26684;&#24335;&#65288;&#25903;&#25345;&#25968;&#23398;&#31526;&#21495;&#21644;&#22797;&#36873;&#26694;&#65289;&#35760;&#31508;&#35760;&#65292;&#26700;&#38754;&#31243;&#24207;&#26377; 3 &#31181;&#35270;&#22270;&#65306;Markdown &#20195;&#30721;&#12289;Markdown &#39044;&#35272;&#25110;&#20004;&#32773;&#24182;&#25490;&#12290;&#20320;&#21487;&#20197;&#22312;&#31508;&#35760;&#20013;&#28155;&#21152;&#38468;&#20214;&#65288;&#20351;&#29992;&#22270;&#20687;&#39044;&#35272;&#65289;&#25110;&#22312;&#22806;&#37096; Markdown &#32534;&#36753;&#22120;&#20013;&#32534;&#36753;&#23427;&#20204;&#24182;&#22312;&#27599;&#27425;&#20445;&#23384;&#25991;&#20214;&#26102;&#33258;&#21160;&#22312; Joplin &#20013;&#26356;&#26032;&#23427;&#20204;&#12290;&#36825;&#20010;&#24212;&#29992;&#24212;&#35813;&#21487;&#20197;&#24456;&#22909;&#22320;&#22788;&#29702;&#22823;&#37327;&#31508;&#35760;&#65292;&#23427;&#20801;&#35768;&#20320;&#23558;&#31508;&#35760;&#32452;&#32455;&#21040;&#31508;&#35760;&#26412;&#20013;&#12289;&#28155;&#21152;&#26631;&#31614;&#21644;&#25628;&#32034;&#12290;&#20320;&#36824;&#21487;&#20197;&#25353;&#26356;&#26032;&#26085;&#26399;&#12289;&#21019;&#24314;&#26085;&#26399;&#25110;&#26631;&#39064;&#23545;&#31508;&#35760;&#36827;&#34892;&#25490;&#24207;&#12290;&#27599;&#20010;&#31508;&#35760;&#26412;&#21487;&#20197;&#21253;&#21547;&#31508;&#35760;&#12289;&#24453;&#21150;&#20107;&#39033;&#25110;&#20004;&#32773;&#65292;&#20320;&#21487;&#20197;&#36731;&#26494;&#28155;&#21152;&#20854;&#20182;&#31508;&#35760;&#30340;&#38142;&#25509;&#65288;&#22312;&#26700;&#38754;&#24212;&#29992;&#20013;&#21491;&#38190;&#21333;&#20987;&#31508;&#35760;&#24182;&#36873;&#25321; “Copy Markdown link”&#65292;&#28982;&#21518;&#22312;&#31508;&#35760;&#20013;&#28155;&#21152;&#38142;&#25509;&#65289;&#12290;Joplin &#20013;&#30340;&#24453;&#21150;&#20107;&#39033;&#25903;&#25345;&#35686;&#25253;&#65292;&#20294;&#22312; Ubuntu 18.04 &#19978;&#65292;&#27492;&#21151;&#33021;&#25105;&#26080;&#27861;&#20351;&#29992;&#12290;&#20854;&#20182; Joplin &#21151;&#33021;&#21253;&#25324;&#65306;Firefox &#21644; Chrome &#20013;&#21487;&#36873;&#30340; Web Clipper &#25193;&#23637;&#65288;&#22312; Joplin &#26700;&#38754;&#24212;&#29992;&#20013;&#36827;&#20837; “Tools > Web clipper options” &#20197;&#21551;&#29992;&#21098;&#20999;&#26381;&#21153;&#24182;&#25214;&#21040; Chrome/Firefox &#25193;&#23637;&#31243;&#24207;&#30340;&#19979;&#36733;&#38142;&#25509;&#65289;&#65292;&#23427;&#21487;&#20197;&#21098;&#20999;&#31616;&#21333;&#25110;&#23436;&#25972;&#30340;&#39029;&#38754;&#12289;&#21098;&#20999;&#36873;&#20013;&#30340;&#21306;&#22495;&#25110;&#32773;&#25130;&#22270;&#12290;&#21487;&#36873;&#21629;&#20196;&#34892;&#23458;&#25143;&#31471;&#12290;&#23548;&#20837; Enex &#25991;&#20214;&#65288;Evernote &#23548;&#20986;&#26684;&#24335;&#65289;&#21644; Markdown &#25991;&#20214;&#12290;&#23548;&#20986; JEX &#25991;&#20214;&#65288;Joplin &#23548;&#20986;&#26684;&#24335;&#65289;&#12289;PDF &#21644;&#21407;&#22987;&#25991;&#20214;&#12290;&#31163;&#32447;&#20248;&#20808;&#65292;&#22240;&#27492;&#21363;&#20351;&#27809;&#26377;&#20114…
5 个适合系统管理员使用的告警可视化工具

这些开源的工具能够通过输出帮助用户了解系统的运行状况,并对可能发生的潜在问题作出告警。Media

via https://linux.cn/article-10221-1.html
5 &#20010;&#36866;&#21512;&#31995;&#32479;&#31649;&#29702;&#21592;&#20351;&#29992;&#30340;&#21578;&#35686;&#21487;&#35270;&#21270;&#24037;&#20855;

&#36825;&#20123;&#24320;&#28304;&#30340;&#24037;&#20855;&#33021;&#22815;&#36890;&#36807;&#36755;&#20986;&#24110;&#21161;&#29992;&#25143;&#20102;&#35299;&#31995;&#32479;&#30340;&#36816;&#34892;&#29366;&#20917;&#65292;&#24182;&#23545;&#21487;&#33021;&#21457;&#29983;&#30340;&#28508;&#22312;&#38382;&#39064;&#20316;&#20986;&#21578;&#35686;&#12290;<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/11/174106stsihq448h4hcemi.png">Media</a>&#20320;&#22823;&#27010;&#24050;&#32463;&#30693;&#36947;&#65288;&#25110;&#29468;&#21040;&#65289;&#21578;&#35686;&#21487;&#35270;&#21270;alerting and visualization&#24037;&#20855;&#26159;&#29992;&#26469;&#20570;&#20160;&#20040;&#30340;&#20102;&#12290;&#19979;&#38754;&#25105;&#20204;&#23601;&#35201;&#26469;&#35828;&#19968;&#19979;&#65292;&#20026;&#20160;&#20040;&#35201;&#35752;&#35770;&#36825;&#26679;&#30340;&#24037;&#20855;&#65292;&#29978;&#33267;&#26576;&#20123;&#31995;&#32479;&#19987;&#38376;&#23558;&#21487;&#35270;&#21270;&#20316;&#20026;&#29305;&#26377;&#30340;&#21151;&#33021;&#12290;&#21487;&#35266;&#23519;&#24615;Observability&#30340;&#27010;&#24565;&#26469;&#33258;&#25511;&#21046;&#29702;&#35770;control theory&#65292;&#36825;&#20010;&#27010;&#24565;&#25551;&#36848;&#20102;&#25105;&#20204;&#36890;&#36807;&#23545;&#31995;&#32479;&#30340;&#36755;&#20837;&#21644;&#36755;&#20986;&#26469;&#20102;&#35299;&#20854;&#30340;&#33021;&#21147;&#12290;&#26412;&#25991;&#23558;&#37325;&#28857;&#20171;&#32461;&#20855;&#26377;&#21487;&#35266;&#23519;&#24615;&#30340;&#36755;&#20986;&#32452;&#20214;&#12290;&#21578;&#35686;&#21487;&#35270;&#21270;&#24037;&#20855;&#21487;&#20197;&#23545;&#20854;&#23427;&#31995;&#32479;&#30340;&#36755;&#20986;&#36827;&#34892;&#20998;&#26512;&#65292;&#36827;&#32780;&#23545;&#36755;&#20986;&#30340;&#20449;&#24687;&#36827;&#34892;&#32467;&#26500;&#21270;&#34920;&#31034;&#12290;&#21578;&#35686;&#23454;&#38469;&#19978;&#26159;&#23545;&#31995;&#32479;&#24322;&#24120;&#29366;&#24577;&#30340;&#25551;&#36848;&#65292;&#32780;&#21487;&#35270;&#21270;&#21017;&#26159;&#35753;&#29992;&#25143;&#33021;&#22815;&#30452;&#35266;&#29702;&#35299;&#30340;&#32467;&#26500;&#21270;&#34920;&#31034;&#12290;&#24120;&#35265;&#30340;&#21487;&#35270;&#21270;&#21578;&#35686;&#21578;&#35686;&#39318;&#20808;&#35201;&#26126;&#30830;&#19968;&#19979;&#21578;&#35686;alert&#30340;&#21547;&#20041;&#12290;&#22312;&#20154;&#21592;&#26080;&#27861;&#21709;&#24212;&#21578;&#35686;&#20869;&#23481;&#24773;&#20917;&#19979;&#65292;&#19981;&#24212;&#35813;&#21457;&#36865;&#21578;&#35686; —— &#21253;&#25324;&#37027;&#20123;&#21457;&#32473;&#22810;&#20010;&#20154;&#20294;&#21482;&#26377;&#20854;&#20013;&#23569;&#25968;&#20154;&#21487;&#20197;&#21709;&#24212;&#30340;&#21578;&#35686;&#65292;&#20197;&#21450;&#31995;&#32479;&#20013;&#30340;&#27599;&#20010;&#24322;&#24120;&#37117;&#35302;&#21457;&#30340;&#21578;&#35686;&#12290;&#22240;&#20026;&#36825;&#26679;&#20250;&#20135;&#29983;&#21578;&#35686;&#30130;&#21171;&#65292;&#21578;&#35686;&#25509;&#25910;&#32773;&#20063;&#24448;&#24448;&#20250;&#23545;&#36825;&#20123;&#36807;&#22810;&#30340;&#21578;&#35686;&#37319;&#21462;&#24573;&#35270;&#30340;&#24577;&#24230; —— &#30452;&#21040;&#31995;&#32479;&#24694;&#21270;&#21040;&#20197;&#23569;&#35265;&#30340;&#26041;&#24335;&#21578;&#35686;&#12290;&#20363;&#22914;&#65292;&#22914;&#26524;&#31649;&#29702;&#21592;&#27599;&#22825;&#37117;&#20250;&#25910;&#21040;&#21578;&#35686;&#31995;&#32479;&#21457;&#26469;&#30340;&#25968;&#30334;&#23553;&#21578;&#35686;&#37038;&#20214;&#65292;&#20182;&#23601;&#24456;&#23481;&#26131;&#20250;&#24573;&#30053;&#21578;&#35686;&#31995;&#32479;&#30340;&#25152;&#26377;&#37038;&#20214;&#12290;&#38500;&#38750;&#20182;&#30495;&#30340;&#30475;&#21040;&#38382;&#39064;&#21457;&#29983;&#65292;&#25110;&#32773;&#21463;&#21040;&#20102;&#23458;&#25143;&#25110;&#19978;&#32423;&…
Python 函数式编程:不可变数据结构

不可变性可以帮助我们更好地理解我们的代码。下面我将讲述如何在不牺牲性能的条件下来实现它。Media

via https://linux.cn/article-10222-1.html
Python &#20989;&#25968;&#24335;&#32534;&#31243;&#65306;&#19981;&#21487;&#21464;&#25968;&#25454;&#32467;&#26500;

&#19981;&#21487;&#21464;&#24615;&#21487;&#20197;&#24110;&#21161;&#25105;&#20204;&#26356;&#22909;&#22320;&#29702;&#35299;&#25105;&#20204;&#30340;&#20195;&#30721;&#12290;&#19979;&#38754;&#25105;&#23558;&#35762;&#36848;&#22914;&#20309;&#22312;&#19981;&#29306;&#29298;&#24615;&#33021;&#30340;&#26465;&#20214;&#19979;&#26469;&#23454;&#29616;&#23427;&#12290;<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/11/224129ysll52s353dsnvyd.png">Media</a>&#22312;&#36825;&#20010;&#30001;&#20004;&#31687;&#25991;&#31456;&#26500;&#25104;&#30340;&#31995;&#21015;&#20013;&#65292;&#25105;&#23558;&#35752;&#35770;&#22914;&#20309;&#23558;&#20989;&#25968;&#24335;&#32534;&#31243;&#26041;&#27861;&#35770;&#20013;&#30340;&#24605;&#24819;&#24341;&#20837;&#33267; Python &#20013;&#65292;&#26469;&#20805;&#20998;&#21457;&#25381;&#36825;&#20004;&#20010;&#39046;&#22495;&#30340;&#20248;&#21183;&#12290;&#26412;&#25991;&#65288;&#20063;&#23601;&#26159;&#31532;&#19968;&#31687;&#25991;&#31456;&#65289;&#20013;&#65292;&#25105;&#20204;&#23558;&#25506;&#35752;&#19981;&#21487;&#21464;&#25968;&#25454;&#32467;&#26500;&#30340;&#20248;&#21183;&#12290;&#31532;&#20108;&#37096;&#20998;&#20250;&#25506;&#35752;&#22914;&#20309;&#22312; toolz &#24211;&#30340;&#24110;&#21161;&#19979;&#65292;&#29992; Python &#23454;&#29616;&#39640;&#23618;&#27425;&#30340;&#20989;&#25968;&#24335;&#32534;&#31243;&#29702;&#24565;&#12290;&#20026;&#20160;&#20040;&#35201;&#29992;&#20989;&#25968;&#24335;&#32534;&#31243;&#65311;&#22240;&#20026;&#21464;&#21270;&#30340;&#19996;&#35199;&#26356;&#38590;&#25512;&#29702;&#12290;&#22914;&#26524;&#20320;&#24050;&#32463;&#30830;&#20449;&#21464;&#21270;&#20250;&#24102;&#26469;&#40635;&#28902;&#65292;&#37027;&#24456;&#26834;&#12290;&#22914;&#26524;&#20320;&#36824;&#27809;&#26377;&#34987;&#35828;&#26381;&#65292;&#22312;&#25991;&#31456;&#32467;&#26463;&#26102;&#65292;&#20320;&#20250;&#26126;&#30333;&#36825;&#19968;&#28857;&#30340;&#12290;&#25105;&#20204;&#20174;&#24605;&#32771;&#27491;&#26041;&#24418;&#21644;&#30697;&#24418;&#24320;&#22987;&#12290;&#22914;&#26524;&#25105;&#20204;&#25243;&#24320;&#23454;&#29616;&#32454;&#33410;&#65292;&#21333;&#20174;&#25509;&#21475;&#30340;&#35282;&#24230;&#32771;&#34385;&#65292;&#27491;&#26041;&#24418;&#26159;&#30697;&#24418;&#30340;&#23376;&#31867;&#21527;&#65311;&#23376;&#31867;&#30340;&#23450;&#20041;&#22522;&#20110;<a href="https://en.wikipedia.org/wiki/Liskov_substitution_principle">&#37324;&#27663;&#26367;&#25442;&#21407;&#21017;</a>&#12290;&#19968;&#20010;&#23376;&#31867;&#24517;&#39035;&#33021;&#22815;&#23436;&#25104;&#36229;&#31867;&#25152;&#20570;&#30340;&#19968;&#20999;&#12290;&#22914;&#20309;&#20026;&#30697;&#24418;&#23450;&#20041;&#25509;&#21475;&#65311;<pre class="prettyprint linenums">from zope.interface import Interfaceclass IRectangle(Interface): def get_length(self): """&#27491;&#26041;&#24418;&#33021;&#20570;&#21040;""" def get_width(self): """&#27491;&#26041;&#24418;&#33021;&#20570;&#21040;""" def set_dimensions(self, length, width): """&#21834;&#21734;"""</pre>&#22914;&#26524;&#25105;&#20204;&#36825;&#20040;&#23450;&#20041;&#65292;&#37027;&#27491;&#26041;&#24418;&#23601;&#19981;&#33021;&#25104;&#20026;&#30697;&#24418;&#30340;&#23376;&#31867;&#65306;&#22914;&#26524;&#38271;&#24230;&#21644;&#23485;&#24230;&#19981;&#31561;&#65292;&#23427;&#23601;&#26080;&#27861;&#23545; set_dimensions &#26041;&#27861;&#20570;&#20986;&#21709;&#24212;&#12290;&#21478;&#19968;&#31181;&#26041;&#27861;&#65292;&#26159;&#36873;&#25321;&#23558;&#30697;&#24418;&#20570;&#25104;&#19981;&#21487;&#21464;&#23545;&#35937;&#12290;<pre class="prettyprint linenums">class IRectangle(Interface): def get_length(self): """&#27491;&#26041;&#24418;&#33021;&#20570;&#21040;""" def get_width(self): """&#27491;&#26041;&#24418;&#33021;&#20570;&#21040;""" def with_dimensions(self, length, width): """&#36820;&#22238;&#19968;&#20010;&#26032;&#30697…
KRS:一个收集 Kubernetes 资源统计数据的新工具

零配置工具简化了信息收集,例如在某个命名空间中运行了多少个 pod。Media

via https://linux.cn/article-10223-1.html
KRS&#65306;&#19968;&#20010;&#25910;&#38598; Kubernetes &#36164;&#28304;&#32479;&#35745;&#25968;&#25454;&#30340;&#26032;&#24037;&#20855;

&#38646;&#37197;&#32622;&#24037;&#20855;&#31616;&#21270;&#20102;&#20449;&#24687;&#25910;&#38598;&#65292;&#20363;&#22914;&#22312;&#26576;&#20010;&#21629;&#21517;&#31354;&#38388;&#20013;&#36816;&#34892;&#20102;&#22810;&#23569;&#20010; pod&#12290;<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/12/000555pwe0z50h59dvw9dz.png">Media</a>&#26368;&#36817;&#25105;&#22312;&#32445;&#32422;&#30340; O'Reilly Velocity &#23601; <a href="http://troubleshooting.kubernetes.sh/">Kubernetes &#24212;&#29992;&#25925;&#38556;&#25490;&#38500;</a>&#30340;&#20027;&#39064;&#21457;&#34920;&#20102;&#28436;&#35762;&#65292;&#24182;&#19988;&#22312;&#31215;&#26497;&#30340;&#21453;&#39304;&#21644;&#35752;&#35770;&#30340;&#25512;&#21160;&#19979;&#65292;&#25105;&#20915;&#23450;&#37325;&#26032;&#23457;&#35270;&#36825;&#20010;&#39046;&#22495;&#30340;&#24037;&#20855;&#12290;&#32467;&#26524;&#65292;&#38500;&#20102; <a href="https://github.com/kubernetes-incubator/spartakus">kubernetes-incubator/spartakus</a> &#21644; <a href="https://github.com/kubernetes/kube-state-metrics">kubernetes/kube-state-metrics</a> &#20043;&#22806;&#65292;&#25105;&#20204;&#36824;&#27809;&#26377;&#22826;&#22810;&#30340;&#36731;&#37327;&#32423;&#24037;&#20855;&#26469;&#25910;&#38598;&#36164;&#28304;&#32479;&#35745;&#25968;&#25454;&#65288;&#20363;&#22914;&#21629;&#21517;&#31354;&#38388;&#20013;&#30340; pod &#25110;&#26381;&#21153;&#30340;&#25968;&#37327;&#65289;&#12290;&#25152;&#20197;&#65292;&#25105;&#22312;&#22238;&#23478;&#30340;&#36335;&#19978;&#24320;&#22987;&#32534;&#20889;&#19968;&#20010;&#23567;&#24037;&#20855; —— &#21019;&#36896;&#24615;&#22320;&#21629;&#21517;&#20026; krs&#65292;&#23427;&#26159; Kubernetes Resource Stats &#30340;&#31616;&#31216; &#65292;&#23427;&#20801;&#35768;&#20320;&#25910;&#38598;&#36825;&#20123;&#32479;&#35745;&#25968;&#25454;&#12290;&#20320;&#21487;&#20197;&#36890;&#36807;&#20004;&#31181;&#26041;&#24335;&#20351;&#29992; <a href="https://github.com/mhausenblas/krs">mhausenblas/krs</a>&#65306;&#30452;&#25509;&#22312;&#21629;&#20196;&#34892;&#65288;&#26377; Linux&#12289;Windows &#21644; MacOS &#30340;&#20108;&#36827;&#21046;&#25991;&#20214;&#65289;&#65292;&#20197;&#21450;&#22312;&#38598;&#32676;&#20013;&#20351;&#29992; <a href="https://github.com/mhausenblas/krs/blob/master/launch.sh">launch.sh</a> &#33050;&#26412;&#37096;&#32626;&#65292;&#35813;&#33050;&#26412;&#21160;&#24577;&#21019;&#24314;&#36866;&#24403;&#30340;&#22522;&#20110;&#35282;&#33394;&#30340;&#35775;&#38382;&#25511;&#21046;&#65288;RBAC&#65289; &#26435;&#38480;&#12290;&#25552;&#37266;&#20320;&#65292;&#23427;&#36824;&#22312;&#26089;&#26399;&#65292;&#24182;&#19988;&#36824;&#22312;&#24320;&#21457;&#20013;&#12290;&#20294;&#26159;&#65292;krs &#30340; 0.1 &#29256;&#26412;&#25552;&#20379;&#20197;&#19979;&#21151;&#33021;&#65306;&#22312;&#27599;&#20010;&#21629;&#21517;&#31354;&#38388;&#30340;&#22522;&#30784;&#19978;&#65292;&#23427;&#23450;&#26399;&#25910;&#38598;&#36164;&#28304;&#32479;&#35745;&#20449;&#24687;&#65288;&#25903;&#25345; pod&#12289;&#37096;&#32626;&#21644;&#26381;&#21153;&#65289;&#12290;&#23427;&#20197; <a href="https://openmetrics.io/">OpenMetrics &#26684;&#24335;</a>&#20844;&#24320;&#36825;&#20123;&#32479;&#35745;&#12290;&#23427;&#21487;&#20197;&#30452;&#25509;&#36890;&#36807;&#20108;&#36827;&#21046;&#25991;&#20214;&#20351;&#29992;&#65292;&#20063;&#21487;&#20197;&#22312;&#21253;&#21547;&#25152;&#26377;&#20381;&#36182;&#39033;&#30340;&#23481;&#22120;&#21270;&#35774;&#32622;&#20013;&#20351;&#29992;&#12290;&#30446;&#21069;&#65292;&#20320;&#38656;&#35201;&#23433;&#35013;&#24182;&#37197;&#32622; kubectl&#65292;&#22240;&#20026; krs &#20381;&#36182;&#20110;&#25191;&#34892; kubectl get all &#21629;&#20196;&#26469;&#25910;&#38598;&#32479;&#35745;&#25968;&#25454;&#12290;&#65288;&#21478;&#19968;&#26041;&#38754;&#65292;&#35841;&#20250;&#20351;&#29992; Kubernetes…
Bash 脚本中如何使用 here 文档将数据写入文件

here 文档不是什么特殊的东西,只是一种 I/O 重定向方式,它告诉 bash shell 从当前源读取输入,直到读取到只有分隔符的行。Media

via https://linux.cn/article-10224-1.html
Bash &#33050;&#26412;&#20013;&#22914;&#20309;&#20351;&#29992; here &#25991;&#26723;&#23558;&#25968;&#25454;&#20889;&#20837;&#25991;&#20214;

here &#25991;&#26723;here document &#65288;LCTT &#35793;&#27880;&#65306;here &#25991;&#26723;&#21448;&#31216;&#20316; heredoc &#65289;&#19981;&#26159;&#20160;&#20040;&#29305;&#27530;&#30340;&#19996;&#35199;&#65292;&#21482;&#26159;&#19968;&#31181; I/O &#37325;&#23450;&#21521;&#26041;&#24335;&#65292;&#23427;&#21578;&#35785; bash shell &#20174;&#24403;&#21069;&#28304;&#35835;&#21462;&#36755;&#20837;&#65292;&#30452;&#21040;&#35835;&#21462;&#21040;&#21482;&#26377;&#20998;&#38548;&#31526;&#30340;&#34892;&#12290;<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/12/095122pd5k2kwhkkj22k2s.jpg">redirect output of here document to a text file</a>&#36825;&#23545;&#20110;&#21521; ftp&#12289;cat&#12289;echo&#12289;ssh &#21644;&#35768;&#22810;&#20854;&#20182;&#26377;&#29992;&#30340; Linux/Unix &#21629;&#20196;&#25552;&#20379;&#25351;&#20196;&#24456;&#26377;&#29992;&#12290; &#27492;&#21151;&#33021;&#36866;&#29992;&#20110; bash &#20063;&#36866;&#29992;&#20110; Bourne&#12289;Korn&#12289;POSIX &#36825;&#19977;&#31181; shell&#12290;here &#25991;&#26723;&#35821;&#27861;&#35821;&#27861;&#26159;&#65306;<pre class="prettyprint linenums">command <<EOFcmd1cmd2 arg1EOF</pre>&#25110;&#32773;&#20801;&#35768; shell &#33050;&#26412;&#20013;&#30340; here &#25991;&#26723;&#20351;&#29992; EOF<<- &#20197;&#33258;&#28982;&#30340;&#26041;&#24335;&#32553;&#36827;&#65306;<pre class="prettyprint linenums">command <<-EOF msg1 msg2 $var on line EOF</pre>&#25110;&#32773;<pre class="prettyprint linenums">command <<'EOF' cmd1 cmd2 arg1 $var won't expand as parameter substitution turned off by single quotingEOF</pre>&#25110;&#32773; <strong>&#37325;&#23450;&#21521;&#24182;&#23558;&#20854;&#35206;&#30422;</strong> &#21040;&#21517;&#20026; my_output_file.txt &#30340;&#25991;&#20214;&#20013;&#65306;<pre class="prettyprint linenums">command <<EOF > my_output_file.txt mesg1 msg2 msg3 $var on $fooEOF</pre>&#25110;<strong>&#37325;&#23450;&#21521;&#24182;&#23558;&#20854;&#36861;&#21152;</strong>&#21040;&#21517;&#20026; my_output_file.txt &#30340;&#25991;&#20214;&#20013;&#65306;<pre class="prettyprint linenums">command <<EOF >> my_output_file.txt mesg1 msg2 msg3 $var on $fooEOF</pre>&#31034;&#20363;&#20197;&#19979;&#33050;&#26412;&#23558;&#25152;&#38656;&#20869;&#23481;&#20889;&#20837;&#21517;&#20026; /tmp/output.txt &#30340;&#25991;&#20214;&#20013;&#65306;<pre class="prettyprint linenums">#!/bin/bashOUT=/tmp/output.txtecho "Starting my script..."echo "Doing something..."cat <<EOF >$OUT Status of backup as on $(date) Backing up files $HOME and /etc/EOFecho "Starting backup using rsync..."</pre>&#20320;&#21487;&#20197;&#20351;&#29992;<a href="https//www.cyberciti.biz/faq/linux-unix-appleosx-bsd-cat-command-examples/">cat&#21629;&#20196;</a>&#26597;&#30475;/tmp/output.txt&#25991;&#20214;&#65306;<pre class="prettyprint linenums">$ cat /tmp/output.txt</pre>&#31034;&#20363;&#36755;&#20986;&#65306;<pre class="prettyprint linenums"> Status of backup as on Thu Nov 16 17:00:21 IST 2017 Backing up files /home/vivek and /etc/</pre>&#31105;&#29992;&#36335;&#24452;&#21517;/&#21442;&#25968;/&#21464;&#37327;&#25193;&#23637;&#12289;&#21629;&#20196;&#26367;&#25442;&#12289;&#31639;&#26415;&#25193;&#23637;&#20687; $HOME &#36825;&#31867;&#21464;&#37327;&#21644;&#20687; $(date) &#36825;&#31867;&#21629;&#20196;&#22312;&#33050;&#26412;&#20013;&#20250;&#34987;&#35299;&#37322;&#20026;&#26367;&#25442;&#12290; &#35201;&#31105;&#29992;&#23427;&#65292;&#35831;&#20351;&#29992;&#24102;&#26377; 'EOF' &#36825;&#26679;&#24102;&#26377;&#21333;&#24341;&#21495;&#30340;&#24418;&#24335;&#65292;&#22914;&#19979;&#25152;&#31034;&#65306;<pre class="prettyprint linenums">#!/bin/bashOUT=/tmp/output.txtecho "Starting my script..."echo "Doing something..."# No parameter and variable expansion, command substitution, arithmetic expansion, or pathname expansion is performed on…
10 分钟建设一个加密货币商城

这篇文章将会教你如何在 10 分钟中内借助 WordPress 建立起一个支持 ERC20 通证的在线 B2C 商城。Media

via https://linux.cn/article-10225-1.html
10 &#20998;&#38047;&#24314;&#35774;&#19968;&#20010;&#21152;&#23494;&#36135;&#24065;&#21830;&#22478;

&#36825;&#31687;&#25991;&#31456;&#23558;&#20250;&#25945;&#20320;&#22914;&#20309;&#22312; 10 &#20998;&#38047;&#20013;&#20869;&#20511;&#21161; WordPress &#24314;&#31435;&#36215;&#19968;&#20010;&#25903;&#25345; ERC20 &#36890;&#35777;&#30340;&#22312;&#32447; B2C &#21830;&#22478;&#12290;<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/12/230122jrplqhf0qlm0zhm9.jpg">Media</a>&#22312;&#21306;&#22359;&#38142;&#21450;&#36890;&#35777;&#32463;&#27982;&#22791;&#21463;&#30633;&#30446;&#30340;&#20170;&#22825;&#65292;&#24456;&#22810;&#24320;&#28304;&#31038;&#21306;&#32439;&#32439;&#22312;&#25506;&#35752;&#22914;&#20309;&#23558;&#24320;&#28304;&#31038;&#21306;&#19982;&#21306;&#22359;&#38142;&#25216;&#26415;&#21644;&#36890;&#35777;&#32463;&#27982;&#30456;&#32467;&#21512;&#65292;&#20174;&#32780;&#20026;&#24320;&#28304;&#31038;&#21306;&#21644;&#24320;&#28304;&#29983;&#24577;&#25552;&#20379;&#33258;&#20027;&#12289;&#33258;&#27965;&#12289;&#21457;&#23637;&#30340;&#21160;&#21147;&#21644;&#25903;&#25345;&#12290;&#25105;&#20204; Linux &#20013;&#22269;&#23601;&#26159;&#36825;&#35832;&#22810;&#25506;&#32034;&#30340;&#24320;&#28304;&#31038;&#21306;&#20043;&#19968;&#65292;&#21487;&#21916;&#30340;&#26159;&#65292;&#25105;&#20204;&#24050;&#32463;&#36808;&#20986;&#20102;&#31532;&#19968;&#27493;&#65306;<a href="https://linux.cn/article-9886-1.html">&#21457;&#24067;&#31038;&#21306;&#36890;&#35777;</a>&#65292;&#20063;&#36808;&#20986;&#20102;&#31532;&#20108;&#27493;&#65292;<a href="https://linux.cn/article-10178-1.html">&#20351;&#36890;&#35777;&#27969;&#36890;&#36215;&#26469;</a>&#12290;&#36825;&#37324;&#65292;&#25105;&#20204;&#24895;&#24847;&#20998;&#20139;&#25105;&#20204;&#30340;&#32463;&#39564;&#32473;&#21508;&#20010;&#31038;&#21306;&#20249;&#20276;&#65292;&#20351;&#26356;&#22810;&#30340;&#24320;&#28304;&#31038;&#21306;&#20063;&#21487;&#20197;&#25237;&#36523;&#20110;&#26032;&#30340;&#29983;&#24577;&#25506;&#32034;&#65292;&#36991;&#24320;&#19968;&#20123;&#25105;&#20204;&#36935;&#21040;&#30340;&#38519;&#38449;&#65292;&#20174;&#32780;&#20849;&#21516;&#33829;&#36896;&#19968;&#20010;&#26356;&#32321;&#33635;&#30340;&#24320;&#28304;&#19990;&#30028;&#12290;&#25105;&#20204;&#30340;<a href="https://shop.linux.cn/">&#36890;&#35777;&#21830;&#22478;</a>&#26159;&#22522;&#20110; WordPress &#30340; WooCommerce &#21830;&#22478;&#26500;&#24314;&#30340;&#12290;&#23433;&#35013; WordPress&#22312;&#24320;&#22987;&#37197;&#32622;&#21830;&#22478;&#21069;&#65292;&#20320;&#38656;&#35201;&#20808;&#23433;&#35013; WordPress &#12290;&#20320;&#38656;&#35201;&#36141;&#20080;&#19968;&#20010;&#25903;&#25345; PHP + MySQL &#30340;&#34394;&#25311;&#20027;&#26426;&#65292;&#25110;&#33258;&#34892;&#37197;&#32622; VPS&#12289;&#20113;&#26381;&#21153;&#22120;&#30340;&#29615;&#22659;&#65292;&#20197;&#25903;&#25345; WordPress &#30340;&#36816;&#34892;&#12290;<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/12/230241urkdj4dzk2b06crj.jpg">Media</a>&#24403;&#20320;&#23433;&#35013;&#22909; WordPress &#21518;&#65292;&#20320;&#21487;&#20197;&#30475;&#21040;&#19968;&#20010;&#36825;&#26679;&#30340;&#21518;&#21488;&#12290;&#23433;&#35013; WooCommerce&#23433;&#35013;&#23436; WordPress &#21518;&#65292;&#25509;&#19979;&#26469;&#23433;&#35013; WordPress &#30340;&#21830;&#22478;&#25554;&#20214; WooCommerce &#65292;&#28857;&#20987;&#33756;&#21333;&#26639;&#20013;&#30340;“&#25554;&#20214;”-“&#23433;&#35013;&#25554;&#20214;”&#65292;&#35775;&#38382;&#21040;&#23433;&#35013;&#25554;&#20214;&#30340;&#30028;&#38754;&#65292;&#22312;&#30028;&#38754;&#21491;&#19978;&#35282;&#30340;&#25628;&#32034;&#26694;&#20869;&#23481;&#36755;&#20837;“WooCommerce”&#65292;&#24182;&#25353;&#19979;&#22238;&#36710;&#65292;&#21487;&#20197;&#25628;&#32034;&#21040; WooCommerce &#12290;<a href="https://dn-linuxcn.qbox.me/data/attachment/album/201811/12/230241w4202h26s8hpzqs8.jpg">Media</a>&#28857;&#20987;&#29616;&#22312;…