[{"title": "Windows\u4f7f\u7528cwRsync\u540c\u6b65", "desc": "\u6211\u4f7f\u7528\u7684\u662fWindows\u4f5c\u4e3a\u670d\u52a1\u5668\u7aef\uff0c\u6bd4Linux\u914d\u7f6e\u7b80\u5355\uff0c\u5173\u952e\u91cd\u542f\u4e5f\u65b9\u4fbf\u76f4\u63a5\u91cd\u542f\u670d\u52a1\u5c31\u884c\u4e86\uff0c\u6ce8\u610f\u5fc5\u987b\u4f7f\u7528\u5b89\u88c5\u7248\uff0c\u5982\u679c\u4f7f\u7528 Linux \u90a3\u6837\u5728 CMD \u91cc\u9762\u901a\u8fc7 rsync --daemon \u65b9\u5f0f\u542f\u52a8\uff0c\u5ba2\u6237\u7aef\u4f1a\u62a5\u5404\u79cd\u9519\u8bef\u3002\u5b89\u88c5\u7684\u65f6\u5019\u8bbe\u7f6e\u5bc6\u7801\u4e0d\u80fd\u6709\u7279\u6b8a\u7b26\u53f7\u6bd4\u5982@\uff0c\u6709\u7279\u6b8a\u7b26\u53f7\u5728\u670d\u52a1\u91cc\u9762\u627e\u4e0d\u5230 RsyncService \u670d\u52a1\u4f1a\u5bfc\u81f4\u670d\u52a1\u8d77\u4e0d\u6765\u3002", "content": "

\u7ed9\u51farsync.conf\u914d\u7f6e

gid = 0

uid = 0

use chroot = false

strict modes = false

hosts allow = 120.220.XX.xxx

log file = rsyncd.log

port = 9003

lock file = rsyncd.lock

max connections = 8

# Module definitions

# Remember cygwin naming conventions : c:\\work becomes /cygwin/c/work

#

[upload]

path = /cygdrive/D/wwwroot/webftp

read only = false

transfer logging = yes


\u8bf4\u660e\uff1a

\u56e0\u4e3a\u6211\u9650\u5236\u4e86\u8bbf\u95ee\u7684IP\u5730\u5740,\u6240\u4ee5\u6ca1\u5728 [upload] \u76ee\u5f55\u4e0b\u8bbe\u7f6e\u5bc6\u7801\uff0c\u9632\u6b62\u5728\u6709\u5176\u5b83\u9519\u8bef\u53d1\u751f\u3002\u5176\u4e2d   /cygdrive/D/wwwroot/webftp \u4ee3\u8868D\u76d8\u7684 wwwroot/webftp\u76ee\u5f55\uff0c\u7136\u540e\u5230windows\u7684\u670d\u52a1\u91cc\u9762\u91cd\u542f RsyncService \u76ee\u5f55\u5373\u53ef\u3002

\u5bf9\u4e8e\u5ba2\u6237\u7aef\uff0c\u53ea\u8981\u4e0b\u8f7d\u5b98\u65b9\u7684cwrsync_5.5.0_x86_free \u89e3\u538b\uff0c\u7136\u540eCMD \u8fdb\u5165\u89e3\u538b\u7684\u76ee\u5f55\uff0c\u547d\u4ee4\u4f7f\u7528\u65b9\u6cd5\u548clinux\u4e00\u6837\u3002

\u4f8b\uff1arsync -av serverIp::upload /cygdrive/D/123 

\u4e0a\u8ff0\u4f8b\u5b50\u5c06 serverIp \u6362\u6210\u670d\u52a1\u7aefIP\u5730\u5740\uff0c\u5c31\u662f\u5c06\u4e0a\u9762\u914d\u7f6e\u7684 D\u76d8\u7684 wwwroot/webftp\u76ee\u5f55\u7684\u5185\u5bb9\u540c\u6b65\u5230\u5ba2\u6237\u7aef\u7684 D\u76d8123\u76ee\u5f55\u3002

"}, {"title": "\u4f7f\u7528all_squash\u642d\u5efanfs\u5171\u4eab\u76ee\u5f55", "desc": "\u7f51\u4e0a\u67e5\u4e86\u597d\u591a\u90fd\u662f\u7528 no_root_squash \u90e8\u7f72 nfs \u7684\uff0c\u56e0\u4e3a\u559c\u6b22\u6298\u817e\uff0c\u6240\u4ee5\u81ea\u5df1\u6574 all_squash \u65b9\u5f0f\u642d\u5efa\uff0c\u5fc5\u987b\u6309\u7167\u6b65\u9aa4\u6765\uff0c\u6211\u8bd5\u8fc7\u6ca1\u6309\u6b65\u9aa4\u5bfc\u81f4\u6743\u9650\u4e0d\u8db3\u8bbf\u95ee\u4e0d\u4e86\u7684\u3002\u6211\u4e3b\u8981\u662f\u4e3a\u4e86 docker service \u4f7f\u7528\u7684\u3002", "content": "

\u6211\u7684\u64cd\u4f5c\u7cfb\u7edf CentOS Linux release 7.6.1810 (Core) 

1.\u5b89\u88c5  nfs-utils \uff0c\u9ed8\u8ba4\u5e94\u8be5\u4f1a\u628a rpcbind  \u88c5\u4e0a

yum install -y  nfs-utils 

\u5982\u679c\u6ca1\u6709\u7684\u8bdd\u8fd8\u8981

systemctl start rpcbind  

2.\u542f\u52a8\u670d\u52a1\u5668\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f

systemctl start rpcbind   #\u542f\u52a8systemctl enable rpcbind \u8bbe\u7f6e\u5f00\u673a\u81ea\u542f 

systemctl start nfs-server   #\u542f\u52a8nfs\u670d\u52a1 

3.\u5f00\u901a\u9632\u706b\u5899

firewall-cmd --permanent --add-service=nfs  #\u914d\u7f6e\u9632\u706b\u5899

firewall-cmd --permanent --zone public --add-service mountd

firewall-cmd --permanent --zone public --add-service rpc-bind

firewall-cmd  --reload 

4.\u670d\u52a1\u7aef\u65b0\u5efa\u4e00\u4e2a\u76ee\u5f55\u7528\u4e8e\u5171\u4eab

# mkdir /home/nfsnfsnobody

##\u4fee\u6539\u6743\u9650\u8fd9\u6b65\u975e\u5e38\u5173\u952e\uff0c\u5982\u679c\u4e0d\u8bbe\u7f6e\u53ef\u80fd\u4f1a\u663e\u793a\u6ca1\u6743\u9650

# chown -R nfsnobody:nfsnobody /home/nfs

5.\u914d\u7f6e\u53c2\u6570

# vi /etc/exports

\u52a0\u5165\u5185\u5bb9\uff1a/home/nfs 192.168.134.0/24(rw,sync,anonuid=65534,anongid=65534,all_squash)

\u5176\u4e2d192.168.134.0 \u662f\u6211\u7684\u5185\u90e8IP\u5730\u5740\u7aef\uff0c\u9700\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u66ff\u6362 \uff0canonuid\u548canongid \u662f nfsnobody \u8d26\u6237\u7684uid\u548cgid.

\u91cd\u542f\u670d\u52a1 systemctl restart nfs

6.\u6d4b\u8bd5

node2 ~ # showmount -e 192.168.134.100

Export list for 192.168.134.100:

/home/nfs 192.168.134.0/24

\u65b0\u5efa\u4e00\u4e2a\u76ee\u5f55\u7528\u6765\u6302\u8f7d

core@node1 ~ $ sudo mkdir /123

core@node1 ~ $ mount 192.168.134.100:/home/nfs /123

mount: only root can do that

core@node1 ~ $ sudo mount 192.168.134.100:/home/nfs /123

core@node1 ~ $ cd /123

core@node1 /123 $ ls

\u4f7f\u7528systemd \u81ea\u52a8\u6302\u8f7d\u76ee\u5f55

core@node1 /etc/systemd/system $ vi home-nfs.mount 

[Unit]

Description=mount a disk


[Mount]

What=192.168.134.100:/home/nfs

where=/123

Type=nfs4

Options=defaults

[Install]

WantedBy=local-fs.target

"}, {"title": "NAS \u5171\u4eab\u8bbf\u95ee\u534f\u8bae \u2014 NFS\u3001SMB\u3001FTP\u3001WebDAV \u4f18\u52bf\uff1f", "desc": "\u4eca\u5929\u6211\u4eec\u6765\u8ba8\u8bba\u4e00\u4e0b nas \u5e38\u89c1\u7684\u5171\u4eab\u8bbf\u95ee\u534f\u8bae\uff1anfs\u3001smb\u3001ftp\u3001webdav\uff0c\u54ea\u4e9b\u901f\u5ea6\u5feb\uff0c\u54ea\u4e9b\u517c\u5bb9\u6027\u597d\uff0c\u5982\u4f55\u9009\u62e9\u3002 nfsnfs\uff08\u7f51\u7edc...\u6b64\u540e\u7ecf\u8fc7\u591a\u5e74\u7684\u53d1\u5c55\u548c\u5b8c\u5584\u3002 \u901a\u5e38\u6240\u8bf4\u7684 ftp \u65e2\u53ef\u6307 ftp \u534f\u8bae\uff0c\u4e5f\u53ef\u6307 ftp \u5e94\u7528\u7a0b\u5e8f\u3002", "content": "

\u968f\u7740\u667a\u80fd\u5316\u4e92\u8054\u65f6\u4ee3\u7684\u6765\u4e34\uff0c\u5bb6\u4e2d\u7684\u667a\u80fd\u8bbe\u5907\u8d8a\u6765\u8d8a\u591a\uff1a\u7535\u89c6\u673a\u3001\u5e73\u677f\u3001\u6e38\u620f\u4e3b\u673a\u3001\u7535\u8111\u3001\u624b\u673a\u7b49\u904d\u53ca\u5bb6\u4e2d\u5404\u4e2a\u89d2\u843d\uff0c\u540c\u65f6\u8bbe\u5907\u4e4b\u95f4\u5171\u4eab\u6570\u636e\u7684\u9700\u6c42\u53d8\u7684\u8d8a\u6765\u8d8a\u5f3a\u70c8\u3002\u6bd4\u5982\u540c\u6b65\u3001\u5907\u4efd\u624b\u673a\u4e0a\u7684\u7167\u7247\u548c\u89c6\u9891\uff0c\u5728\u7535\u89c6\u673a\u4e0a\u89c2\u770b\u7535\u8111\u4e2d\u4e0b\u8f7d\u7684\u5f71\u7247\u3001\u624b\u673a\u62cd\u6444\u7684\u89c6\u9891\uff0c\u5b58\u50a8\u9ad8\u6e05\u7535\u5f71\u3001\u97f3\u4e50\u3001VLOG \u7d20\u6750\u7b49\u3002\u8fd9\u65f6\u5019\u5728\u5bb6\u4e2d\u642d\u5efa\u4e00\u53f0 NAS\uff08Network Attached Storage\uff1a\u7f51\u7edc\u9644\u5c5e\u5b58\u50a8\uff09\u5b58\u50a8\u670d\u52a1\u5668\u662f\u4e0d\u9519\u7684\u9009\u62e9\uff0c\u5728\u5907\u4efd\u4fdd\u969c\u6570\u636e\u5b89\u5168\u7684\u540c\u65f6\u7ed9\u5bb6\u5ead\u5a31\u4e50\u5e26\u6765\u66f4\u591a\u65b9\u4fbf\u3002\u5728\u4f01\u4e1a\u4e2d\uff0cNAS \u4e5f\u6709\u7740\u5e7f\u6cdb\u7684\u5e94\u7528\uff0c\u5176\u90e8\u7f72\u7b80\u5355\uff0c\u6269\u5c55\u65b9\u4fbf\uff0c\u5728\u6587\u4ef6\u5171\u4eab\u3001\u5bb9\u707e\u5907\u4efd\u9886\u57df\u53d1\u6325\u4e86\u91cd\u8981\u4f5c\u7528\u3002

NAS \u5b58\u50a8\u670d\u52a1\u5668\u6709\u8bb8\u591a\u4e13\u4e1a\u5382\u5546\uff0c\u6bd4\u5982\u7fa4\u6656\uff08 Synology\uff09\u3001\u94c1\u5a01\u9a6c\uff08TerraMaster\uff09\u7b49\uff0c\u52a8\u624b\u80fd\u529b\u5f3a\u7684\u7528\u6237\u53ef\u4ee5 DIY \u786c\u4ef6\u5f00\u6e90\u7cfb\u7edf\u81ea\u5df1\u642d\u5efa\u3002\u4e0d\u8fc7\u8fd9\u4e9b\u4e0d\u662f\u4eca\u5929\u8ba8\u8bba\u7684\u8bdd\u9898\uff0c\u4eca\u5929\u6211\u4eec\u6765\u8ba8\u8bba\u4e00\u4e0b NAS \u5e38\u89c1\u7684\u5171\u4eab\u8bbf\u95ee\u534f\u8bae\uff1aNFS\u3001SMB\u3001FTP\u3001WebDav\uff0c\u54ea\u4e9b\u901f\u5ea6\u5feb\uff0c\u54ea\u4e9b\u517c\u5bb9\u6027\u597d\uff0c\u5982\u4f55\u9009\u62e9\u3002

NFS

NFS\uff08\u7f51\u7edc\u6587\u4ef6\u7cfb\u7edf Network File System\uff09\u662f\u4e00\u79cd\u5206\u5e03\u5f0f\u6587\u4ef6\u7cfb\u7edf\u534f\u8bae\uff0c\u529b\u6c42\u5ba2\u6237\u7aef\u4e3b\u673a\u53ef\u4ee5\u8bbf\u95ee\u670d\u52a1\u5668\u7aef\u6587\u4ef6\uff0c\u5e76\u4e14\u5176\u8fc7\u7a0b\u4e0e\u8bbf\u95ee\u672c\u5730\u5b58\u50a8\u65f6\u4e00\u6837\uff0c\u5b83\u7531 Sun \u516c\u53f8\uff08\u5df2\u88ab Oracle \u6536\u8d2d\uff09\u5f00\u53d1\uff0c\u4e8e 1984 \u5e74\u53d1\u5e03\uff0c\u6700\u65b0\u7248\u672c NFSv4.2 \u4e8e 2016 \u5e74\u53d1\u5e03\u3002NFS \u57fa\u4e8e\u5f00\u653e\u7f51\u7edc\u8fd0\u7b97\u8fdc\u7a0b\u8fc7\u7a0b\u8c03\u7528\uff08ONC RPC\uff09\u534f\u8bae\uff1a\u4e00\u4e2a\u5f00\u653e\u3001\u6807\u51c6\u7684 RFC \u534f\u8bae\uff0c\u4efb\u4f55\u4eba\u6216\u7ec4\u7ec7\u90fd\u53ef\u4ee5\u4f9d\u636e\u6807\u51c6\u5b9e\u73b0\u5b83\u3002

NFS \u901a\u5e38\u4f7f\u7528\u5728 Unix \u64cd\u4f5c\u7cfb\u7edf\u4e0a\uff08\u6bd4\u5982 Solaris\u3001AIX \u53ca HP-UX\uff09\u548c\u5176\u4ed6\u7c7b Unix \u64cd\u4f5c\u7cfb\u7edf\uff08\u4f8b\u5982 Linux \u53ca FreeBSD\uff09\uff0c\u540c\u65f6\u5728 macOS \u548c Windows \u7cfb\u7edf\u4e5f\u63d0\u4f9b\u4e86 NFS \u5b9e\u73b0\u3002\u4e0d\u8fc7\u5728 Windows \u7cfb\u7edf\u4e0a\u6302\u8f7d NFS \u5171\u4eab\u76ee\u5f55\u65f6\uff0c\u7531\u4e8e Windows \u81ea\u5e26\u7684 NFS \u5ba2\u6237\u7aef\u957f\u4e45\u4ee5\u6765\u4e0d\u652f\u6301 UTF-8\uff0c\u4f1a\u81f4\u4e2d\u6587\u6587\u4ef6\u548c\u76ee\u5f55\u663e\u793a\u4e3a\u4e71\u7801\u3002

NFS \u7684\u4f18\u70b9\u662f\u5185\u6838\u76f4\u63a5\u652f\u6301\uff0c\u90e8\u7f72\u7b80\u5355\u3001\u8fd0\u884c\u7a33\u5b9a\uff0c\u534f\u8bae\u7b80\u5355\u3001\u4f20\u8f93\u6548\u7387\u9ad8\u3002

NFS \u7684\u7f3a\u70b9\u662f\u6ca1\u6709\u52a0\u5bc6\u6388\u6743\u7b49\u529f\u80fd\uff0c\u4ec5\u4f9d\u9760 IP \u5730\u5740\u6216\u4e3b\u673a\u540d\u6765\u51b3\u5b9a\u7528\u6237\u80fd\u5426\u6302\u8f7d\u5171\u4eab\u76ee\u5f55\uff0c\u5bf9\u5177\u4f53\u76ee\u5f55\u548c\u6587\u4ef6\u65e0\u6cd5\u8fdb\u884c ACL \u6743\u9650\u63a7\u5236\uff08NFSv4 \u4ee5\u524d\uff09\u3002\u901a\u5e38\u7684\u505a\u6cd5\u662f\u901a\u8fc7 Kerberos \u5bf9 NFS \u8fdb\u884c\u8ba4\u8bc1\u53ca\u52a0\u5bc6\uff0c\u4e0d\u8fc7\u90e8\u7f72\u914d\u7f6e\u6bd4\u8f83\u9ebb\u70e6\u3002

SMB / Samba

Samba \u662f SMB/CIFS\uff08Server Message Block / Common Internet File System\uff09\u7f51\u7edc\u534f\u8bae\u7684\u91cd\u65b0\u5b9e\u73b0\uff0c\u53ef\u4ee5\u5728\u5c40\u57df\u7f51\u4e0d\u540c\u8ba1\u7b97\u673a\u4e4b\u95f4\u8fdb\u884c\u6587\u4ef6\u3001\u6253\u5370\u673a\u7b49\u8d44\u6e90\u5171\u4eab\uff0c\u548c NFS \u529f\u80fd\u7c7b\u4f3c\u3002

SMB \u6700\u65e9\u662f\u5fae\u8f6f\u4e3a\u81ea\u5df1\u9700\u6c42\u8bbe\u8ba1\u7684\u4e13\u7528\u534f\u8bae\uff0c\u7528\u6765\u5b9e\u73b0\u5fae\u8f6f\u4e3b\u673a\u4e4b\u95f4\u7684\u6587\u4ef6\u5171\u4eab\u4e0e\u6253\u5370\u5171\u4eab\uff0c\u5e76\u4e0d\u652f\u6301\u5728 Linux \u4e0a\u8fd0\u884c\u3002\u8457\u540d\u9ed1\u5ba2\u3001\u6280\u672f\u5927\u725b Andrew Tridgell \u901a\u8fc7\u9006\u5411\u5de5\u7a0b\uff0c\u5728 Linux \u4e0a\u5b9e\u73b0\u7684 SMB / CIFS \u517c\u5bb9\u534f\u8bae\uff0c\u547d\u540d\u4e3a Samba\uff0c\u901a\u8fc7\u8be5\u7a0b\u5e8f\u5b9e\u73b0\u4e86 Windows \u548c Linux \u4e4b\u95f4\u7684\u6587\u4ef6\u5171\u4eab\u3002

SMB \u534f\u8bae\u662f C/S \u7c7b\u578b\u534f\u8bae\uff0c\u5ba2\u6237\u673a\u901a\u8fc7\u8be5\u534f\u8bae\u53ef\u4ee5\u8bbf\u95ee\u670d\u52a1\u5668\u4e0a\u7684\u5171\u4eab\u6587\u4ef6\u7cfb\u7edf\u3001\u6253\u5370\u673a\u53ca\u5176\u4ed6\u8d44\u6e90\u3002\u901a\u8fc7\u8bbe\u7f6e\u201cNetBIOS over TCP/IP\u201d\uff0cSamba \u4e0d\u4f46\u80fd\u4e0e\u5c40\u57df\u7f51\u7edc\u4e3b\u673a\u5206\u4eab\u8d44\u6e90\uff0c\u8fd8\u80fd\u4e0e\u5168\u4e16\u754c\u7684\u7535\u8111\u5206\u4eab\u8d44\u6e90\u3002

SMB \u7684\u4f18\u70b9\u4e4b\u4e00\u662f\u517c\u5bb9\u6027\u597d\uff0c\u5728\u5404\u5e73\u53f0\u83b7\u5f97\u4e86\u5e7f\u6cdb\u652f\u6301\uff0c\u5305\u62ec Windows\u3001Linux\u3001macOS \u7b49\u5404\u7cfb\u7edf\u6302\u8f7d\u8bbf\u95ee\u90fd\u5f88\u65b9\u4fbf\u3002\u53e6\u5916 SMB \u4e5f\u662f\u5404\u79cd\u7535\u89c6\u3001\u7535\u89c6\u76d2\u5b50\u9ed8\u8ba4\u652f\u6301\u7684\u534f\u8bae\uff0c\u53ef\u4ee5\u901a\u8fc7 SMB \u8fdc\u7a0b\u64ad\u653e\u7535\u5f71\u3001\u97f3\u4e50\u548c\u56fe\u7247\u3002

\u53e6\u5916 SMB \u63d0\u4f9b\u7aef\u5230\u7aef\u52a0\u5bc6\u3001\u5b89\u5168\u6027\u9ad8\uff0c\u914d\u7f6e\u9009\u9879\u4e30\u5bcc\uff0c\u652f\u6301 ACL \u5e76\u652f\u6301\u591a\u79cd\u7528\u6237\u8ba4\u8bc1\u6a21\u5f0f\u3002

SMB \u7684\u7f3a\u70b9\u662f\u4f20\u8f93\u6548\u7387\u7a0d\u4f4e\uff0c\u901f\u5ea6\u4e0d\u592a\u7a33\u5b9a\uff0c\u4f1a\u6709\u6ce2\u52a8\u3002

FTP

FTP\uff08File Transfer ProtocoL\uff09\u662fTCP/IP\u5e94\u7528\u5c42\u4e2d\u7684\u4e00\u4e2a\u57fa\u7840\u534f\u8bae\uff0c\u901a\u5e38\u4f7f\u7528 22 \u7aef\u53e3\uff0c\u8d1f\u8d23\u5c06\u6587\u4ef6\u4ece\u4e00\u53f0\u8ba1\u7b97\u673a\u4f20\u8f93\u5230\u53e6\u8ba1\u7b97\u673a\uff0c\u5e76\u4fdd\u8bc1\u6587\u4ef6\u4f20\u8f93\u7684\u53ef\u9760\u6027\u3002FTP \u534f\u8bae\u7684\u5386\u53f2\u6e90\u8fdc\u6d41\u957f\uff0c\u7b2c\u4e00\u7248 FTP \u534f\u8bae\u4e8e 1971 \u5e74\u53d1\u8868\u4e3a RFC 114\uff0c\u6b64\u540e\u7ecf\u8fc7\u591a\u5e74\u7684\u53d1\u5c55\u548c\u5b8c\u5584\u3002\u901a\u5e38\u6240\u8bf4\u7684 FTP \u65e2\u53ef\u6307 FTP \u534f\u8bae\uff0c\u4e5f\u53ef\u6307 FTP \u5e94\u7528\u7a0b\u5e8f\u3002

\u7531\u4e8e FTP \u662f\u660e\u6587\u4f20\u8f93\u5b89\u5168\u6027\u4e0d\u9ad8\uff0c\u540e\u6765\u53c8\u51fa\u73b0\u4e86 SFTP \u548c FTPS \u7b49\u52a0\u5bc6\u4f20\u8f93\u3002FTP \u7684\u7279\u70b9\u4e4b\u4e00\u662f\u72ec\u7acb\u4e8e\u7cfb\u7edf\u7528\u6237\u7ec4\uff0c\u53ea\u8981\u901a\u8baf\u7aef\u53e3\u5f00\u542f\u5c31\u80fd\u65b9\u4fbf\u8bbf\u95ee\uff0c\u6240\u4ee5\u7279\u522b\u9002\u5408\u5916\u7f51\u5171\u4eab\uff0c\u4e00\u4e9b\u8001\u724c\u5171\u4eab\u8f6f\u4ef6\u5c31\u5e38\u5e38\u901a\u8fc7 FTP \u53d1\u5e03\u4e0b\u8f7d\u94fe\u63a5\u3002

FTP \u4e3b\u8981\u7528\u4e8e\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u5668\u4e4b\u95f4\u7684\u6587\u4ef6\u4e0a\u4f20\u548c\u4e0b\u8f7d\uff0c\u5e76\u4e0d\u9002\u7528\u4e8e\u670d\u52a1\u5668\u4e0a\u6587\u4ef6\u4fee\u6539\u3002\u56e0\u4e3a FTP \u901a\u5e38\u9700\u8981\u5148\u83b7\u53d6\u8fdc\u7a0b\u6587\u4ef6\u7684\u526f\u672c\uff0c\u7136\u540e\u5bf9\u526f\u672c\u4fee\u6539\uff0c\u6700\u540e\u518d\u5c06\u4fee\u6539\u540e\u7684\u6587\u4ef6\u526f\u672c\u4e0a\u4f20\u670d\u52a1\u5668\u3002

\u867d\u7136 FTP \u7684\u7b80\u5355\u65b9\u4fbf\u3001\u5bb9\u6613\u90e8\u7f72\uff0c\u4f46 FTP \u7684\u4f20\u8f93\u6548\u7387\u4f4e\u3001\u5b89\u5168\u6027\u4e0d\u4f73\uff0c\u76ee\u524d\u5e76\u4e0d\u63a8\u8350\u4f7f\u7528\u3002

WebDAV

\u57fa\u4e8e Web \u7684\u5206\u5e03\u5f0f\u7f16\u5199\u548c\u7248\u672c\u63a7\u5236\uff08WebDAV\uff09\u662f\u8d85\u6587\u672c\u4f20\u8f93\u534f\u8bae\uff08HTTP\uff09\u7684\u6269\u5c55\uff0c\u6709\u5229\u4e8e\u7528\u6237\u95f4\u534f\u540c\u7f16\u8f91\u548c\u7ba1\u7406\u5b58\u50a8\u5728\u4e07\u7ef4\u7f51\u670d\u52a1\u5668\u6587\u6863\u3002WebDAV \u7531\u4e92\u8054\u7f51\u5de5\u7a0b\u4efb\u52a1\u7ec4\u7684\u5de5\u4f5c\u7ec4\u5728 RFC 4918 \u4e2d\u5b9a\u4e49\u3002\u8bb8\u591a\u73b0\u4ee3\u64cd\u4f5c\u7cfb\u7edf\u4e3a WebDAV \u63d0\u4f9b\u4e86\u5185\u7f6e\u652f\u6301\u3002

WebDAV \u9664\u4e86\u521b\u5efa\u3001\u5220\u9664\u6587\u4ef6\u7b49\u57fa\u672c\u529f\u80fd\uff0c\u5b83\u8fd8\u5177\u5907\u6587\u4ef6\u521b\u5efa\u8005\u7ba1\u7406\u3001\u6587\u4ef6\u7f16\u8f91\u8fc7\u7a0b\u4e2d\u7981\u6b62\u5176\u4ed6\u7528\u6237\u5185\u5bb9\u8986\u76d6\u7684\u52a0\u9501\u529f\u80fd\uff0c\u4ee5\u53ca\u5bf9\u6587\u4ef6\u5185\u5bb9\u4fee\u6539\u7684\u7248\u672c\u63a7\u5236\u529f\u80fd\u3002

WebDAV \u4e3a\u5b9e\u73b0\u8fdc\u7a0b\u6587\u4ef6\u7ba1\u7406\uff0c\u5411 HTTP/1.1 \u4e2d\u8ffd\u52a0\u4e86\u4ee5\u4e0b\u8fd9\u4e9b\u65b9\u6cd5\u3002

\u4e3a\u914d\u5408\u6269\u5c55\u7684\u65b9\u6cd5\uff0c\u72b6\u6001\u7801\u4e5f\u968f\u4e4b\u6269\u5c55\u3002

\u7531\u4e8e WebDAV \u662f\u57fa\u4e8e HTTP \u7684\uff0c\u6240\u4ee5\u5177\u6709 HTTP \u7684\u6240\u6709\u4f18\u70b9\uff0c\u5305\u62ec\u5bb9\u6613\u7a7f\u8d8a\u9632\u706b\u5899\u3001\u4f7f\u7528 HTTPS \u6765\u4f20\u8f93\u6570\u636e\uff0c\u56e0\u6b64\u5728\u5f88\u591a\u65b9\u9762\u53ef\u4ee5\u66ff\u4ee3 FTP\u3002

WebDAV \u53ef\u4ee5\u901a\u8fc7 Nginx \u6216 Apache \u7b49 Web \u670d\u52a1\u5668\u90e8\u7f72\u3002\u5728\u5ba2\u6237\u7aef WebDAV \u4e5f\u83b7\u5f97\u4e86\u8bb8\u591a\u8f6f\u4ef6\u7684\u652f\u6301\uff0c\u6bd4\u5982 Office \u5c31\u53ef\u901a\u8fc7 WebDAV \u7f16\u8f91\u8fdc\u7a0b\u6587\u6863\u3002

"}, {"title": "Flatcar Linux \u90e8\u7f72Docker\u96c6\u7fa4", "desc": "\u56e0\u4e3a\u4e1a\u52a1\u91cf\u4e0d\u5927\u6240\u4ee5\u4f7f\u7528Docker\u81ea\u5e26\u7684Swarm\u642d\u5efa\u96c6\u7fa4\uff0c$ docker info \u67e5\u770b Swarm: active \u8868\u793a\u96c6\u7fa4\u6210\u529f\u3002", "content": "

\u6548\u679c\u56fe\uff1a

\u642d\u5efa\u6b65\u9aa4\uff1a

\u4e00\u3001# \u96c6\u7fa4\u521d\u59cb\u5316\uff0c\u8282\u70b9\u6210\u4e3a manager \u8282\u70b9

docker swarm init --advertise-addr=x.x.x.x

\u4e8c\u3001# \u52a0\u5165\u96c6\u7fa4

docker swarm join --token xxx x.x.x.x:xxx --advertise-addr=x.x.x.x

\u5176\u4e2d  join --token \u53ef\u4ee5\u901a\u8fc7 docker swarm join-token worker \u547d\u4ee4\u83b7\u53d6

core@node1 ~ $ docker swarm join-token worker

To add a worker to this swarm, run the following command:


    docker swarm join --token SWMTKN-1-2q40teccywdzx6285b8ifp4gz6dwwdzdc34cw93ek46pak8ecc-7hdqp9lcx09veyqipyohn96u4 192.168.134.180:2377

\u4e09\u3001#\u8dd1\u5bb9\u5668\uff0c\u526f\u672c

docker service create --replicas 3 --network zhoudl_net --name redis  -p 6379:6379 redis

#\u5efa\u7acb\u4e00\u4e2aredis\u5bb9\u5668\uff0c3\u4e2a\u526f\u672c

\u5f53\u7136\u4e5f\u53ef\u4ee5\u81ea\u5efa\u865a\u62df\u7f51\u7edc

###\u5efa\u7acb\u865a\u62df\u7f51\u7edc

docker network create -d overlay zhoudl_net




"}, {"title": "CoreOS\u7cfb\u7edf\u5b89\u88c5", "desc": "\u56e0\u4e3aCoreOS\u88ab\u7ea2\u5e3d\u6536\u8d2d\u672c\u6b21\u5b89\u88c5\u4f7f\u7528CoreOS\u7684\u53e6\u4e00\u4e2a\u5f00\u6e90\u5206\u652fFlatcar Linux\u8fdb\u884c\u5b89\u88c5\u3002\u5206\u522b\u4f7f\u7528\u4e86cloud-config\u548c Ignition \u4e24\u79cd\u914d\u7f6e\u65b9\u6cd5\u5b89\u88c5\uff0c\u672c\u6587\u4ee51688.5.3\u7248\u672c\u4e3a\u4f8b\u3002", "content": "

\u4e00\u3001\u4e0b\u8f7dflatcar_production_iso_image.iso\u955c\u50cf\u523b\u5f55U\u76d8

\u955c\u50cf\u4e0b\u8f7d\u5730\u5740\uff1ahttps://stable.release.flatcar-linux.net/amd64-usr/

\u6ce8\u610f\uff1aISO\u5b89\u88c5\u4e0d\u652f\u6301UEFI,\u5185\u5b58\u5fc5\u987b\u5927\u4e8e2G

\u4e8c\u3001\u5c06coreos_production_image.bin.bz2\uff0ccoreos_production_image.bin.bz2.sig  \u955c\u50cf\u548c\u7b7e\u540d\u6587\u4ef6\u653e\u5230web\u670d\u52a1\u5668\u7684 1688.5.3 \u76ee\u5f55\u4e0b\uff0c\u4f9b\u5b89\u88c5\u4f7f\u7528\u4e3b\u8981\u662f\u4e3a\u4e86\u9632\u6b62\u88ab\u5899\u3002

\u4e09\u3001\u7528\u7b2c\u4e00\u6b65\u523b\u5f55\u7684U\u76d8\u542f\u52a8\u670d\u52a1\u5668\uff0c\u914d\u7f6e\u7f51\u7edc\u4f9b\u4e0b\u8f7d\u7b2c\u4e8c\u6b65\u642d\u5efa\u7684\u955c\u50cf\u6587\u4ef6\uff08\u65b9\u6cd5\u5f88\u591a\u81ea\u5df1\u60f3\uff09

\u6ce8\uff1a\u914d\u7f6e\u7f51\u7edc\u7684\u65b9\u6cd5

1.\u8bbe\u7f6eroot\u5bc6\u7801\uff1a# sudo passwd root

2.\u8bbe\u7f6e\u7f51\u7edc

\u4f7f\u7528root\u8d26\u53f7\uff08\u5982\u679c\u7528\u9ed8\u8ba4core\u8d26\u53f7\u53ef\u80fd\u4f1a\u63d0\u793a\u6743\u9650\u4e0d\u591f\uff09\u5728/etc/system/network\u4e0b\u65b0\u589estatic.network\u5185\u5bb9\u5982\u4e0b

      [Match]

      Name=ens32

      [Network]

      DNS=114.114.114.114

      Address=192.168.134.180/24

      Gateway=192.168.134.2   

\u91cd\u542f\u7f51\u7edc

sudo systemctl restart systemd-networkd\t

3.\u56e0\u4e3a\u4f7f\u7528\u7684\u662fFlatcar Linux\u955c\u50cf\u548c\u7f51\u4e0a\u641c\u7d22\u5230\u7684\u65b9\u6cd5\u6709\u70b9\u533a\u522b\uff0c
3.1 \u590d\u5236 /usr/bin/flatcar-install \u4e3a core-instal \u5e76\u4e14\u4fee\u6539core-instal \u5c06\u91cc\u9762\u7684 flatcar-cloudinit \u66ff\u6362\u4e3acoreos-cloudinit
\u6267\u884c\u5b89\u88c5
# sudo core-install -d /dev/sda -b http://192.168.1.100 -c cloud.yaml
\u5176\u4e2dhttp://192.168.1.100\u662f\u81ea\u5df1\u642d\u5efa\u7684web\u670d\u52a1\u5668\u5730\u5740,\u4e0b\u9762\u662fcloud.yaml\u7684\u5185\u5bb9
#cloud-config
users:
    - name: core
      passwd: \"$6$crsdsad3ou2G0\"
ssh_authorized_keys:
    - ssh-rsa xxx
hostname: \"coreos1\"
coreos:
  units:
    - name: \"docker.service\"
      drop-ins:
        - name: \"50-insecure-registry.conf\"
          content: |
            [Service]
            Environment=DOCKER_OPTS='--insecure-registry=\"hub-mirror.c.163.com\"'
write_files:
  - path: \"/etc/systemd/network\"
    permissions: \"0644\"
    owner: \"root\"
    content: |
      [Match]
      Name=ens32
      [Network]
      DNS=114.114.114.114
      Address=192.168.134.200/24
      Gateway=192.168.134.2   

\u8bb0\u4f4f cloud.yaml\u7684\u7b2c\u4e00\u884c\u5fc5\u987b\u4e3a#cloud-config,passwd:\u548cssh_authorized_keys: \u6362\u6210\u81ea\u5df1\u7684
#cloud-config \u914d\u7f6e\u6587\u6863\uff1ahttps://github.com/flatcar-linux/coreos-cloudinit



#######\u4f7f\u7528Ignition\u5b89\u88c5\uff0c\u63a8\u8350\u4f7f\u7528Ignition\u65b9\u5f0f\u56e0\u4e3acloud-config\u5df2\u7ecf\u4e0d\u66f4\u65b0\u4e86#######

# sudo core-install -d /dev/sda -b http://192.168.1.100 -i Ignition.yaml

\u53ea\u8981\u5c06 -c \u6362\u6210-i \u914d\u7f6e\u6587\u4ef6\u5185\u5bb9\u5982\u4e0b

passwd:

  users:

    - name: core

      password_hash: \"\u6362\u6210\u81ea\u5df1\u7684\"

      ssh_authorized_keys:

        - ssh-rsa  xxxxx


networkd:

  units:

    - name: static.network

      contents: |

        [Match]

        Name=ens32


        [Network]

        DNS=114.114.114.114

        Address=192.168.134.180/24

        Gateway=192.168.134.2 


Ignition\u914d\u7f6e\u76f8\u5173\u94fe\u63a5\uff1ahttps://github.com/coreos/container-linux-configtranspiler/blob/master/doc/configuration.md

\u5982\u4f55\u751f\u6210 password hash\uff1ahttps://github.com/coreos/container-linux-config-transpiler/blob/master/doc/examples.md

"}, {"title": "DOCKER\u901a\u8fc7-p\u53c2\u6570\u6620\u5c04\u7aef\u53e3\u81ea\u52a8\u6253\u5f00\u9632\u706b\u5899\u5904\u7406", "desc": "DOCKER\u521b\u5efa\u865a\u62df\u673a\u65f6\u5982\u679c\u6dfb\u52a0\u53c2\u6570 -p \u672c\u673a\u7aef\u53e3\u6620\u5c04\u865a\u62df\u673a\u5185\u90e8\u7aef\u53e3\u65f6\uff0c\u81ea\u52a8\u5728 Centos \u7684 iptables \u6dfb\u52a0\u89c4\u5219\u5bfc\u81f4\u5bf9\u5916\u5f00\u653e\u672c\u673a\u7aef\u53e3\u3002\u5982\u679c\u60f3\u6307\u5b9a\u90e8\u5206IP\u5141\u8bb8\u8bbf\u95ee\u9700\u8981\u4fee\u6539DOCKER\u89c4\u5219\u3002", "content": "

# \u67e5\u8be2DOCKER\u8868\u5e76\u663e\u793a\u89c4\u5219\u7f16\u53f7

[root@Docker ~]# iptables -L DOCKER -n --line-number

Chain DOCKER (2 references)

num  target     prot opt source               destination         

1    ACCEPT     tcp  --  0.0.0.0/0            172.17.0.3           tcp dpt:5236

2    ACCEPT     tcp  --  0.0.0.0/0            172.17.0.2           tcp dpt:80

3    ACCEPT     tcp  --  0.0.0.0/0            172.17.0.6           tcp dpt:8080

#\u6dfb\u52a0\u89c4\u5219\u5e76\u67e5\u770b

[root@Docker ~]# iptables -A DOCKER -p tcp -m tcp -s 192.168.1.168/32 -d 172.17.0.7 --dport 80 -j ACCEPT   

[root@Docker ~]# iptables -L DOCKER -n --line-number

Chain DOCKER (2 references)

num  target     prot opt source               destination         

1    ACCEPT     tcp  --  0.0.0.0/0            172.17.0.3           tcp dpt:5236

2    ACCEPT     tcp  --  0.0.0.0/0            172.17.0.2           tcp dpt:80

3    ACCEPT     tcp  --  0.0.0.0/0            172.17.0.6           tcp dpt:8080

4    ACCEPT     tcp  --  192.168.1.168        172.17.0.7           tcp dpt:80

#\u4e5f\u53ef\u4ee5\u4fee\u6539\u89c4\u5219

[root@Docker ~]# iptables -R DOCKER 4 -p tcp -m tcp -s 192.168.1.168/32 -d 172.17.0.7 --dport 80 -j ACCEPT  


"}, {"title": "Centos7\u6ca1\u7f51\u5b89\u88c5\u81ea\u5e26\u7684DOCKE1.13.1", "desc": "\u670d\u52a1\u5668\u6ca1\u6709\u4e92\u8054\u7f51\u4e0d\u80fd\u4f7f\u7528\u6e90\u4e0b\u8f7d\uff0c\u4f7f\u7528\u7f51\u4e0a\u8bf4\u7684\u672c\u5730\u5b89\u88c5DOCKER-CE\u5728\u88c5docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch.rpm\u7684\u65f6\u5019\u6709\u4e2a\u544a\u8b66\u4e0d\u77e5\u9053\u6709\u6ca1\u6709\u5f71\u54cd\uff0c\u6709\u6d01\u7656\u6240\u4ee5\u9009\u62e9\u5b89\u88c5\u81ea\u5e26\u76841.13.1\u7248", "content": "

\u5b89\u88c5\u6210\u529f\u540e\u7248\u672c

\n

[root@localhost opt]# docker --version
\n\tDocker version 1.13.1, build 7f2769b/1.13.1

\n

\u4e00\u3001\u642d\u5efa\u672c\u5730\u6e90\uff08\u6b65\u9aa4\u7701\u7565\uff0c\u81ea\u5df1\u767e\u5ea6\u6216\u8005\u770b\u7ad9\u5185\u76f8\u5173\u6587\u7ae0\uff09

\n

\u4e8c\u3001\u627e\u4e00\u53f0\u6709\u4e92\u8054\u7f51\u7684\u673a\u5668\u6253\u5f00\u963f\u91cc\u4e91\u7684\u6e90

\n

http://mirrors.aliyun.com/centos/7/extras/x86_64/Packages/

\n

\u4e09\u3001\u4e0b\u8f7d\u76f8\u5173RPM\u5305\uff08\u9700\u8981\u4e0b\u8f7d\u7684RPM\u5305\u89c1\u7b2c\u56db\u6b65\u547d\u4ee4\u90e8\u5206\uff09\u5e76\u4e0a\u4f20\u81f3\u670d\u52a1\u5668\u4e0a

\n

\u56db\u3001\u8fdb\u5165\u670d\u52a1\u5668\u4e0b\u8f7dRPM\u5305\u7684\u76ee\u5f55\u6267\u884c\u547d\u4ee4\u5b89\u88c5

\n

yum localinstall -y python-pytoml-0.1.14-1.git7dea353.el7.noarch.rpm atomic-registries-1.22.1-29.gitb507039.el7.x86_64.rpm  container-selinux-2.107-3.el7.noarch.rpm
\n\tyum localinstall -y atomic-registries-1.22.1-29.gitb507039.el7.x86_64.rpm  container-selinux-2.107-3.el7.noarch.rpm
\n\tyum localinstall -y  container-storage-setup-0.11.0-2.git5eaf76c.el7.noarch.rpm oci-register-machine-0-6.git2b44233.el7.x86_64.rpm
\n\tyum localinstall -y oci-systemd-hook-0.2.0-1.git05e6923.el7_6.x86_64.rpm oci-umount-2.5-3.el7.x86_64.rpm
\n\tyum localinstall -y skopeo-containers-0.1.31-1.dev.gitae64ff7.el7.centos.x86_64.rpm
\n\tyum install -y docker-common-1.13.1-103.git7f2769b.el7.centos.x86_64.rpm
\n\tyum install -y docker-client-1.13.1-103.git7f2769b.el7.centos.x86_64.rpm
\n\tyum install -y docker-1.13.1-103.git7f2769b.el7.centos.x86_64.rpm

\n

\u4e94\u3001\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f

\n

[root@localhost opt]# docker --version
\n\tDocker version 1.13.1, build 7f2769b/1.13.1

\n

\u5982\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9047\u5230\u5982\u4e0b\u62a5\u9519

\n

Total size: 4.4 k
\n\tInstalled size: 4.4 k
\n\tIs this ok [y/d/N]: y
\n\tDownloading packages:
\n\tRunning transaction check
\n\tRunning transaction test
\n\t
\n\t
\n\tTransaction check error:
\n\t  file /usr/bin/docker from install of docker-common-2:1.13.1-103.git7f2769b.el7.centos.x86_64 conflicts with file from package docker-ce-17.03.0.ce-1.el7.centos.x86_64
\n\t  file /usr/bin/docker-containerd from install of docker-common-2:1.13.1-103.git7f2769b.el7.centos.x86_64 conflicts with file from package docker-ce-17.03.0.ce-1.el7.centos.x86_64
\n\t  file /usr/bin/docker-containerd-shim from install of docker-common-2:1.13.1-103.git7f2769b.el7.centos.x86_64 conflicts with file from package docker-ce-17.03.0.ce-1.el7.centos.x86_64
\n\t  file /usr/bin/dockerd from install of docker-common-2:1.13.1-103.git7f2769b.el7.centos.x86_64 conflicts with file from package docker-ce-17.03.0.ce-1.el7.centos.x86_64
\n\t
\n\tError Summary
\n\t-------------
\n\t\u8bf4\u660e\u662f\u4ee5\u524d\u5b89\u88c5\u8fc7\u522b\u7684DOCKER \u7248\u672c\u51b2\u7a81\uff0c\u8fd0\u884c\u4e0b\u9762\u547d\u4ee4\u5378\u8f7d

\n

yum remove docker-ce-17.03.0.ce-1.el7.centos.x86_64

\n

 

\n"}, {"title": "xfs\u683c\u5f0f\u4f7f\u7528 xfs_growfs \u6269\u5c55lvextend", "desc": "\u4ee5\u524d\u7528ext3\u3001ext4\u683c\u5f0f\u5316lv \uff0c\u6269\u5c55lv \u5927\u5c0f\u4ee5\u540e\u9700\u8981\u4f7f\u7528resize2fs \u547d\u4ee4\u5237\u65b0\uff0c\u4e0d\u7136\u5206\u533a\u5927\u5c0f\u770b\u4e0d\u5230\u6269\u5927\u3002", "content": "

\u6211\u7684\u5206\u533a\u5217\u8868

\r\n

[root@localhost ~]# df -hT
\r\n\tFilesystem                Type      Size  Used Avail Use% Mounted on
\r\n\t/dev/mapper/centos-root   xfs        55G  1.2G   54G   3% /
\r\n\tdevtmpfs                  devtmpfs  7.8G     0  7.8G   0% /dev
\r\n\ttmpfs                     tmpfs     7.8G     0  7.8G   0% /dev/shm
\r\n\ttmpfs                     tmpfs     7.8G  9.6M  7.8G   1% /run
\r\n\ttmpfs                     tmpfs     7.8G     0  7.8G   0% /sys/fs/cgroup
\r\n\t/dev/vda1                 xfs      1014M  166M  849M  17% /boot
\r\n\t/dev/mapper/jschrj-zhoudl xfs        59G   33M   59G   1% /data
\r\n\ttmpfs                     tmpfs     1.6G     0  1.6G   0% /run/user/1000

\r\n

/dev/mapper/jschrj-zhoudl\u662f xfs\u683c\u5f0f\u5316\u7684\uff0c\u6240\u4ee5\u6ca1\u529e\u6cd5\u7528 resize2fs \u5237\u65b0\u3002\u6269\u5927  /dev/mapper/jschrj-zhoudl \u4e3a200G\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a

\r\n

[root@localhost ~]# lvextend -l 51199 /dev/jschrj/zhoudl
\r\n\t  Size of logical volume jschrj/zhoudl changed from <59.00 GiB (15103 extents) to <200.00 GiB (51199 extents).
\r\n\t  Logical volume jschrj/zhoudl successfully resized.

\r\n

\u67e5\u770b\u5927\u5c0f\u8fd8\u662f50G\u6ca1\u6709\u53d8\u5927\uff0c\u4f7f\u7528resize2fs \u6269\u5c55\u5931\u8d25\u62a5\u9519
\r\n\t[root@localhost ~]# df -hT
\r\n\tFilesystem                Type      Size  Used Avail Use% Mounted on
\r\n\t/dev/mapper/centos-root   xfs        55G  1.2G   54G   3% /
\r\n\tdevtmpfs                  devtmpfs  7.8G     0  7.8G   0% /dev
\r\n\ttmpfs                     tmpfs     7.8G     0  7.8G   0% /dev/shm
\r\n\ttmpfs                     tmpfs     7.8G  9.6M  7.8G   1% /run
\r\n\ttmpfs                     tmpfs     7.8G     0  7.8G   0% /sys/fs/cgroup[root@localhost ~]# xfs_growfs /dev/jschrj/zhoudl
\r\n\tmeta-data=/dev/mapper/jschrj-zhoudl isize=512    agcount=4, agsize=3866368 blks
\r\n\t         =                       sectsz=512   attr=2, projid32bit=1
\r\n\t         =                       crc=1        finobt=0 spinodes=0
\r\n\tdata     =                       bsize=4096   blocks=15465472, imaxpct=25
\r\n\t         =                       sunit=0      swidth=0 blks
\r\n\tnaming   =version 2              bsize=4096   ascii-ci=0 ftype=1
\r\n\tlog      =internal               bsize=4096   blocks=7551, version=2
\r\n\t         =                       sectsz=512   sunit=0 blks, lazy-count=1
\r\n\trealtime =none                   extsz=4096   blocks=0, rtextents=0
\r\n\tdata blocks changed from 15465472 to 52427776
\r\n\t[root@localhost ~]# df -hT
\r\n\tFilesystem                Type      Size  Used Avail Use% Mounted on
\r\n\t/dev/mapper/centos-root   xfs        55G  1.2G   54G   3% /
\r\n\tdevtmpfs                  devtmpfs  7.8G     0  7.8G   0% /dev
\r\n\ttmpfs                     tmpfs     7.8G     0  7.8G   0% /dev/shm
\r\n\ttmpfs                     tmpfs     7.8G  9.6M  7.8G   1% /run
\r\n\ttmpfs                     tmpfs     7.8G     0  7.8G   0% /sys/fs/cgroup
\r\n\t/dev/vda1                 xfs      1014M  166M  849M  17% /boot
\r\n\t/dev/mapper/jschrj-zhoudl xfs       200G   33M  200G   1% /data
\r\n\ttmpfs                     tmpfs     1.6G     0  1.6G   0% /run/user/1000
\r\n\t/dev/vda1                 xfs      1014M  166M  849M  17% /boot
\r\n\t/dev/mapper/jschrj-zhoudl xfs        59G   33M   59G   1% /data
\r\n\ttmpfs                     tmpfs     1.6G     0  1.6G   0% /run/user/1000

\r\n

[root@localhost ~]#  resize2fs /dev/jschrj/zhoudl
\r\n\tresize2fs 1.42.9 (28-Dec-2013)
\r\n\tresize2fs: Bad magic number in super-block while trying to open /dev/jschrj/zhoudl
\r\n\tCouldn't find valid filesystem superblock.

\r\n

\u4f7f\u7528 xfs_growfs \u547d\u4ee4\u5237\u65b0\u6210\u529f

\r\n

 

\r\n"}, {"title": "CENTOS7Minimal\u7248\u5b89\u88c5\u8fbe\u68a6\u6570\u636e\u5e93", "desc": "\u6ca1\u529e\u6cd5\u6709\u6d01\u7656\u559c\u6b22\u6311\u6218\uff0c\u867d\u7136\u4e0b\u8f7d\u4e0b\u6765\u7684\u8fbe\u68a6\u6570\u636e\u5e93\u5b89\u88c5\u6587\u6863\u91cc\u6ca1\u6709\u8be6\u7ec6\u4ecb\u7ecd\u4f7f\u7528\u547d\u4ee4\u884c\u5b89\u88c5\u4f46\u662f\u6ca1\u529e\u6cd5\u6211\u5c31\u662f\u559c\u6b22\u7528\u547d\u4ee4\u884c\u3002", "content": "

\u9996\u5148\u8fbe\u68a6\u5b89\u88c5\u547d\u4ee4\u884c\u6bd4 ORALCE \u7b80\u5355\u5f97\u591a\u6ca1\u90a3\u4e48\u591a\u4f9d\u8d56\u548c\u73af\u5883\u53d8\u91cf\u9700\u8981\u914d\u7f6e\u76f4\u63a5\u8bf4\u6b65\u9aa4\uff0c\u91cd\u8981\u7684\u5730\u65b9\u7ed9\u8bf4\u660e\u7b80\u5355\u7684\u5c31\u7565\u4e86\u3002\u4eba\u61d2\uff0c\u5b89\u88c5\u5305\u5728/opt\u76ee\u5f55\u3002

\r\n

1. \u521b\u5efa\u5b89\u88c5\u7528\u6237\u7ec4 dinstall\u3002
\r\n\tgroupadd dinstall
\r\n\t2. \u521b\u5efa\u5b89\u88c5\u7528\u6237 dmdba\u3002
\r\n\tuseradd -g dinstall dmdba
\r\n\t3. \u521d\u59cb\u5316\u7528\u6237\u5bc6\u7801\u3002
\r\n\tpasswd dmdba
\r\n\t
\r\n\t\u4fee\u6539
\r\n\t/etc/security/limits.conf
\r\n\tdmdba        hard    nofile        65536
\r\n\tdmdba        soft    nofile        65536
\r\n\t
\r\n\tmkdir -p /app/dmdbs
\r\n\t
\r\n\tchmod 775 /opt/DMInstall.bin
\r\n\tchown -R dmdba:dinstall /app
\r\n\tchmod -R 6775 /app
\r\n\t
\r\n\t\u5207\u6362dmdba\u8d26\u53f7

\r\n

su - dmdba

\r\n

cd /opt

\r\n

\u5b89\u88c5\u547d\u4ee4\uff08\u6839\u636e\u63d0\u793a\u9009\u62e9\u5373\u53ef\uff0c\u6211\u5728\u5b89\u88c5\u7c7b\u578b\u90a3\u91cc\u9009\u62e9\u4e862\uff0c\u53ea\u5b89\u88c5\u5b89\u88c5\u670d\u52a1\u5668\uff1b\u5b89\u88c5\u76ee\u5f55\u4e3a /app/dmdbs \uff09
\r\n\t./DMInstall.bin -i

\r\n

-------------\u4e0a\u9762\u4e00\u5927\u6bb5\u7565-----------

\r\n

2019-10-12 14:56:42
\r\n\t[INFO] Installing DRIVERS Module...
\r\n\t2019-10-12 14:56:42
\r\n\t[INFO] Installing MANUAL Module...
\r\n\t2019-10-12 14:56:42
\r\n\t[INFO] Installing SERVICE Module...
\r\n\t2019-10-12 14:56:44
\r\n\t[INFO] Move ant log file to log directory.
\r\n\t2019-10-12 14:56:44
\r\n\t[INFO] Installed DM DBMS completely.
\r\n\t
\r\n\tPlease execute the commands by root:
\r\n\t/app/dmdbs/script/root/root_installer.sh
\r\n\t
\r\n\tEnd

\r\n

\u770b\u5230End\u8868\u793a\u5b89\u88c5\u7ed3\u675f\uff0c\u4e0b\u9762\u5f00\u59cb\u521d\u59cb\u5316\u6570\u636e\u5e93\u548c\u5b89\u88c5\u670d\u52a1\u3002

\r\n

\u521d\u59cb\u5316\u6570\u636e\u5e93
\r\n\t[dmdba@dm opt]$ cd /app/dmdbs/bin
\r\n\t[dmdba@dm bin]$ ./dminit path=/app/dmdbs/data page_size=16 CASE_SENSITIVE=0 UNICODE_FLAG=1
\r\n\t\u542f\u52a8\u6570\u636e\u5e93
\r\n\t[dmdba@dm bin]$ ./dmserver /app/dmdbs/data/DAMENG/dm.ini
\r\n\t\u5c06\u6570\u636e\u5e93\u6ce8\u518c\u4e3a\u670d\u52a1root\u8d26\u53f7
\r\n\t[root@dm root]# ./root_installer.sh              //\u8fd0\u884c\u6dfb\u52a0\u5907\u4efd\u670d\u52a1
\r\n\t[root@dm ~]# cd /app/dmdbs/script/root
\r\n\t[root@dm root]# ./dm_service_installer.sh -t dmserver -i /app/dmdbs/data/DAMENG/dm.ini -p DMSERVER
\r\n\t\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8
\r\n\t[root@dm root]# systemctl enable DmServiceDMSERVER
\r\n\t\u542f\u52a8\u670d\u52a1
\r\n\t[root@dm root]# systemctl start DmServiceDMSERVER
\r\n\t\u9632\u706b\u5899\u5f00\u7aef\u53e3
\r\n\troot@dm root]# firewall-cmd --zone=public --add-port=5236/tcp --permanent
\r\n\t[root@dm root]# firewall-cmd --reload

\r\n

\u5b89\u88c5\u5b8c\u6bd5\uff0c\u67e5\u770b\u4e0b\u4e1a\u52a1

\r\n

[root@dm root]# netstat -ntpl
\r\n\tActive Internet connections (only servers)
\r\n\tProto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
\r\n\ttcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      7012/sshd           
\r\n\ttcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      7176/master         
\r\n\ttcp6       0      0 :::5236                 :::*                    LISTEN      10926/dmserver      
\r\n\ttcp6       0      0 :::22                   :::*                    LISTEN      7012/sshd           
\r\n\ttcp6       0      0 ::1:25                  :::*                    LISTEN      7176/master       

\r\n

\u770b\u5230dmserver   \u8fd0\u884c\u57285236\u7aef\u53e3\uff0cCentOS-7-x86_64-Minimal-1810 \u5b89\u88c5 \u8fbe\u68a6\u6570\u636e\u5e93 dm8_setup_rh7_64_ent_8.1.0.147 \u5b89\u88c5\u5230\u6b64\u7ed3\u675f\u3002

\r\n

 

\r\n

 

\r\n

 

\r\n"}, {"title": "ORACLE\u5904\u7406\u7d22\u5f15\u5931\u6548", "desc": "ORACLE\u6570\u636e\u5e93\u8fc1\u79fb\u66f4\u6362\u8868\u7a7a\u95f4\u6216\u8005\u8d26\u53f7\u4f1a\u5bfc\u81f4\u7d22\u5f15\u5931\u6548\uff0c\u4e1a\u52a1\u7f13\u6162\u95ee\u9898\uff0c\u6839\u636e\u67e5\u8be2\r\nuser_indexes \u4e2d\u72b6\u6001\u4e3astatus = 'UNUSABLE';\u65e0\u6548\u7684\u7d22\u5f15\uff0c\u901a\u8fc7SQL\u62fc\u63a5\u6267\u884c\u5373\u53ef\u3002", "content": "

\u67e5\u770b\u5931\u6548\u7d22\u5f15
\r\n\tselect index_name, partition_name, status
\r\n\tfrom user_ind_partitions
\r\n\twhere status = 'UNUSABLE'
\r\n\tunion all
\r\n\tselect index_name, '' as partition_name, status
\r\n\tfrom user_indexes
\r\n\twhere status = 'UNUSABLE';

\r\n

\u62fc\u63a5SQL

\r\n


\r\n\tselect 'alter index ' || index_name || ' rebuild;'
\r\n\tfrom user_indexes
\r\n\twhere status = 'UNUSABLE';

\r\n

\u5176\u5b9e\u53ef\u4ee5\u76f4\u63a5\u6267\u884c\u4e0b\u9762\u8fd9\u6761\u8bed\u53e5\uff0c\u5c06\u67e5\u8be2\u51fa\u7684\u7ed3\u679c\u5168\u90e8\u590d\u5236\u5230 PLSQL \u5de5\u5177\u91cc\u6267\u884c\u3002

\r\n"}, {"title": "DOCKER\u5355\u5bb9\u5668\u8fd0\u884cTomCat+activemq", "desc": "Docker\u5bb9\u5668\u7684\u54f2\u5b66\u662f\u4e00\u4e2aDocker\u5bb9\u5668\u53ea\u8fd0\u884c\u4e00\u4e2a\u8fdb\u7a0b,\u4f46\u662f\u6709\u65f6\u5019\u6211\u4eec\u5c31\u662f\u9700\u8981\u5728\u4e00\u4e2aDocker\u5bb9\u5668\u4e2d\u8fd0\u884c\u591a\u4e2a\u8fdb\u7a0b\u3002\u53ef\u4ee5\u767e\u5ea6\u770b\u770b\u6709\u597d\u51e0\u79cd\u65b9\u6cd5\uff0c\u56e0\u4e3a\u7684\u9879\u76ee\u4e3b\u8981\u662f\u81ea\u5df1\u4f7f\u7528\uff0c\u6240\u4ee5\u9488\u5bf9\u6027\u6bd4\u8f83\u5f3a\u7528\u7684\u662fsystemd.", "content": "

1.\u5b9e\u73b0\u601d\u8def

\r\n

\u4f7f\u7528  systemctl enable \u5c06 tomcat \u548c activemq \u8bbe\u7f6e\u6210\u670d\u52a1\u5f00\u673a\u542f\u52a8\u3002

\r\n

2.\u5177\u4f53\u5b9e\u73b0\u3002

\r\n

2.1 \u65b0\u5efamq.service , tomcat.service \u7528\u4f5c\u5f00\u673a\u542f\u52a8

\r\n

[root@localhost ~]# cat mq.service
\r\n\t[Unit]
\r\n\tDescription=this is mq Action
\r\n\t 
\r\n\t[Service]
\r\n\tType=forking
\r\n\tExecStart=/opt/apache-activemq-5.9.0/bin/activemq start
\r\n\tExecStop=/opt/apache-activemq-5.9.0/activemq stop
\r\n\t 
\r\n\t[Install]
\r\n\tWantedBy=multi-user.target

\r\n

 

\r\n

[root@localhost ~]# cat mq.service
\r\n\t[Unit]
\r\n\tDescription=this is mq Action
\r\n\t 
\r\n\t[Service]
\r\n\tType=forking
\r\n\tExecStart=/opt/apache-activemq-5.9.0/bin/activemq start
\r\n\tExecStop=/opt/apache-activemq-5.9.0/bin/activemq stop
\r\n\t 
\r\n\t[Install]
\r\n\tWantedBy=multi-user.target
\r\n\t[root@localhost ~]# cat tomcat.service
\r\n\t[Unit]
\r\n\tDescription=this is TomCat
\r\n\t 
\r\n\t[Service]
\r\n\tType=forking
\r\n\tExecStart=/opt/apache-tomcat-7.0.68/bin/catalina.sh start
\r\n\tExecStop=/opt/apache-tomcat-7.0.68/bin/catalina.sh stop
\r\n\t 
\r\n\t[Install]
\r\n\tWantedBy=multi-user.target

\r\n

\u5177\u4f53\u53c2\u6570\u4e0d\u89e3\u91ca\u4e86\uff0c\u6211\u4e5f\u767e\u5ea6\u4e86\u597d\u4e45\uff0c\u4e0d\u662f\u4e13\u4e1a\u4eba\u5458\u591f\u7528\u5c31\u597d\u3002

\r\n

3.\u7f16\u5199 Dockerfile

\r\n

# Version 0.1
\r\n\t
\r\n\tFROM 192.168.134.100:5000/zhoudl/centos
\r\n\t
\r\n\tENV TZ "Asia/Shanghaii"
\r\n\t
\r\n\tCOPY activemq /opt/apache-activemq-5.9.0
\r\n\tCOPY tomcat /opt/apache-tomcat-7.0.68
\r\n\tCOPY jdk1.8.0_192-amd64 /opt/jdk1.8.0_192-amd64
\r\n\tCOPY mq.service /usr/lib/systemd/system
\r\n\tCOPY tomcat.service /usr/lib/systemd/system
\r\n\t
\r\n\tRUN chmod -R 777 /opt; \\
\r\n\t systemctl enable mq.service; \\
\r\n\t systemctl enable tomcat.service
\r\n\t
\r\n\tEXPOSE 80
\r\n\tEXPOSE 61616
\r\n\t
\r\n\tCMD ["/usr/sbin/init"]

\r\n

-------------------------------------------------\u534e\u4e3d\u5206\u5272\u7ebf--------------------------------------------------

\r\n

192.168.134.100:5000/zhoudl/centos \u662f\u6211\u81ea\u5df1\u6839\u636e\u5b98\u65b9\u7f51\u7ad9\u5236\u4f5c\u7684\u5e26\u6709 systemd \u7684\u955c\u50cf\u7cfb\u7edf\u3002\u53c2\u8003\u5730\u5740 https://hub.docker.com/_/centos

\r\n

\r\n\tDockerfile for systemd base image

\r\n
\r\nFROM centos:7\r\nENV container docker\r\nRUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == \\\r\nsystemd-tmpfiles-setup.service ] || rm -f $i; done); \\\r\nrm -f /lib/systemd/system/multi-user.target.wants/*;\\\r\nrm -f /etc/systemd/system/*.wants/*;\\\r\nrm -f /lib/systemd/system/local-fs.target.wants/*; \\\r\nrm -f /lib/systemd/system/sockets.target.wants/*udev*; \\\r\nrm -f /lib/systemd/system/sockets.target.wants/*initctl*; \\\r\nrm -f /lib/systemd/system/basic.target.wants/*;\\\r\nrm -f /lib/systemd/system/anaconda.target.wants/*;\r\nVOLUME [ "/sys/fs/cgroup" ]\r\nCMD ["/usr/sbin/init"]
\r\n

\u81ea\u5df1\u6839\u636e\u4e0a\u9762\u7684 Dockerfile \u5236\u4f5c\u5373\u53ef\u3002

\r\n

\u6211\u7684TomCat \u4f7f\u7528\u7684\u662f80\u7aef\u53e3\uff0cMQ\u4f7f\u7528\u7684\u662f61616\uff0c\u4e3a\u4e86\u7701\u4e8b\u6211\u662f\u628a JDK \u5199\u5230\u4e86 catalina.sh \u548c activemq \u4e2d

\r\n

3.\u5236\u4f5c\u548c\u8fd0\u884c\u955c\u50cf

\r\n

root@localhost ~]# cat mq.service
\r\n\t[Unit]
\r\n\tDescription=this is mq Action
\r\n\t 
\r\n\t[Service]
\r\n\tType=forking
\r\n\tExecStart=/opt/apache-activemq-5.9.0/bin/activemq start
\r\n\tExecStop=/opt/apache-activemq-5.9.0/activemq stop
\r\n\t 
\r\n\t[Install]
\r\n\tWantedBy=multi-user.target
\r\n\t[root@localhost ~]# cat tomcat.service
\r\n\t[Unit]
\r\n\tDescription=this is TomCat
\r\n\t 
\r\n\t[Service]
\r\n\tType=forking
\r\n\tExecStart=/opt/apache-tomcat-7.0.68/bin/catalina.sh start
\r\n\tExecStop=/opt/apache-tomcat-7.0.68/bin/catalina.sh stop
\r\n\t 
\r\n\t[Install]
\r\n\tWantedBy=multi-user.target
\r\n\t[root@localhost ~]# docker build -f Dockerfile .
\r\n\tSending build context to Docker daemon 584.3 MB
\r\n\tStep 1/11 : FROM 192.168.134.100:5000/zhoudl/centos
\r\n\t ---> 760916cccc70
\r\n\tStep 2/11 : ENV TZ "Asia/Shanghaii"
\r\n\t ---> Using cache
\r\n\t ---> a3303760e376
\r\n\tStep 3/11 : COPY activemq /opt/apache-activemq-5.9.0
\r\n\t ---> Using cache
\r\n\t ---> 863ca97ad032
\r\n\tStep 4/11 : COPY tomcat /opt/apache-tomcat-7.0.68
\r\n\t ---> 3d4019cabd25
\r\n\tRemoving intermediate container 7a6729049266
\r\n\tStep 5/11 : COPY jdk1.8.0_192-amd64 /opt/jdk1.8.0_192-amd64
\r\n\t ---> 20c85e679273
\r\n\tRemoving intermediate container 109f4acbb861
\r\n\tStep 6/11 : COPY mq.service /usr/lib/systemd/system
\r\n\t ---> bfd275ce3365
\r\n\tRemoving intermediate container d1e2a29c2c7d
\r\n\tStep 7/11 : COPY tomcat.service /usr/lib/systemd/system
\r\n\t ---> 2442da44ec0c
\r\n\tRemoving intermediate container 8f05140b4a07
\r\n\tStep 8/11 : RUN chmod -R 777 /opt;  systemctl enable mq.service;  systemctl enable tomcat.service
\r\n\t ---> Running in 95782cb097a3
\r\n\t
\r\n\tCreated symlink /etc/systemd/system/multi-user.target.wants/mq.service, pointing to /usr/lib/systemd/system/mq.service.
\r\n\tCreated symlink /etc/systemd/system/multi-user.target.wants/tomcat.service, pointing to /usr/lib/systemd/system/tomcat.service.
\r\n\t ---> 00555cb385ed
\r\n\tRemoving intermediate container 95782cb097a3
\r\n\tStep 9/11 : EXPOSE 80
\r\n\t ---> Running in 7d2111d45deb
\r\n\t ---> e51af42ef52f
\r\n\tRemoving intermediate container 7d2111d45deb
\r\n\tStep 10/11 : EXPOSE 61616
\r\n\t ---> Running in dbc724f0ce77
\r\n\t ---> e797da05a659
\r\n\tRemoving intermediate container dbc724f0ce77
\r\n\tStep 11/11 : CMD /usr/sbin/init
\r\n\t ---> Running in 77777d7266b7
\r\n\t ---> a9c7f4cd9089
\r\n\tRemoving intermediate container 77777d7266b7
\r\n\tSuccessfully built a9c7f4cd9089

\r\n

\u8fd0\u884c\u5bb9\u5668\u3002\u56e0\u4e3a\u4f7f\u7528\u7684\u662f systemd \u6240\u4ee5\u5fc5\u987b\u52a0 --privileged \u4ecb\u610f\u7684\u8bdd\uff0c\u53ef\u4ee5\u9009\u62e9\u5176\u5b83\u601d\u8def\u5b9e\u73b0 Docker \u5355\u5bb9\u5668\u8fd0\u884c\u591a\u4e2a\u8fdb\u7a0b

\r\n

[root@localhost ~]# docker run --privileged  -it --name ygxf -p 80:80 -d a9c7f4cd9089
\r\n\t9e17489f4496ee1178bed513c0629c3cbf09e1f42f31233f5e128fd3770bb724

\r\n

\u67e5\u770b\u8fd0\u884c\u542f\u52a8\u662f\u5426\u6210\u529f

\r\n

[root@localhost ~]# docker exec -it ygxf ps -aux
\r\n\tUSER        PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
\r\n\troot          1  0.0  0.0  42924  2820 ?        Ss   10:24   0:00 /usr/sbin/init
\r\n\troot         19  0.0  0.0  34988  3128 ?        Ss   10:24   0:00 /usr/lib/systemd/systemd-journald
\r\n\troot         34  3.2  3.8 4510388 147228 ?      Sl   10:24   0:04 /opt/jdk1.8.0_192-amd64/jre/bin/java -Djava.util.logging.config.file=/opt/apache-tomcat-7.0.68/conf/logging.properties -Dja
\r\n\troot         51  4.9  7.5 4635020 293296 ?      Sl   10:24   0:07 /opt/jdk1.8.0_192-amd64/bin/java -Xms1G -Xmx1G -Djava.util.logging.config.file=logging.properties -Dhawtio.realm=activemq -
\r\n\troot        134  0.0  0.0  51740  1716 ?        Rs+  10:27   0:00 ps -aux

\r\n

4.\u603b\u7ed3

\r\n

\u8fd9\u4e2a\u65b9\u6848\u5c40\u9650\u6027\u5f88\u5927\uff0c\u4e0d\u9002\u5408\u7248\u672c\u5347\u7ea7\u53d8\u66f4\uff0c\u914d\u7f6e\u5f88\u7e41\u7410\uff0c\u5bb9\u6613\u51fa\u9519\u3002\u4f46\u662f\u5bf9\u4e8e\u6211\u4eec\u8fd9\u79cd\u9879\u76ee\u5355\u4e00\uff0c\u591a\u7528\u6237\u4f7f\u7528\uff0c\u4e00\u6b21\u914d\u7f6e\u957f\u671f\u4f7f\u7528\u5f88\u9002\u5408\u3002\u5929\u4e0b\u6ca1\u6709\u5b8c\u7f8e\u7684\u65b9\u6848\uff0c\u53ea\u6709\u6700\u9002\u5408\u81ea\u5df1\u7684\u3002\u524d\u9762\u603b\u60f3\u5b66\u5b98\u65b9\u90a3\u6837\uff0c\u5236\u4f5c\u5b8c\u7f8e\u7684\u955c\u50cf\uff0c\u5165\u4e86\u4e0d\u5c11\u5751\uff0c\u7279\u53d1\u6b64\u6587\u5f15\u4ee5\u4e3a\u6212\u3002

\r\n

 

\r\n"}, {"title": "[FATAL] [INS-30131] \u6267\u884c\u5b89\u88c5\u7a0b\u5e8f\u9a8c\u8bc1\u6240\u9700\u7684\u521d\u59cb\u8bbe\u7f6e\u5931\u8d25", "desc": "Windows2012\u5b89\u88c5oracle 11.2.0.4\u62a5\u9519[FATAL] [INS-30131] \u6267\u884c\u5b89\u88c5\u7a0b\u5e8f\u9a8c\u8bc1\u6240\u9700\u7684\u521d\u59cb\u8bbe\u7f6e\u5931\u8d25\u3002 \u539f\u56e0: \u65e0\u6cd5\u8bbf\u95ee\u4e34\u65f6\u4f4d\u7f6e\u3002 ", "content": "
\u7f51\u4e0a\u8bf4\u7684\u65b9\u6cd5
\r\n
C:\\Users\\Administrator>net share C$=C:
\r\n
C$ \u5171\u4eab\u6210\u529f\u3002
\r\n
 
\r\n
 
\r\n
C:\\Users\\Administrator>net use \\\\localhost\\c$
\r\n
\u547d\u4ee4\u6210\u529f\u5b8c\u6210\u3002
\r\n
\u8fd9\u79cd\u65b9\u6cd5\u6ca1\u7528\uff0c\u8fd8\u662f\u62a5\u9519
\r\n
 
\r\n
\u53e6\u4e00\u79cd\u65b9\u6cd5
\r\n
\r\n\t

1.\u9488\u5bf9\u670d\u52a1\u7aef\u5b89\u88c5

\r\n\t

\u5728cmd\u4e2d\u6267\u884c\u547d\u4ee4\uff1a
\r\n\t\t\u5207\u6362\u5230oracle\u7684\u5b89\u88c5\u76ee\u5f55\uff0c\u6267\u884c\u547d\u4ee4\uff1asetup.exe -ignorePrereq -J"-Doracle.install.db.validate.supportedOSCheck=false"

\r\n\t

 

\r\n\t

2.\u9488\u5bf9\u670d\u52a1\u7aef\u5b89\u88c5

\r\n\t

\u5728cmd\u4e2d\u6267\u884c\u547d\u4ee4\uff1a

\r\n\t

\u5207\u6362\u5230oracle\u7684\u5b89\u88c5\u76ee\u5f55\uff0c\u6267\u884c\u547d\u4ee4\uff1asetup.exe -ignorePrereq -J"-Doracle.install.client.validate.clientSupportedOSCheck=false" 

\r\n\t

\u8fd9\u79cd\u65b9\u6cd5\u5b89\u88c5\u76d1\u542c\u62a5\u9519\uff0c\u8fd8\u662f\u6ca1\u7528\u3002

\r\n\t

 

\r\n\t

\u5b8c\u7f8e\u89e3\u51b3\u65b9\u6cd5

\r\n\t

1.\u70b9\u51fb \u5f00\u59cb->\u8fd0\u884c \uff0c\u8f93\u5165regedit ,\u7136\u540e\u56de\u8f66\u952e\u8fdb\u5165\u6ce8\u518c\u7f16\u8f91\u5668
\r\n\t\t2.\u627e\u5230\u5e76\u70b9\u51fbHKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\LanmanServer\\Parameters
\r\n\t\t3.\u5982\u679cAutoShareServer\u548cAutoShareWks\u4e3a0\uff0c\u5219\u5c06\u8be5\u503c\u4fee\u6539\u4e3a1

\r\n\t

4.\u6253\u5f00\u670d\u52a1\uff0c\u91cd\u542f SERVER \u670d\u52a1

\r\n
\r\n

 

\r\n"}, {"title": "Windows\u4e0b\u521b\u5efashell\u6587\u4ef6\u5230linux\u4e0b\u8fd0\u884c\u9519\u62a5", "desc": "\u4e3b\u8981\u539f\u56e0windows\u548clinux\u884c\u5c3e\u683c\u5f0f\u4e0d\u540c\uff0cunix : \\n | dos: \\r\\n | mac : \\r ", "content": "

\u62a5\u9519\u4fe1\u606f

\r\n
[root@iZ354ye9uupZ apps]# sh jschrj.sh 
\r\n
jschrj.sh: line 20: $'\\r': command not found
\r\n
jschrj.sh: line 28: $'\\r': command not found
\r\n
jschrj.sh: line 29: syntax error near unexpected token `$'{\\r'
\r\n
 
\r\n
cat \u67e5\u770b\u6587\u4ef6\u90fd\u6b63\u5e38\uff0c\u4f46\u662f\u7528 vi \u6253\u5f00\u7f16\u8f91\u6587\u4ef6\u7684\u65f6\u5019\u53d1\u73b0 \u6bcf\u884c\u90fd\u591a\u4e86 ^M;
\r\n
\u5176\u5b9e\u4e0d\u662f“^”\u518d\u52a0\u4e0a“M”\uff0c\u800c\u662f\u7531“Ctrl+v”\u3001“Ctrl+M”\u952e\u751f\u6210\u7684\uff0c\u6216\u8005Ctrl+v\uff0c\u518d\u6309\u56de\u8f66\u3002
\r\n
 
\r\n
\u89e3\u51b3\u529e\u6cd5
\r\n
\u7528 vi/vim \u547d\u4ee4\u6253\u5f00\u6587\u4ef6\uff0c\u5728\u666e\u901a\u6a21\u5f0f\u4e0b\u8f93\u5165
\r\n
:% s/\\r//g
\r\n
 
\r\n"}, {"title": "bash shell \u5b66\u4e60\u51e0\u4e2a\u91cd\u70b9", "desc": "\u6700\u8fd1\u53c8\u770b\u4e86\u4e00\u904dshell\u7f16\u7a0b\uff0c\u7ec3\u7ec3\u5e73\u65b9\u548c\uff0c\u7acb\u65b9\u548c\uff0c\u51fd\u6570\u7f16\u5199\u5c0f\u4ee3\u7801\u987a\u9053\u603b\u7ed3\u603b\u7ed3\u5b66\u4e60\u8981\u70b9\u3002", "content": "
1.\u6574\u6570\u6bd4\u8f83 \u683c\u5f0f [ num1 commond num2 ]
\r\n
num1 -eq num2  //\u5982\u679c num1\u7b49\u4e8enum2\uff0c\u8f93\u51fa\u7ed3\u679c\u4e3a0
\r\n
num1 -ge num2  //\u5982\u679c num1\u5927\u4e8e\u6216\u7b49\u4e8enum2\uff0c\u8f93\u51fa\u7ed3\u679c\u4e3a0
\r\n
num1 -gt num2  //\u5982\u679c num1\u5927\u4e8enum2\uff0c\u8f93\u51fa\u7ed3\u679c\u4e3a0
\r\n
num1 -le num2  //\u5982\u679c num1\u5c0f\u4e8e\u6216\u7b49\u4e8enum2\uff0c\u8f93\u51fa\u7ed3\u679c\u4e3a0
\r\n
num1 -lt num2  //\u5982\u679c num1\u5c0f\u4e8enum2\uff0c\u8f93\u51fa\u7ed3\u679c\u4e3a0
\r\n
num1 -ne num2  //\u5982\u679c num1\u4e0d\u7b49\u4e8enum2\uff0c\u8f93\u51fa\u7ed3\u679c\u4e3a0
\r\n
 
\r\n
\r\n\t
2.\u5b57\u7b26\u4e32\u8fd0\u7b97\u7b26
\r\n\t
string  //\u6d4b\u8bd5\u5b57\u7b26\u4e32\u662f\u5426\u4e3a\u7a7a
\r\n\t
 
\r\n\t
test -z str #\u6d4b\u8bd5\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u662f\u5426\u4e3a0\u3002
\r\n\t
test -n #\u6d4b\u8bd5\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u662f\u5426\u4e0d\u4e3a0
\r\n\t
test str1 = str2 #\u6d4b\u8bd5\u5b57\u7b26\u4e32\u662f\u5426\u76f8\u7b49
\r\n\t
test str1 != str2 #\u6d4b\u8bd5\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u4e0d\u76f8\u7b49
\r\n\t
 
\r\n\t
3.\u6d4b\u8bd5\u6587\u4ef6\u5c5e\u6027\uff0c\u8bed\u6cd5\uff1a test [ \u8868\u8fbe\u5f0f ]
\r\n\t
test -b file #\u5982\u679c\u6587\u4ef6\u5b58\u5728\u4e14\u4e3a\u5757\u8bbe\u5907\uff08Block special) ,\u5219\u4e3a\u8fd4\u56de0
\r\n\t
test -c file #\u5982\u679c\u6587\u4ef6\u5b58\u5728\u4e14\u4e3a\u5b57\u7b26\u4e32\u8bbe\u5907\uff08Character special\uff09\u8fd4\u56de0
\r\n\t
test -r file #\u5982\u679c\u6587\u4ef6\u5b58\u5728\u4e14\u4e3a\u53ea\u8bfb\uff0c\u8fd4\u56de0
\r\n\t
test -w file #\u5982\u679c\u6587\u4ef6\u5b58\u5728\u4e14\u4e3a\u53ef\u5199\uff0c\u8fd4\u56de0
\r\n\t
test -x file #\u5982\u679c\u6587\u4ef6\u5b58\u5728\u4e14\u4e3a\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u8fd4\u56de0
\r\n\t
test -s file #\u5982\u679c\u6587\u4ef6\u5b58\u5728\u4e14\u4e0d\u4e3a\u7a7a\uff0c\u8fd4\u56de0
\r\n\t
test -d file #\u5982\u679c\u6587\u4ef6\u5b58\u5728\u4e14\u4e3a\u76ee\u5f55\u6587\u4ef6\uff0c\u8fd4\u56de0
\r\n\t
test -f file #\u5982\u679c\u6587\u4ef6\u5b58\u5728\u4e14\u4e3a\u666e\u901a\u6587\u4ef6\uff0c\u8fd4\u56de0
\r\n\t
test -e file #\u5982\u679c\u6587\u4ef6\u5b58\u5728\uff0c\u8fd4\u56de0
\r\n\t
 
\r\n\t
4.\u53c2\u6570\u8c03\u7528
\r\n\t
\r\n\t\t
$0 \u8fd9\u4e2a\u7a0b\u5f0f\u7684\u6267\u884c\u540d\u5b57
\r\n\t\t
$n \u8fd9\u4e2a\u7a0b\u5f0f\u7684\u7b2cn\u4e2a\u53c2\u6570\u503c\uff0cn=1..9
\r\n\t\t
$* \u8fd9\u4e2a\u7a0b\u5f0f\u7684\u6240\u6709\u53c2\u6570,\u6b64\u9009\u9879\u53c2\u6570\u53ef\u8d85\u8fc79\u4e2a\u3002
\r\n\t\t
$# \u5b9e\u9645\u4f4d\u7f6e\u53c2\u6570\u4e2a\u6570\uff08\u4e0d\u5305\u62ecShell\u811a\u672c\u540d\uff09\u3002
\r\n\t\t
$$ \u8fd9\u4e2a\u7a0b\u5f0f\u7684PID(\u811a\u672c\u8fd0\u884c\u7684\u5f53\u524d\u8fdb\u7a0bID\u53f7)
\r\n\t\t
$! \u4e0a\u4e00\u4e2a\u540e\u53f0\u547d\u4ee4\u5bf9\u5e94\u7684\u8fdb\u7a0b\u53f7\u3002
\r\n\t\t
$? \u6267\u884c\u4e0a\u4e00\u4e2a\u6307\u4ee4\u7684\u8fd4\u56de\u503c (\u663e\u793a\u6700\u540e\u547d\u4ee4\u7684\u9000\u51fa\u72b6\u6001\u30020\u8868\u793a\u6ca1\u6709\u9519\u8bef\uff0c\u5176\u4ed6\u4efb\u4f55\u503c\u8868\u660e\u6709\u9519\u8bef)
\r\n\t\t
$- \u663e\u793ashell\u4f7f\u7528\u7684\u5f53\u524d\u9009\u9879\uff0c\u4e0eset\u547d\u4ee4\u529f\u80fd\u76f8\u540c
\r\n\t\t
$@ \u8ddf$*\u7c7b\u4f3c\uff0c\u4f46\u662f\u53ef\u4ee5\u5f53\u4f5c\u6570\u7ec4\u7528
\r\n\t\t
 
\r\n\t\t
5.\u63a7\u5236\u8bed\u53e5\u4e3b\u8981\u6709 if, case , select
\r\n\t\t
if \u5206\u652f\u7ed3\u6784
\r\n\t\t
if [\u6761\u4ef6\u8bed\u53e5] 
\r\n\t\t
then
\r\n\t\t
else
\r\n\t\t
fi
\r\n\t\t
\r\n\t\t\t
“\u8868\u8fbe\u5f0f”\u662f\u5224\u65ad\u6761\u4ef6\uff0c\u5f53“\u8868\u8fbe\u5f0f”\u503c\u4e3a\u771f\u65f6\uff0c
\r\n\t\t\t
\u6267\u884cthen\u4e4b\u540e\u7684\u547d\u4ee4\u8868\u3002\u5982\u679c“\u8868\u8fbe\u5f0f”\u7684\u503c\u4e3a\u5047\uff0c
\r\n\t\t\t
\u5219\u6267\u884celse\u4e4b\u540e\u7684\u547d\u4ee4\u8868\u3002\u5176\u4e2d“\u547d\u4ee4\u8868”\u8868\u793a\u4e00\u6761\u6216\u82e5\u5e72\u6761\u547d\u4ee4
\r\n\t\t\t
\u3002
\r\n\t\t\t
\u25cf\u3000else\u53ef\u4ee5\u7701\u7565\u3002
\r\n\t\t\t
\u25cf\u3000fi\u8868\u793aif\u7ed3\u6784\u7ed3\u675f\u3002
\r\n\t\t\t
if\u8bed\u53e5\u53ef\u4ee5\u65e0\u9650\u5c42\u5730\u5d4c\u5957\u5728\u5176\u4ed6if\u8bed\u53e5\u4e2d\uff0c\u4ece\u800c\u5b9e\u73b0\u591a\u91cd\u9009\u9879
\r\n\t\t\t
 
\r\n\t\t
\r\n\t\t
case \u5206\u652f\u7ed3\u6784
\r\n\t\t
case \u8868\u8fbe\u5f0f in
\r\n\t\t
 \u6a21\u5f0f11[|\u6a21\u5f0f12]... ) \u547d\u4ee4\u88681;;
\r\n\t\t
 \u6a21\u5f0f21[|\u6a21\u5f0f22]... ) \u547d\u4ee4\u88682;;
\r\n\t\t
 \u6a21\u5f0f31[|\u6a21\u5f0f32]... ) \u547d\u4ee4\u88683;;
\r\n\t\t
 \u6a21\u5f0f41[|\u6a21\u5f0f42]... ) \u547d\u4ee4\u88684;;
\r\n\t\t
 *) \u547d\u4ee4\u8868N;
\r\n\t\t
esac
\r\n\t\t
 
\r\n\t\t
\r\n\t\t\t
“\u8868\u8fbe\u5f0f”\u662f\u5224\u65ad\u6761\u4ef6\uff0c\u901a\u5e38\u662f\u4e00\u4e2a\u53d8\u91cf\u540d\u79f0\u3002“\u8868\u8fbe\u5f0f”
\r\n\t\t\t
\u4e0e\u6bcf\u4e00\u5206\u652f\u524d\u7684\u6a21\u5f0f\u8fdb\u884c\u6bd4\u8f83\uff0c\u5982\u679c\u5339\u914d\uff0c
\r\n\t\t\t
\u5219\u6267\u884c\u76f8\u5e94\u5206\u652f\u53f3\u62ec\u53f7\uff09\u540e\u9762\u7684\u547d\u4ee4\u8868\u3002
\r\n\t\t\t
\u25cf\u3000\u6bcf\u4e00\u5206\u652f\u4e2d\u7684\u6a21\u5f0f\uff0c\u53ef\u4ee5\u6709\u591a\u4e2a\uff0c\u4f46\u5fc5\u987b\u4ee5\uff09\u7ed3\u5c3e\u3002
\r\n\t\t\t
\u25cf\u3000\u547d\u4ee4\u8868\u53ef\u4ee5\u662f\u4e00\u4e2a\u547d\u4ee4\u6216\u591a\u4e2a\u547d\u4ee4\u3002
\r\n\t\t\t
\u25cf\u3000\u5206\u652f\u8bed\u53e5\u7684\u4e2a\u6570\u6ca1\u6709\u89c4\u5b9a\uff0c\u53ef\u4ee5\u65e0\u9650\u5236\u5730\u589e\u52a0\u3002
\r\n\t\t\t
\u6bcf\u4e00\u5206\u652f\u4ee5;;\u8868\u793a\u8be5\u5206\u652f\u7ed3\u675f\u3002
\r\n\t\t\t
\u25cf\u3000\u5206\u652f*)\u662f\u8868\u793a\u5728\u524d\u9762\u6240\u6709\u53ef\u80fd\u7684\u5339\u914d\u90fd\u4e0d\u6ee1\u8db3\u65f6\u7684\u5904\u7406\u65b9\u5f0f
\r\n\t\t\t
\uff0c\u8be5\u5206\u652f\u4e0d\u662f\u5fc5\u9700\u7684\uff0c\u53ef\u4ee5\u7701\u7565\u3002
\r\n\t\t\t
\u4f46\u8be5\u5206\u652f\u5982\u679c\u4f7f\u7528\u5fc5\u987b\u653e\u5728\u6240\u6709\u5176\u4ed6\u5206\u652f\u7684\u540e\u9762\u3002
\r\n\t\t\t
\u25cf\u3000esac\u8868\u793acase\u7ed3\u6784\u7ed3\u675f\u3002
\r\n\t\t\t
\u25cf\u3000\u6a21\u5f0f\u4e2d\u53ef\u4ee5\u4f7f\u7528|\uff0c\u8868\u793a\u5404\u6a21\u5f0f\u4e4b\u95f4\u662f“\u6216”\u7684\u5173\u7cfb\u3002\u4f8b\u5982\uff0cP
\r\n\t\t\t
|p\u610f\u5473\u7740\u5927\u5199\u548c\u5c0f\u5199\u7684p\u90fd\u53ef\u5339\u914d\u3002
\r\n\t\t\t
\u25cf\u3000\u6a21\u5f0f\u4e2d\u53ef\u4ee5\u4f7f\u7528Shell\u901a\u914d\u7b26\uff0c\u5982*\u3001?\u548c[]\u7b49\u3002
\r\n\t\t
\r\n\t\t
 
\r\n\t\t
select\u5206\u652f\u7ed3\u6784
\r\n\t\t
select \u53d8\u91cf in \u5217\u8868
\r\n\t\t
 do 
\r\n\t\t
  \u547d\u4ee4\u8868
\r\n\t\t
done
\r\n\t\t
 
\r\n\t\t
\r\n\t\t\t
\u5217\u8868”\u662f\u4e00\u4e2a\u7531\u5b57\u7b26\u4e32\u7ec4\u6210\u7684\u5e8f\u5217\uff0c\u5728\u7a0b\u5e8f\u6267\u884cselect\u65f6
\r\n\t\t\t
\uff0c\u8be5\u5217\u8868\u5c06\u4ee5\u83dc\u5355\u5f62\u5f0f\u8fdb\u884c\u663e\u793a\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u5176\u4e2d\u8fdb\u884c\u9009\u62e9\u3002
\r\n\t\t\t
Shell\u4f1a\u5728\u663e\u793a\u5217\u8868\u540e\uff0c\u7b49\u5f85\u7528\u6237\u9009\u62e9\u5176\u4e2d\u67d0\u4e00\u9879\u3002
\r\n\t\t\t
\u5f53\u7528\u6237\u9009\u62e9\u4e86\u67d0\u4e00\u9879\u4e4b\u540e\uff0cShell\u4f1a\u628a\u8be5\u9009\u9879\u8d4b\u503c\u7ed9“\u53d8\u91cf”\uff0c
\r\n\t\t\t
\u5e76\u6267\u884cselect\u7ed3\u6784\u4f53\u4e2d\u7684\u547d\u4ee4\u3002do…
\r\n\t\t\t
done\u4e4b\u95f4\u662fselect\u5faa\u73af\u7684\u5faa\u73af\u4f53\uff0cdo\u8868\u793a\u5faa\u73af\u5f00\u59cb\uff0c
\r\n\t\t\t
done\u8868\u793a\u5faa\u73af\u7ed3\u675f\u3002
\r\n\t\t\t
\u901a\u5e38select\u603b\u662f\u4e0ecase\u7ed3\u6784\u4e00\u8d77\u4f7f\u7528\uff0c\u5141\u8bb8\u7528\u6237\u5728\u83dc\u5355\u4e2d\u9009\u62e9\uff0c
\r\n\t\t\t
\u5e76\u57fa\u4e8e\u9009\u62e9\u6267\u884c\u76f8\u5e94\u7684\u547d\u4ee4\u3002\u5f53\u6267\u884c\u5230break\u8bed\u53e5\u65f6\uff0c
\r\n\t\t\t
\u5c06\u9000\u51faselect\u7ed3\u6784\u3002
\r\n\t\t
\r\n\t\t
 
\r\n\t\t
6.\u5faa\u73af\u8bed\u53e5\u4e3b\u8981\u6709 while , for , until ,\u4e2d\u65ad\u8bed\u53e5\u4e3b\u8981\u6709 break , continue
\r\n\t\t
while \u5faa\u73af\u7ed3\u6784
\r\n\t\t
while \u8868\u8fbe\u5f0f
\r\n\t\t
 do
\r\n\t\t
 \u547d\u4ee4\u8868
\r\n\t\t
 done
\r\n\t\t
\r\n\t\t\t
\u5176\u4e2d\uff0c“\u8868\u8fbe\u5f0f”\u4e3a\u5faa\u73af\u63a7\u5236\u6761\u4ef6\uff0c
\r\n\t\t\t
\u5728\u6bcf\u4e00\u6b21\u5faa\u73af\u5f00\u59cb\u524d\u90fd\u4f1a\u88ab\u68c0\u67e5\u3002\u5982\u679c“\u8868\u8fbe\u5f0f”\u7684\u503c\u4e3a\u771f\uff0c
\r\n\t\t\t
\u5219\u6267\u884cdo\u548cdone\u4e4b\u95f4\u7684\u4ee3\u7801\uff0c\u6267\u884c\u5b8c\u6bd5\u540e\uff08\u5373\u9047\u5230done\uff09
\r\n\t\t\t
\u4f1a\u91cd\u65b0\u5bf9“\u8868\u8fbe\u5f0f”\u7684\u503c\u8fdb\u884c\u8ba1\u7b97\uff0c\u5982\u679c\u4ecd\u4e3a\u771f\uff0c
\r\n\t\t\t
\u5219\u518d\u6b21\u8fdb\u5165\u5faa\u73af\u4f53\u3002\u5982\u679c“\u8868\u8fbe\u5f0f”\u7684\u503c\u53d8\u4e3a\u5047\uff0c\u5219\u5faa\u73af\u7ed3\u675f\u3002
\r\n\t\t\t
\u5176\u4e2ddo\u548cdone\u4e4b\u95f4\u7684\u547d\u4ee4\u8868\u6784\u6210\u4e86while\u7684\u5faa\u73af\u4f53\u3002
\r\n\t\t\t
while\u5faa\u73af\u7684\u5177\u4f53\u6267\u884c\u6b65\u9aa4\u5982\u4e0b\uff1a\u9996\u5148\u6267\u884c“\u8868\u8fbe\u5f0f”\uff0c
\r\n\t\t\t
\u82e5\u8fd4\u56de\u7801\u4e3a0\uff0c\u5219\u4e3a\u771f\uff0c\u8fdb\u5165\u5faa\u73af\u4f53\uff0c\u6267\u884c“\u547d\u4ee4\u8868”\u4e00\u6b21\uff0c
\r\n\t\t\t
\u7136\u540e\u8fd4\u56de\u6267\u884c“\u8868\u8fbe\u5f0f”……\u76f4\u5230“\u8868\u8fbe\u5f0f”\u7684\u8fd4\u56de\u7801\u4e3a\u975e0\uff08
\r\n\t\t\t
\u5373\u4e3a\u5047\uff09\uff0c\u5faa\u73af\u7ed3\u675f\uff0c\u7ee7\u7eed\u6267\u884cdone\u8bed\u53e5\u4e4b\u540e\u7684\u4ee3\u7801\u3002
\r\n\t\t\t
 
\r\n\t\t\t
for \u5faa\u73af\u7ed3\u6784
\r\n\t\t\t
for \u53d8\u91cf [ in \u5217\u8868]
\r\n\t\t\t
do 
\r\n\t\t\t
 \u547d\u4ee4\u8868
\r\n\t\t\t
done
\r\n\t\t\t
 
\r\n\t\t\t
\r\n\t\t\t\t
“\u5217\u8868”\u901a\u5e38\u7531\u4e00\u7cfb\u7edf\u4ee5\u7a7a\u683c\u4e3a\u5206\u9694\u7684\u5b57\u7b26\u4e32\u7ec4\u6210\u3002
\r\n\t\t\t\t
\u25cf\u3000“\u5217\u8868”\u4e2d\u7684\u5b57\u7b26\u4e32\u5c06\u4f9d\u6b21\u8d4b\u503c\u7ed9“\u53d8\u91cf”\uff0c\u6bcf\u6b21\u8d4b\u503c\u540e\u5c06\u6267\u884c“
\r\n\t\t\t\t
\u547d\u4ee4\u8868”\u4e2d\u7684\u547d\u4ee4\u3002\u5faa\u73af\u5c06\u5728\u53d6\u5b8c“\u5217\u8868”\u4e2d\u7684\u6240\u6709\u53c2\u6570\u65f6\u505c\u6b62\u3002
\r\n\t\t\t\t
\u25cf\u3000do…done\u4e3afor\u5faa\u73af\u7684\u5faa\u73af\u4f53\uff0c
\r\n\t\t\t\t
\u6bcf\u6b21\u5faa\u73af\u5c06\u6267\u884c\u5faa\u73af\u4f53\u4e2d\u7684\u547d\u4ee4\u3002do\u8868\u793a\u5faa\u73af\u4f53\u7684\u5f00\u59cb\uff0c
\r\n\t\t\t\t
done\u8868\u793a\u5faa\u73af\u4f53\u7ed3\u675f\u3002
\r\n\t\t\t\t
\u25cf\u3000\u7ed3\u675f\u5faa\u73af\u540e\uff0c\u5c06\u7ee7\u7eed\u6267\u884cdone\u540e\u7684\u4ee3\u7801\u3002
\r\n\t\t\t\t
\u25cf\u3000\u5982\u679c\u7701\u7565\u4e86“in\u5217\u8868”\uff0c
\r\n\t\t\t\t
\u5219for\u4f1a\u5c06\u5f53\u524d\u6267\u884c\u811a\u672c\u4e2d\u7684\u6bcf\u4e2a\u4f4d\u7f6e\u53c2\u6570\u4f5c\u4e3a“\u5217\u8868”\uff0c
\r\n\t\t\t\t
\u4e00\u6b21\u6267\u884c\u5217\u8868\u4e2d\u7684\u4e00\u4e2a\u3002\u5373“for\u53d8\u91cf”\u9690\u542b\u8868\u793a“for\u53d8\u91cf$@”\u3002
\r\n\t\t\t
\r\n\t\t
\r\n\t
\r\n
\r\n

until \u5faa\u73af\u7ed3\u6784

\r\n

until

\r\n

 \u547d\u4ee4\u88681

\r\n

test \u8868\u8fbe\u5f0f

\r\n

do 

\r\n

  \u547d\u4ee4\u88682

\r\n

done

\r\n
“\u8868\u8fbe\u5f0f”\u4e3a\u5faa\u73af\u63a7\u5236\u6761\u4ef6\uff0c\u5728\u8868\u8fbe\u5f0f\u4e3a\u771f\u65f6\uff0c\u7ed3\u675f\u5faa\u73af\uff0c
\r\n
\u8868\u8fbe\u5f0f\u4e3a\u5047\u65f6\uff0c\u7ee7\u7eed\u6267\u884c\u5faa\u73af\u3002
\r\n
\u25cf\u3000do…done\u4e4b\u95f4\u4e3auntil\u5faa\u73af\u7684\u5faa\u73af\u4f53\u3002
\r\n
\u6bcf\u6b21\u5faa\u73af\u65f6\u5c06\u6267\u884c\u5176\u4e2d\u7684“\u547d\u4ee4\u88682”\u3002
\r\n
\u25cf\u3000until\u5faa\u73af\u7ed3\u675f\u540e\uff0c\u5c06\u6267\u884cdone\u540e\u7684\u8bed\u53e5\u3002
\r\n
until\u5faa\u73af\u7684\u5177\u4f53\u6267\u884c\u6b65\u9aa4\u4e3a\uff1a\u9996\u5148\u6267\u884c“\u547d\u4ee4\u88681”\uff0c\u5e76\u68c0\u6d4b“
\r\n
\u8868\u8fbe\u5f0f”\u7684\u503c\uff0c\u82e5\u8868\u8fbe\u5f0f\u8fd4\u56de\u503c\u4e3a\u975e0\uff0c\u5219\u6267\u884c\u5faa\u73af\u4f53“\u547d\u4ee4\u88682”
\r\n
\u4e00\u6b21\uff0c\u7136\u540e\u8fd4\u56de\u518d\u6b21\u6267\u884c“\u547d\u4ee4\u88681”\uff0c\u5e76\u518d\u6b21\u68c0\u6d4b“\u8868\u8fbe\u5f0f”\u7684\u503c
\r\n
……\u5982\u6b64\u5f80\u590d\u76f4\u5230“\u8868\u8fbe\u5f0f”\u7684\u8fd4\u56de\u503c\u4e3a0\uff0c\u5faa\u73af\u7ed3\u675f\u3002
\r\n
 
\r\n
break \u548c continue \u662f\u5faa\u73af\u8df3\u51fa\u8bed\u53e5\u901a\u5e38\u914d\u5408 if \u4f7f\u7528\uff0c break \u662f\u76f4\u63a5\u8df3\u51fa\u5faa\u73af\u4f53\uff0c\u4e0d\u5728\u5faa\u73af\u3002continue \u662f\u8df3\u51fa\u5f53\u524d\u5faa\u73af\uff0c\u4e0b\u9762\u5faa\u73af\u4f53\u7ee7\u7eed\u6267\u884c\u3002
\r\n
 
\r\n
 
\r\n"}, {"title": "Centos6.6 minimal\u5b89\u88c5redis5.05", "desc": "Linux Centos6.6 minimal\u5b89\u88c5redis5.05\u9047\u5230\u7684\u5751\uff0c\u76f4\u63a5\u7528\u5b98\u7f51\u7684\u547d\u4ee4 make\u62a5\u9519\u5927\u6982\u610f\u601d\u662f\u63d0\u793a\u7f3a\u5c11gcc,\u9ed8\u8ba4\u6ca1\u5b89\u88c5\u3002", "content": "

1.\u5148\u5b89\u88c5\u4f9d\u8d56\u5305 yum install gcc tcl

\r\n

gcc\u7528\u4e8e\u7f16\u8bd1\uff0ctcl\u7528\u4e8e make test \u53ef\u4ee5\u4e0d\u5b89\u88c5

\r\n

2.\u8fdb\u5165redis\u76ee\u5f55make\u4f1a\u62a5\u5982\u4e0b\u9519

\r\n

cc: ../deps/hiredis/libhiredis.a: No such file or directory
\r\n\tcc: ../deps/lua/src/liblua.a: No such file or directory
\r\n\tcc: ../deps/jemalloc/lib/libjemalloc.a: No such file or directory

\r\n

\u89e3\u51b3\u65b9\u6cd5\uff1a\u5206\u522b\u8fdb\u5165 /deps/hiredis/ /deps/lua \u8fd0\u884c make; \u8fdb\u5165 /deps/jemalloc \u76ee\u5f55\uff0c\u5148\u8fd0\u884c ./configure \u7136\u540e\u6267\u884c make

\r\n

3.\u518d\u6b21\u5728 redis \u76ee\u5f55\u4e0b\u6267\u884c make\uff0c\u5982\u679c\u8fd8\u62a5\u9519

\r\n

[root@data2 redis-5.0.5]# make
\r\n\tcd src && make all
\r\n\tmake[1]: Entering directory `/redis-5.0.5/src'
\r\n\t    LINK redis-server
\r\n\tcc: ../deps/lua/src/liblua.a: No such file or directory
\r\n\tmake[1]: *** [redis-server] Error 1
\r\n\tmake[1]: Leaving directory `/redis-5.0.5/src'
\r\n\tmake: *** [all] Error 2

\r\n

\u89e3\u51b3\u65b9\u6cd5\uff1a\u5220\u9664 resdis \u6574\u4e2a\u76ee\u5f55\u53ca\u5176\u6240\u6709\u6587\u4ef6\uff0c\u91cd\u65b0\u89e3\u538b redis-5.0.5.tar.gz \uff0c\u8fdb\u5165 redis \u76ee\u5f55\u6267\u884cmake

\r\n

make[1]: Entering directory `/redis-5.0.5/src'
\r\n\t
\r\n\tHint: It's a good idea to run 'make test' ;)
\r\n\t
\r\n\tmake[1]: Leaving directory `/redis-5.0.5/src'

\r\n

\u5b89\u88c5\u6210\u529f\uff0cmake \u4e4b\u524d\u53ef\u4ee5\u5148\u6267\u884c make test \u6d4b\u8bd5\u4e00\u4e0b\u3002

\r\n

  1 seconds - unit/lazyfree
\r\n\t  27 seconds - integration/block-repl
\r\n\t  6 seconds - unit/wait
\r\n\t  7 seconds - unit/pendingquerybuf
\r\n\t  22 seconds - integration/psync2-reg
\r\n\t  16 seconds - unit/geo
\r\n\t  26 seconds - integration/psync2
\r\n\t  20 seconds - unit/obuf-limits
\r\n\t  29 seconds - integration/replication-4
\r\n\t  32 seconds - integration/replication-3
\r\n\t  28 seconds - unit/maxmemory
\r\n\t  45 seconds - unit/memefficiency
\r\n\t  52 seconds - unit/hyperloglog
\r\n\t  91 seconds - unit/aofrw
\r\n\t  95 seconds - unit/type/list-3
\r\n\t  107 seconds - integration/replication
\r\n\t  108 seconds - integration/replication-psync
\r\n\t
\r\n\t\\o/ All tests passed without errors!
\r\n\t
\r\n\tCleanup: may take some time... OK
\r\n\tmake[1]: Leaving directory `/redis-5.0.5/src'

\r\n

\u8fd9\u6837\u5c31\u5e94\u8be5\u6ca1\u95ee\u9898\u4e86

\r\n

4.redis \u542f\u52a8\u505c\u6b62\u547d\u4ee4

\r\n

./src/redis-server redis.conf     //\u542f\u52a8 redis \u5b89\u88c5\u76ee\u5f55\u4e0b\u6267\u884c\uff0c\u4f7f\u7528\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684 redis.conf \u4f5c\u4e3a\u914d\u7f6e\u6587\u4ef6

\r\n

./src/redis-cli shutdown           //\u5173\u95ed redis \u5b89\u88c5\u76ee\u5f55\u4e0b\u6267\u884c

\r\n

 

\r\n

 

\r\n"}, {"title": "Windows Server2019\u81ea\u52a8\u6253\u5f0080\u7aef\u53e3\u670d\u52a1", "desc": "\u8dd1IDEA\u9879\u76ee\u7684\u65f6\u5019TOMCAT\u7aef\u53e3\u8bbe\u7f6e80\uff0c\u62a5\u9519\u7aef\u53e3\u88ab\u5360\u7528\u3002\u67e5\u770bSystem\u8fdb\u7a0b\u53d1\u73b0\u7cfb\u7edf\u81ea\u52a8\u6253\u5f00\u4e8680\u7aef\u53e3.", "content": "

\u62a5\u9519\u4fe1\u606f

\r\n

Description:
\r\n\t
\r\n\tThe Tomcat connector configured to listen on port 80 failed to start. The port may already be in use or the connector may be misconfigured.
\r\n\t
\r\n\tAction:

\r\n

\u67e5\u770b\u54ea\u4e2a\u7a0b\u5e8f\u5360\u7528\u4e8680\u7aef\u53e3\u3002

\r\n

C:\\Users\\Administrator>netstat -aon | findstr :80
\r\n\t  TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       4
\r\n\t  TCP    0.0.0.0:8082           0.0.0.0:0              LISTENING       6408
\r\n\t  TCP    192.168.1.168:50315    101.89.15.106:8080     ESTABLISHED     9128
\r\n\t  TCP    192.168.1.168:50457    180.163.21.43:80       CLOSE_WAIT      6408
\r\n\t  TCP    192.168.1.168:56974    140.206.78.22:80       ESTABLISHED     996
\r\n\t  TCP    192.168.1.168:57320    13.33.186.233:80       ESTABLISHED     9676
\r\n\t  TCP    192.168.1.168:57442    183.2.196.159:80       CLOSE_WAIT      6408
\r\n\t  TCP    192.168.1.168:57444    220.197.198.179:80     ESTABLISHED     1592
\r\n\t  TCP    192.168.1.168:57445    220.197.198.179:80     ESTABLISHED     1592
\r\n\t  TCP    [::]:80                [::]:0                 LISTENING       4

\r\n

\u770b\u5230\u8fdb\u7a0b\u53f7\u4e3a4

\r\n

\u67e5\u770b\u8fdb\u7a0b\u53f7\u4e3a4\u7684\u7a0b\u5e8f

\r\n

C:\\Users\\Administrator>tasklist /FI "PID eq 4"
\r\n\t
\r\n\t\u6620\u50cf\u540d\u79f0                       PID \u4f1a\u8bdd\u540d              \u4f1a\u8bdd#       \u5185\u5b58\u4f7f\u7528
\r\n\t========================= ======== ================ =========== ============
\r\n\tSystem                           4 Services                   0        116 K

\r\n

 

\r\n

\u89e3\u51b3\u65b9\u6cd5\uff1a\u4fee\u6539\u6ce8\u518c\u8868

\r\n

1. \u8fd0\u884c “regedit" \u6253\u5f00\u6ce8\u518c\u8868
\r\n\t1. \u4f4d\u7f6e HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\HTTP
\r\n\t2. \u628a REG_DWORD \u7c7b\u578b\u7684\u9879 Start \u7684\u503c\u6539\u4e3a 4
\r\n\t\uff08\u6ce8\uff1a\u4fee\u6539\u540e\u9700\u8981\u91cd\u542f\u7cfb\u7edf\uff09

\r\n"}, {"title": "Windows Server2019\u4f7f\u7528PE\u5b89\u88c5\u5f15\u5bfc\u5931\u8d25", "desc": "\u4f7f\u7528 PE \u4e2d\u7684WinNtSetup \u6216\u8005Easy Image X \u5b89\u88c5 Windows Server2019 \u64cd\u4f5c\u7cfb\u7edf\u9047\u5230\u5f15\u5bfc\u5931\u8d25\u7684\u95ee\u9898\u8bb0\u5f55\u3002", "content": "

\u6211\u662f\u5728\u865a\u62df\u673a\u91cc\u5b89\u88c5\u7684\uff0cVMware Workstation Pro \u7248\u672c 15.0.4-12990004 \uff0cPE \u4f7f\u7528\u7684\u662f EasyU_v3.3\u3002

\r\n

1.\u4f7f\u7528 VMware Workstation Pro \u65b0\u5efa\u865a\u62df\u673a\uff0c\u64cd\u4f5c\u7cfb\u7edf\u9009\u4e0d\u5230 Windows Server 2019 \u9009\u62e9 Windows Server 2016 \u5373\u53ef\u3002

\r\n

2.\u865a\u62df\u673a\u521b\u5efa\u5b8c\u6210\u540e\uff0c\u5c06 EasyU_v3.3.iso PE \u955c\u50cf\u6302\u8f7d\u5230\u865a\u62df\u673a CD/DVD \u9a71\u52a8\u4e0a\u3002

\r\n

3.\u8fd9\u65f6\u6253\u5f00\u865a\u62df\u673a\u7535\u6e90\u8fdb\u5165\u7684\u662f PE \u7cfb\u7edf\uff0c\u4f7f\u7528 WinNtSetup \u6216\u8005 EIX\u7cfb\u7edf\u5b89\u88c5\u5de5\u5177\u9009\u62e9 install.wim \u955c\u50cf\u6587\u4ef6\u8fdb\u884c\u5b89\u88c5\u3002

\r\n

\u9047\u5230\u7684\u95ee\u9898\uff1a

\r\n

1.\u955c\u50cf\u8fd8\u539f\u6210\u529f\u540e\u6ca1\u6709\u5f15\u5bfc\u8fd8\u662f\u4ece PE \u7684ISO \u6587\u4ef6\u542f\u52a8\u8fdb\u5165PE\u7cfb\u7edf\u3002

\r\n

\u4e3b\u8981\u539f\u56e0\u662f\u786c\u76d8\u5206\u533a\u4f7f\u7528\u7684\u662f MBR \u5bfc\u81f4\u7684\uff0c\u5fc5\u987b\u4f7f\u7528 GPT \u5206\u533a\u683c\u5f0f\u8fdb\u884c\u5206\u533a\u3002

\r\n

2.install.wim \u6587\u4ef6\u54ea\u91cc\u6765\u3002

\r\n

\u5728 sources \u76ee\u5f55\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528 NTLite \u5de5\u5177\u81ea\u5df1\u63d0\u53d6\u5b9a\u5236\u955c\u50cf\uff0c\u8fd9\u4e5f\u662fPE\u5b89\u88c5\u7684\u7cbe\u9ad3\u6240\u5728\u3002\u4e0d\u7136\u76f4\u63a5\u4f7f\u7528\u539f\u7248 ISO \u523b\u76d8\u5b89\u88c5\u7b80\u5355\u7701\u4e8b

\r\n

3.\u5982\u4f55\u5c06\u672c\u5730\u7535\u8111\u4e0a\u7684 install.wim \u6587\u4ef6\u5f04\u5230\u865a\u62df\u673a\u91cc

\r\n

\u5982\u679c\u4f60\u7684 PE \u652f\u6301 U \u76d8\u63d2\u5165\u8bc6\u522b\u5728\u865a\u62df\u673a\u91cc\u6dfb\u52a0 USB\u63a7\u5236\u5668\u5373\u53ef\uff0c\u53ef\u60dc\u6211\u7684PE\u4e0d\u652f\u6301\uff0c\u7b80\u5355\u8bf4\u4e00\u4e0b\u601d\u8def\u867d\u7136\u5f88\u7e41\u7410\u7684\u786e\u662f\u4e00\u4e2a\u89e3\u51b3\u7684\u65b9\u6cd5\u3002

\r\n

\uff081\uff09\u5728\u4e00\u53f0\u5df2\u7ecf\u5b89\u88c5\u597d Windows \u64cd\u4f5c\u7cfb\u7edf\u7684\u865a\u62df\u673a\uff0c\u6dfb\u52a0\u4e00\u5757\u786c\u76d8\u3002

\r\n

\uff082\uff09\u5f00\u673a\u542f\u52a8\u5230"\u78c1\u76d8\u7ba1\u7406" \u91cc\u5c06\u65b0\u786c\u76d8\u5206\u533a\u683c\u5f0f\u5316\u3002

\r\n

\uff083\uff09\u5f00\u542f\u8fdc\u7a0b\u8fde\u63a5\u901a\u8fc7\u8fdc\u7a0b\u684c\u9762\u5c06\u672c\u5730 install.wim \u6620\u50cf\u6587\u4ef6\u62f7\u8d1d\u5230\u65b0\u786c\u76d8\u4e0a\uff0c\u5173\u95ed\u865a\u62df\u673a\uff0c\u5c06\u786c\u76d8\u5220\u9664\u3002

\r\n

\uff084\uff09\u5173\u95ed\u6302\u8f7d PE ISO\u7684\u865a\u62df\u673a \u6dfb\u52a0\u786c\u76d8\u9009\u62e9“\u73b0\u6709\u865a\u62df\u78c1\u76d8\uff08E\uff09”\u5c06\u5b58\u6709\u955c\u50cf\u7684\u786c\u76d8\u6dfb\u52a0\u5230 PE ISO\u7684\u865a\u62df\u673a

\r\n

\uff085\uff09\u6253\u5f00\u865a\u62df\u673a\u7535\u6e90\uff0c\u8fdb\u5165PE \u7cfb\u7edf\u6302\u8f7d\u4e0a\u6b65\u6dfb\u52a0\u7684\u786c\u76d8\u5c31\u53ef\u4ee5\u4f7f\u7528\u81ea\u5df1\u5236\u4f5c\u7684\u955c\u50cf\u5b89\u88c5\u64cd\u4f5c\u81ea\u5df1DRY\u7684\u7cfb\u7edf\u4e86

\r\n

\u6ce8\u610f\u8981\u9009\u62e9GPT\u5206\u533a\u683c\u5f0f\uff0c\u4e0d\u7136\u5f15\u5bfc\u4e0d\u4e86\u7cfb\u7edf

\r\n

 

\r\n"}, {"title": "-bash: bad substitution: no closing \"`\" in ` /", "desc": "\u6d01\u7656\u5fc3\u7406\u52a0\u7c97\u5fc3\u5f15\u53d1\u5f97\u4e00\u4e2a\u62a5\u9519\uff0c\u539f\u56e0\u662f\u4fee\u6539\u670d\u52a1\u5668\u540d\u79f0\u4e0d\u5c0f\u5fc3\u6309\u5230\u4e86ESC\u4e0b\u9762\u5f97\u90a3\u4e2a ` \u952e\u4e86\uff0c\u8fd9\u662f\u4e00\u4e2a\u6267\u884c\u6807\u70b9\uff0c\u88ab ` ` \u5305\u88f9\u8bed\u53e5\u4e0d\u662f\u5b57\u7b26\u4e32\u5728shell \u91cc\u8868\u793a\u5f97\u662f\u6267\u884c\u8bed\u53e5\u3002", "content": "

\u6572\u4efb\u4f55\u547d\u4ee4\u90fd\u6709\u5982\u4e0b\u62a5\u9519\u4fe1\u606f

\r\n

[root@database` ~]# cd ..
\r\n\t-bash: bad substitution: no closing "`" in ` /]#

\r\n

[root@database` ~]# df -hT
\r\n\tFilesystem           Type   Size  Used Avail Use% Mounted on
\r\n\t/dev/mapper/VolGroup-lv_root
\r\n\t                     ext4    45G   14G   30G  32% /
\r\n\ttmpfs                tmpfs  3.9G   72K  3.9G   1% /dev/shm
\r\n\t/dev/sda1            ext4   477M   40M  412M   9% /boot
\r\n\t/dev/mapper/zhoudl-jschrj
\r\n\t                     ext4   443G  5.0G  416G   2% /app
\r\n\t-bash: bad substitution: no closing "`" in ` ~]#

\r\n

[root@database` ~]# more /etc/fstab
\r\n\t
\r\n\t#
\r\n\t# /etc/fstab
\r\n\t# Created by anaconda on Wed May 31 16:47:07 2017
\r\n\t#
\r\n\t# Accessible filesystems, by reference, are maintained under '/dev/disk'
\r\n\t# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
\r\n\t#
\r\n\t/dev/mapper/VolGroup-lv_root /                       ext4    defaults        1 1
\r\n\tUUID=29667da6-506d-4683-8361-f65bd09ae994 /boot                   ext4    defaults        1 2
\r\n\t/dev/mapper/VolGroup-lv_swap swap                    swap    defaults        0 0
\r\n\ttmpfs                   /dev/shm                tmpfs   defaults        0 0
\r\n\tdevpts                  /dev/pts                devpts  gid=5,mode=620  0 0
\r\n\tsysfs                   /sys                    sysfs   defaults        0 0
\r\n\tproc                    /proc                   proc    defaults        0 0
\r\n\t/dev/zhoudl/jschrj         /app/                    ext4    defaults    0 0
\r\n\t-bash: bad substitution: no closing "`" in ` ~]#
\r\n\t 

\r\n

\u4ed4\u7ec6\u770b database` \u591a\u4e86\u4e2a ` \uff0c\u4fee\u6539 /etc/sysconfig/network \u6587\u4ef6

\r\n

[root@database` ~]# vi /etc/hosts

\r\n

reboot \u91cd\u542f\u670d\u52a1\u5668\u95ee\u9898\u89e3\u51b3\u3002

\r\n"}, {"title": "\u4fee\u6539NVIDIA\u8bbe\u7f6e\u5bfc\u81f4\u7684TeamViewer \u8fdc\u7a0b\u5931\u8d25", "desc": "\u75c7\u72b6\u4f7f\u7528Teamviewer\u5ba2\u6237\u7aef\u8fde\u63a5\u8fdc\u7a0b\u670d\u52a1\uff0c\u8f93\u5165\u8d26\u53f7\u5bc6\u7801\u540eTeamViewer\u88ab\u81ea\u52a8\u5173\u95ed\u3002TeamViewer\u7248\u672c\u4e3a13.0.6447.0", "content": "

\u6211\u7535\u8111\u706b\u5f71\u91d1\u521a T1-S \u663e\u5361\u4e3a NVIDIA GeForce GTX965M \u64cd\u4f5c\u7cfb\u7edf\u4e3a\uff1aMicrosoft Windows Server 2019 Essentials \u5728 NVIDIA \u63a7\u5236\u9762\u677f-----\u7ba1\u74063D\u8bbe\u7f6e \u4e2d“\u5168\u5c40\u8bbe\u7f6e”---“\u9996\u9009\u56fe\u5f62\u5904\u7406\u5668”

\r\n

\u9ed8\u8ba4\u4e3a ”\u81ea\u52a8\u9009\u62e9“ \u6539\u6210\u4e86 “\u9ad8\u6027\u80fd NVIDIA \u5904\u7406\u5668” \u5bfc\u81f4\u7684Teamviewer\u5ba2\u6237\u7aef\u8fde\u63a5\u8fdc\u7a0b\u670d\u52a1\uff0c\u8f93\u5165\u8d26\u53f7\u5bc6\u7801\u540eTeamViewer\u88ab\u81ea\u52a8\u5173\u95ed\u3002

\r\n

\u67e5\u770b\u62a5\u9519\u4fe1\u606f\u4e3a\uff1a

\r\n

\u9519\u8bef\u5e94\u7528\u7a0b\u5e8f\u540d\u79f0: TeamViewer.exe\uff0c\u7248\u672c: 13.0.6447.0\uff0c\u65f6\u95f4\u6233: 0x5a33aa7f
\r\n\t\u9519\u8bef\u6a21\u5757\u540d\u79f0: nvd3dum.dll\uff0c\u7248\u672c: 10.18.13.5923\uff0c\u65f6\u95f4\u6233: 0x5678befd
\r\n\t\u5f02\u5e38\u4ee3\u7801: 0xc0000005
\r\n\t\u9519\u8bef\u504f\u79fb\u91cf: 0x0056efc8
\r\n\t\u9519\u8bef\u8fdb\u7a0b ID: 0x2778
\r\n\t\u9519\u8bef\u5e94\u7528\u7a0b\u5e8f\u542f\u52a8\u65f6\u95f4: 0x01d4f35db03a4ed5
\r\n\t\u9519\u8bef\u5e94\u7528\u7a0b\u5e8f\u8def\u5f84: C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\TeamViewer\\TeamViewer.exe
\r\n\t\u9519\u8bef\u6a21\u5757\u8def\u5f84: C:\\Windows\\SYSTEM32\\nvd3dum.dll
\r\n\t\u62a5\u544a ID: 7a28e1da-d3f7-4a32-b973-e5b57669ea60
\r\n\t\u9519\u8bef\u7a0b\u5e8f\u5305\u5168\u540d:
\r\n\t\u9519\u8bef\u7a0b\u5e8f\u5305\u76f8\u5bf9\u5e94\u7528\u7a0b\u5e8f ID:

\r\n

\u89e3\u51b3\u601d\u8def\uff1a

\r\n

\u6839\u636e nvd3dum.dll \u5224\u65ad\u4e3a\u663e\u5361\u95ee\u9898\uff0c\u5c1d\u8bd5\u5728 NVIDIA \u63a7\u5236\u9762\u677f-----\u7ba1\u74063D\u8bbe\u7f6e-----\u7a0b\u5e8f\u8bbe\u7f6e \u4e2d\u5c06 TeamViewer \u8bbe\u7f6e\u4e3a “\u96c6\u6210\u56fe\u5f62” \u95ee\u9898\u4f9d\u7136\u65e0\u6cd5\u89e3\u51b3\u3002

\r\n

\u5378\u8f7d NVDIA \u56fe\u5f62\u9a71\u52a8\uff0c\u91cd\u542f\u7535\u8111 TeamViewer \u8fdc\u7a0b\u8fde\u63a5\u6b63\u5e38\uff0c\u91cd\u65b0\u5b89\u88c5\u663e\u5361\u9a71\u52a8\uff0c\u95ee\u9898\u89e3\u51b3\u3002

\r\n"}, {"title": "Centos7FireWall\u5b66\u4e60\u603b\u7ed3", "desc": "\u8d8b\u52bf\u6240\u8feb\u6700\u8fd1\u51c6\u5907\u5168\u9762\u63a5\u89e6Centos7\uff0cDocker\u4e5f\u5fc5\u987b\u8981\u6c42\u4f7f\u7528Centos7\u7248\u672c\u3002\u7531\u4e8e\u6d01\u7656Centos7 \u4e0d\u652f\u6301 service iptables save \u987a\u9053\u5b66\u4e60\u4e0bFirewalld \u611f\u89c9\u66f4\u7b80\u5355\u53ea\u8981\u8bb0\u4f4f\u4e0b\u9762\u51e0\u9053\u5e38\u7528\u547d\u4ee4\u5c31\u53ef\u4ee5\u4e86\u3002", "content": "

1.\u9ed8\u8ba4\u7f51\u5361\u7ed1\u5b9a\u7684\u662f pubic zone \u4e2a\u4eba\u559c\u6b22 drop zone \uff0c\u51fa\u53bb\u4e0d\u62e6\u622a\u8fdb\u6765\u5168\u62e6\u622a\u7b26\u5408\u6b63\u5e38\u601d\u7ef4\u3002

\r\n

\u5c06\u7f51\u5361\u6dfb\u52a0\u5230 drop \u533a\u57df # firewall-cmd --zone=drop --add-interface=ens32 --permanent

\r\n

--permanent \u8868\u793a\u6c38\u4e45\u751f\u6548

\r\n

2.\u6dfb\u52a0\u7aef\u53e3\u8bbf\u95ee

\r\n

\u4e0d\u9650\u5236\u6765\u6e90IP\u5730\u5740\u5f00\u653e80\u7aef\u53e3 #firewall-cmd --zone=drop --add-port=80/tcp --permanent  

\r\n

\u53ea\u5141\u8bb8 192.168.1.168 \u7684IP\u5730\u5740\u8bbf\u95ee1688\u7aef\u53e3 #firewall-cmd --permanent --add-rich-rule="rule family="ipv4" source address="192.168.1.168" port protocol="tcp" port="1688" accept"

\r\n

3.\u4ee5\u670d\u52a1\u7684\u65b9\u5f0f\u6dfb\u52a0\u8bbf\u95ee\u6743\u9650\u4ee5 ssh \u670d\u52a1\u4e3a\u4f8b

\r\n

\u6dfb\u52a0\uff1a
\r\n\tfirewall-cmd --zone=drop  --add-service=ssh
\r\n\t\u67e5\u770b\uff1a
\r\n\tfirewall-cmd --zone=drop  --query-service=ssh
\r\n\t\u5220\u9664\uff1a
\r\n\tfirewall-cmd --zone=drop  --remove-service=ssh

\r\n

4.\u5176\u4ed6\u5e38\u7528\u547d\u4ee4

\r\n

\u67e5\u770b\u5f53\u524d\u6fc0\u6d3b\u533a\u57df\u4fe1\u606f # firewall-cmd --get-active-zones

\r\n

[root@localhost ~]#  firewall-cmd --get-active-zones
\r\n\tdrop
\r\n\t  interfaces: ens32

\r\n

\u67e5\u770b\u5177\u4f53\u914d\u7f6e\u4fe1\u606f

\r\n

[root@localhost ~]#  firewall-cmd --info-zone=drop
\r\n\tdrop (active)
\r\n\t  target: DROP
\r\n\t  icmp-block-inversion: no
\r\n\t  interfaces: ens32
\r\n\t  sources:
\r\n\t  services: ssh
\r\n\t  ports:
\r\n\t  protocols:
\r\n\t  masquerade: no
\r\n\t  forward-ports:
\r\n\t  source-ports:
\r\n\t  icmp-blocks:
\r\n\t  rich rules:
\r\n\t        rule family="ipv4" source address="192.168.1.168" port port="1688" protocol="tcp" accept

\r\n

\u66f4\u65b0\u9632\u706b\u5899\u89c4\u5219\uff1a# firewall-cmd --reload

\r\n

\u4ee5\u4e0a\u547d\u4ee4\u65e5\u5e38\u4f7f\u7528\u5df2\u8db3\u591f\u5982\u679c\u6709\u7279\u6b8a\u9700\u6c42\u53ef\u4ee5\u4f7f\u7528 # firewall-cmd --help \u67e5\u770b\u5e2e\u52a9\u4fe1\u606f\u6216\u8005\u767e\u5ea6\u67e5\u8be2\u793a\u4f8b\u547d\u4ee4\u5f88\u591a\u53ea\u8981\u61c2\u5176\u4e2d\u539f\u7406\u4f7f\u7528\u8d77\u6765\u5f88\u7b80\u5355\u3002

\r\n

[root@localhost ~]#  firewall-cmd --help
\r\n\t
\r\n\tUsage: firewall-cmd [OPTIONS...]
\r\n\t
\r\n\tGeneral Options
\r\n\t  -h, --help           Prints a short help text and exists
\r\n\t  -V, --version        Print the version string of firewalld
\r\n\t  -q, --quiet          Do not print status messages
\r\n\t
\r\n\tStatus Options
\r\n\t  --state              Return and print firewalld state
\r\n\t  --reload             Reload firewall and keep state information
\r\n\t  --complete-reload    Reload firewall and lose state information
\r\n\t  --runtime-to-permanent
\r\n\t                       Create permanent from runtime configuration
\r\n\t
\r\n\tLog Denied Options
\r\n\t  --get-log-denied     Print the log denied value
\r\n\t  --set-log-denied=<value>
\r\n\t                       Set log denied value
\r\n\t
\r\n\tAutomatic Helpers Options
\r\n\t  --get-automatic-helpers
\r\n\t                       Print the automatic helpers value
\r\n\t  --set-automatic-helpers=<value>
\r\n\t                       Set automatic helpers value
\r\n\t
\r\n\tPermanent Options
\r\n\t  --permanent          Set an option permanently
\r\n\t                       Usable for options marked with [P]
\r\n\t
\r\n\tZone Options
\r\n\t  --get-default-zone   Print default zone for connections and interfaces
\r\n\t  --set-default-zone=<zone>
\r\n\t                       Set default zone
\r\n\t  --get-active-zones   Print currently active zones
\r\n\t  --get-zones          Print predefined zones [P]
\r\n\t  --get-services       Print predefined services [P]
\r\n\t  --get-icmptypes      Print predefined icmptypes [P]
\r\n\t  --get-zone-of-interface=<interface>
\r\n\t                       Print name of the zone the interface is bound to [P]
\r\n\t  --get-zone-of-source=<source>[/<mask>]|<MAC>|ipset:<ipset>
\r\n\t                       Print name of the zone the source is bound to [P]
\r\n\t  --list-all-zones     List everything added for or enabled in all zones [P]
\r\n\t  --new-zone=<zone>    Add a new zone [P only]
\r\n\t  --new-zone-from-file=<filename> [--name=<zone>]
\r\n\t                       Add a new zone from file with optional name [P only]
\r\n\t  --delete-zone=<zone> Delete an existing zone [P only]
\r\n\t  --load-zone-defaults=<zone>
\r\n\t                       Load zone default settings [P only] [Z]
\r\n\t  --zone=<zone>        Use this zone to set or query options, else default zone
\r\n\t                       Usable for options marked with [Z]
\r\n\t  --get-target         Get the zone target [P only] [Z]
\r\n\t  --set-target=<target>
\r\n\t                       Set the zone target [P only] [Z]
\r\n\t  --info-zone=<zone>   Print information about a zone
\r\n\t  --path-zone=<zone>   Print file path of a zone [P only]
\r\n\t
\r\n\tIPSet Options
\r\n\t  --get-ipset-types    Print the supported ipset types
\r\n\t  --new-ipset=<ipset> --type=<ipset type> [--option=<key>[=<value>]]..
\r\n\t                       Add a new ipset [P only]
\r\n\t  --new-ipset-from-file=<filename> [--name=<ipset>]
\r\n\t                       Add a new ipset from file with optional name [P only]
\r\n\t  --delete-ipset=<ipset>
\r\n\t                       Delete an existing ipset [P only]
\r\n\t  --load-ipset-defaults=<ipset>
\r\n\t                       Load ipset default settings [P only]
\r\n\t  --info-ipset=<ipset> Print information about an ipset
\r\n\t  --path-ipset=<ipset> Print file path of an ipset [P only]
\r\n\t  --get-ipsets         Print predefined ipsets
\r\n\t  --ipset=<ipset> --set-description=<description>
\r\n\t                       Set new description to ipset [P only]
\r\n\t  --ipset=<ipset> --get-description
\r\n\t                       Print description for ipset [P only]
\r\n\t  --ipset=<ipset> --set-short=<description>
\r\n\t                       Set new short description to ipset [P only]
\r\n\t  --ipset=<ipset> --get-short
\r\n\t                       Print short description for ipset [P only]
\r\n\t  --ipset=<ipset> --add-entry=<entry>
\r\n\t                       Add a new entry to an ipset [P]
\r\n\t  --ipset=<ipset> --remove-entry=<entry>
\r\n\t                       Remove an entry from an ipset [P]
\r\n\t  --ipset=<ipset> --query-entry=<entry>
\r\n\t                       Return whether ipset has an entry [P]
\r\n\t  --ipset=<ipset> --get-entries
\r\n\t                       List entries of an ipset [P]
\r\n\t  --ipset=<ipset> --add-entries-from-file=<entry>
\r\n\t                       Add a new entries to an ipset [P]
\r\n\t  --ipset=<ipset> --remove-entries-from-file=<entry>
\r\n\t                       Remove entries from an ipset [P]
\r\n\t
\r\n\tIcmpType Options
\r\n\t  --new-icmptype=<icmptype>
\r\n\t                       Add a new icmptype [P only]
\r\n\t  --new-icmptype-from-file=<filename> [--name=<icmptype>]
\r\n\t                       Add a new icmptype from file with optional name [P only]
\r\n\t  --delete-icmptype=<icmptype>
\r\n\t                       Delete an existing icmptype [P only]
\r\n\t  --load-icmptype-defaults=<icmptype>
\r\n\t                       Load icmptype default settings [P only]
\r\n\t  --info-icmptype=<icmptype>
\r\n\t                       Print information about an icmptype
\r\n\t  --path-icmptype=<icmptype>
\r\n\t                       Print file path of an icmptype [P only]
\r\n\t  --icmptype=<icmptype> --set-description=<description>
\r\n\t                       Set new description to icmptype [P only]
\r\n\t  --icmptype=<icmptype> --get-description
\r\n\t                       Print description for icmptype [P only]
\r\n\t  --icmptype=<icmptype> --set-short=<description>
\r\n\t                       Set new short description to icmptype [P only]
\r\n\t  --icmptype=<icmptype> --get-short
\r\n\t                       Print short description for icmptype [P only]
\r\n\t  --icmptype=<icmptype> --add-destination=<ipv>
\r\n\t                       Enable destination for ipv in icmptype [P only]
\r\n\t  --icmptype=<icmptype> --remove-destination=<ipv>
\r\n\t                       Disable destination for ipv in icmptype [P only]
\r\n\t  --icmptype=<icmptype> --query-destination=<ipv>
\r\n\t                       Return whether destination ipv is enabled in icmptype [P only]
\r\n\t  --icmptype=<icmptype> --get-destinations
\r\n\t                       List destinations in icmptype [P only]
\r\n\t
\r\n\tService Options
\r\n\t  --new-service=<service>
\r\n\t                       Add a new service [P only]
\r\n\t  --new-service-from-file=<filename> [--name=<service>]
\r\n\t                       Add a new service from file with optional name [P only]
\r\n\t  --delete-service=<service>
\r\n\t                       Delete an existing service [P only]
\r\n\t  --load-service-defaults=<service>
\r\n\t                       Load icmptype default settings [P only]
\r\n\t  --info-service=<service>
\r\n\t                       Print information about a service
\r\n\t  --path-service=<service>
\r\n\t                       Print file path of a service [P only]
\r\n\t  --service=<service> --set-description=<description>
\r\n\t                       Set new description to service [P only]
\r\n\t  --service=<service> --get-description
\r\n\t                       Print description for service [P only]
\r\n\t  --service=<service> --set-short=<description>
\r\n\t                       Set new short description to service [P only]
\r\n\t  --service=<service> --get-short
\r\n\t                       Print short description for service [P only]
\r\n\t  --service=<service> --add-port=<portid>[-<portid>]/<protocol>
\r\n\t                       Add a new port to service [P only]
\r\n\t  --service=<service> --remove-port=<portid>[-<portid>]/<protocol>
\r\n\t                       Remove a port from service [P only]
\r\n\t  --service=<service> --query-port=<portid>[-<portid>]/<protocol>
\r\n\t                       Return whether the port has been added for service [P only]
\r\n\t  --service=<service> --get-ports
\r\n\t                       List ports of service [P only]
\r\n\t  --service=<service> --add-protocol=<protocol>
\r\n\t                       Add a new protocol to service [P only]
\r\n\t  --service=<service> --remove-protocol=<protocol>
\r\n\t                       Remove a protocol from service [P only]
\r\n\t  --service=<service> --query-protocol=<protocol>
\r\n\t                       Return whether the protocol has been added for service [P only]
\r\n\t  --service=<service> --get-protocols
\r\n\t                       List protocols of service [P only]
\r\n\t  --service=<service> --add-source-port=<portid>[-<portid>]/<protocol>
\r\n\t                       Add a new source port to service [P only]
\r\n\t  --service=<service> --remove-source-port=<portid>[-<portid>]/<protocol>
\r\n\t                       Remove a source port from service [P only]
\r\n\t  --service=<service> --query-source-port=<portid>[-<portid>]/<protocol>
\r\n\t                       Return whether the source port has been added for service [P only]
\r\n\t  --service=<service> --get-source-ports
\r\n\t                       List source ports of service [P only]
\r\n\t  --service=<service> --add-module=<module>
\r\n\t                       Add a new module to service [P only]
\r\n\t  --service=<service> --remove-module=<module>
\r\n\t                       Remove a module from service [P only]
\r\n\t  --service=<service> --query-module=<module>
\r\n\t                       Return whether the module has been added for service [P only]
\r\n\t  --service=<service> --get-modules
\r\n\t                       List modules of service [P only]
\r\n\t  --service=<service> --set-destination=<ipv>:<address>[/<mask>]
\r\n\t                       Set destination for ipv to address in service [P only]
\r\n\t  --service=<service> --remove-destination=<ipv>
\r\n\t                       Disable destination for ipv i service [P only]
\r\n\t  --service=<service> --query-destination=<ipv>:<address>[/<mask>]
\r\n\t                       Return whether destination ipv is set for service [P only]
\r\n\t  --service=<service> --get-destinations
\r\n\t                       List destinations in service [P only]
\r\n\t
\r\n\tOptions to Adapt and Query Zones
\r\n\t  --list-all           List everything added for or enabled in a zone [P] [Z]
\r\n\t  --list-services      List services added for a zone [P] [Z]
\r\n\t  --timeout=<timeval>  Enable an option for timeval time, where timeval is
\r\n\t                       a number followed by one of letters 's' or 'm' or 'h'
\r\n\t                       Usable for options marked with [T]
\r\n\t  --set-description=<description>
\r\n\t                       Set new description to zone [P only] [Z]
\r\n\t  --get-description    Print description for zone [P only] [Z]
\r\n\t  --set-short=<description>
\r\n\t                       Set new short description to zone [P only] [Z]
\r\n\t  --get-short          Print short description for zone [P only] [Z]
\r\n\t  --add-service=<service>
\r\n\t                       Add a service for a zone [P] [Z] [T]
\r\n\t  --remove-service=<service>
\r\n\t                       Remove a service from a zone [P] [Z]
\r\n\t  --query-service=<service>
\r\n\t                       Return whether service has been added for a zone [P] [Z]
\r\n\t  --list-ports         List ports added for a zone [P] [Z]
\r\n\t  --add-port=<portid>[-<portid>]/<protocol>
\r\n\t                       Add the port for a zone [P] [Z] [T]
\r\n\t  --remove-port=<portid>[-<portid>]/<protocol>
\r\n\t                       Remove the port from a zone [P] [Z]
\r\n\t  --query-port=<portid>[-<portid>]/<protocol>
\r\n\t                       Return whether the port has been added for zone [P] [Z]
\r\n\t  --list-protocols     List protocols added for a zone [P] [Z]
\r\n\t  --add-protocol=<protocol>
\r\n\t                       Add the protocol for a zone [P] [Z] [T]
\r\n\t  --remove-protocol=<protocol>
\r\n\t                       Remove the protocol from a zone [P] [Z]
\r\n\t  --query-protocol=<protocol>
\r\n\t                       Return whether the protocol has been added for zone [P] [Z]
\r\n\t  --list-source-ports  List source ports added for a zone [P] [Z]
\r\n\t  --add-source-port=<portid>[-<portid>]/<protocol>
\r\n\t                       Add the source port for a zone [P] [Z] [T]
\r\n\t  --remove-source-port=<portid>[-<portid>]/<protocol>
\r\n\t                       Remove the source port from a zone [P] [Z]
\r\n\t  --query-source-port=<portid>[-<portid>]/<protocol>
\r\n\t                       Return whether the source port has been added for zone [P] [Z]
\r\n\t  --list-icmp-blocks   List Internet ICMP type blocks added for a zone [P] [Z]
\r\n\t  --add-icmp-block=<icmptype>
\r\n\t                       Add an ICMP block for a zone [P] [Z] [T]
\r\n\t  --remove-icmp-block=<icmptype>
\r\n\t                       Remove the ICMP block from a zone [P] [Z]
\r\n\t  --query-icmp-block=<icmptype>
\r\n\t                       Return whether an ICMP block has been added for a zone
\r\n\t                       [P] [Z]
\r\n\t  --add-icmp-block-inversion
\r\n\t                       Enable inversion of icmp blocks for a zone [P] [Z]
\r\n\t  --remove-icmp-block-inversion
\r\n\t                       Disable inversion of icmp blocks for a zone [P] [Z]
\r\n\t  --query-icmp-block-inversion
\r\n\t                       Return whether inversion of icmp blocks has been enabled
\r\n\t                       for a zone [P] [Z]
\r\n\t  --list-forward-ports List IPv4 forward ports added for a zone [P] [Z]
\r\n\t  --add-forward-port=port=<portid>[-<portid>]:proto=<protocol>[:toport=<portid>[-<portid>]][:toaddr=<address>[/<mask>]]
\r\n\t                       Add the IPv4 forward port for a zone [P] [Z] [T]
\r\n\t  --remove-forward-port=port=<portid>[-<portid>]:proto=<protocol>[:toport=<portid>[-<portid>]][:toaddr=<address>[/<mask>]]
\r\n\t                       Remove the IPv4 forward port from a zone [P] [Z]
\r\n\t  --query-forward-port=port=<portid>[-<portid>]:proto=<protocol>[:toport=<portid>[-<portid>]][:toaddr=<address>[/<mask>]]
\r\n\t                       Return whether the IPv4 forward port has been added for
\r\n\t                       a zone [P] [Z]
\r\n\t  --add-masquerade     Enable IPv4 masquerade for a zone [P] [Z] [T]
\r\n\t  --remove-masquerade  Disable IPv4 masquerade for a zone [P] [Z]
\r\n\t  --query-masquerade   Return whether IPv4 masquerading has been enabled for a
\r\n\t                       zone [P] [Z]
\r\n\t  --list-rich-rules    List rich language rules added for a zone [P] [Z]
\r\n\t  --add-rich-rule=<rule>
\r\n\t                       Add rich language rule 'rule' for a zone [P] [Z] [T]
\r\n\t  --remove-rich-rule=<rule>
\r\n\t                       Remove rich language rule 'rule' from a zone [P] [Z]
\r\n\t  --query-rich-rule=<rule>
\r\n\t                       Return whether a rich language rule 'rule' has been
\r\n\t                       added for a zone [P] [Z]
\r\n\t
\r\n\tOptions to Handle Bindings of Interfaces
\r\n\t  --list-interfaces    List interfaces that are bound to a zone [P] [Z]
\r\n\t  --add-interface=<interface>
\r\n\t                       Bind the <interface> to a zone [P] [Z]
\r\n\t  --change-interface=<interface>
\r\n\t                       Change zone the <interface> is bound to [Z]
\r\n\t  --query-interface=<interface>
\r\n\t                       Query whether <interface> is bound to a zone [P] [Z]
\r\n\t  --remove-interface=<interface>
\r\n\t                       Remove binding of <interface> from a zone [P] [Z]
\r\n\t
\r\n\tOptions to Handle Bindings of Sources
\r\n\t  --list-sources       List sources that are bound to a zone [P] [Z]
\r\n\t  --add-source=<source>[/<mask>]|<MAC>|ipset:<ipset>
\r\n\t                       Bind the source to a zone [P] [Z]
\r\n\t  --change-source=<source>[/<mask>]|<MAC>|ipset:<ipset>
\r\n\t                       Change zone the source is bound to [Z]
\r\n\t  --query-source=<source>[/<mask>]|<MAC>|ipset:<ipset>
\r\n\t                       Query whether the source is bound to a zone [P] [Z]
\r\n\t  --remove-source=<source>[/<mask>]|<MAC>|ipset:<ipset>
\r\n\t                       Remove binding of the source from a zone [P] [Z]
\r\n\t
\r\n\tHelper Options
\r\n\t  --new-helper=<helper> --module=<module> [--family=<family>]
\r\n\t                       Add a new helper [P only]
\r\n\t  --new-helper-from-file=<filename> [--name=<helper>]
\r\n\t                       Add a new helper from file with optional name [P only]
\r\n\t  --delete-helper=<helper>
\r\n\t                       Delete an existing helper [P only]
\r\n\t  --load-helper-defaults=<helper>
\r\n\t                       Load helper default settings [P only]
\r\n\t  --info-helper=<helper> Print information about an helper
\r\n\t  --path-helper=<helper> Print file path of an helper [P only]
\r\n\t  --get-helpers         Print predefined helpers
\r\n\t  --helper=<helper> --set-description=<description>
\r\n\t                       Set new description to helper [P only]
\r\n\t  --helper=<helper> --get-description
\r\n\t                       Print description for helper [P only]
\r\n\t  --helper=<helper> --set-short=<description>
\r\n\t                       Set new short description to helper [P only]
\r\n\t  --helper=<helper> --get-short
\r\n\t                       Print short description for helper [P only]
\r\n\t  --helper=<helper> --add-port=<portid>[-<portid>]/<protocol>
\r\n\t                       Add a new port to helper [P only]
\r\n\t  --helper=<helper> --remove-port=<portid>[-<portid>]/<protocol>
\r\n\t                       Remove a port from helper [P only]
\r\n\t  --helper=<helper> --query-port=<portid>[-<portid>]/<protocol>
\r\n\t                       Return whether the port has been added for helper [P only]
\r\n\t  --helper=<helper> --get-ports
\r\n\t                       List ports of helper [P only]
\r\n\t  --helper=<helper> --set-module=<module>
\r\n\t                       Set module to helper [P only]
\r\n\t  --helper=<helper> --get-module
\r\n\t                       Get module from helper [P only]
\r\n\t  --helper=<helper> --set-family={ipv4|ipv6|}
\r\n\t                       Set family for helper [P only]
\r\n\t  --helper=<helper> --get-family
\r\n\t                       Get module from helper [P only]
\r\n\t
\r\n\tDirect Options
\r\n\t  --direct             First option for all direct options
\r\n\t  --get-all-chains
\r\n\t                       Get all chains [P]
\r\n\t  --get-chains {ipv4|ipv6|eb} <table>
\r\n\t                       Get all chains added to the table [P]
\r\n\t  --add-chain {ipv4|ipv6|eb} <table> <chain>
\r\n\t                       Add a new chain to the table [P]
\r\n\t  --remove-chain {ipv4|ipv6|eb} <table> <chain>
\r\n\t                       Remove the chain from the table [P]
\r\n\t  --query-chain {ipv4|ipv6|eb} <table> <chain>
\r\n\t                       Return whether the chain has been added to the table [P]
\r\n\t  --get-all-rules
\r\n\t                       Get all rules [P]
\r\n\t  --get-rules {ipv4|ipv6|eb} <table> <chain>
\r\n\t                       Get all rules added to chain in table [P]
\r\n\t  --add-rule {ipv4|ipv6|eb} <table> <chain> <priority> <arg>...
\r\n\t                       Add rule to chain in table [P]
\r\n\t  --remove-rule {ipv4|ipv6|eb} <table> <chain> <priority> <arg>...
\r\n\t                       Remove rule with priority from chain in table [P]
\r\n\t  --remove-rules {ipv4|ipv6|eb} <table> <chain>
\r\n\t                       Remove rules from chain in table [P]
\r\n\t  --query-rule {ipv4|ipv6|eb} <table> <chain> <priority> <arg>...
\r\n\t                       Return whether a rule with priority has been added to
\r\n\t                       chain in table [P]
\r\n\t  --passthrough {ipv4|ipv6|eb} <arg>...
\r\n\t                       Pass a command through (untracked by firewalld)
\r\n\t  --get-all-passthroughs
\r\n\t                       Get all tracked passthrough rules [P]
\r\n\t  --get-passthroughs {ipv4|ipv6|eb} <arg>...
\r\n\t                       Get tracked passthrough rules [P]
\r\n\t  --add-passthrough {ipv4|ipv6|eb} <arg>...
\r\n\t                       Add a new tracked passthrough rule [P]
\r\n\t  --remove-passthrough {ipv4|ipv6|eb} <arg>...
\r\n\t                       Remove a tracked passthrough rule [P]
\r\n\t  --query-passthrough {ipv4|ipv6|eb} <arg>...
\r\n\t                       Return whether the tracked passthrough rule has been
\r\n\t                       added [P]
\r\n\t
\r\n\tLockdown Options
\r\n\t  --lockdown-on        Enable lockdown.
\r\n\t  --lockdown-off       Disable lockdown.
\r\n\t  --query-lockdown     Query whether lockdown is enabled
\r\n\t
\r\n\tLockdown Whitelist Options
\r\n\t  --list-lockdown-whitelist-commands
\r\n\t                       List all command lines that are on the whitelist [P]
\r\n\t  --add-lockdown-whitelist-command=<command>
\r\n\t                       Add the command to the whitelist [P]
\r\n\t  --remove-lockdown-whitelist-command=<command>
\r\n\t                       Remove the command from the whitelist [P]
\r\n\t  --query-lockdown-whitelist-command=<command>
\r\n\t                       Query whether the command is on the whitelist [P]
\r\n\t  --list-lockdown-whitelist-contexts
\r\n\t                       List all contexts that are on the whitelist [P]
\r\n\t  --add-lockdown-whitelist-context=<context>
\r\n\t                       Add the context context to the whitelist [P]
\r\n\t  --remove-lockdown-whitelist-context=<context>
\r\n\t                       Remove the context from the whitelist [P]
\r\n\t  --query-lockdown-whitelist-context=<context>
\r\n\t                       Query whether the context is on the whitelist [P]
\r\n\t  --list-lockdown-whitelist-uids
\r\n\t                       List all user ids that are on the whitelist [P]
\r\n\t  --add-lockdown-whitelist-uid=<uid>
\r\n\t                       Add the user id uid to the whitelist [P]
\r\n\t  --remove-lockdown-whitelist-uid=<uid>
\r\n\t                       Remove the user id uid from the whitelist [P]
\r\n\t  --query-lockdown-whitelist-uid=<uid>
\r\n\t                       Query whether the user id uid is on the whitelist [P]
\r\n\t  --list-lockdown-whitelist-users
\r\n\t                       List all user names that are on the whitelist [P]
\r\n\t  --add-lockdown-whitelist-user=<user>
\r\n\t                       Add the user name user to the whitelist [P]
\r\n\t  --remove-lockdown-whitelist-user=<user>
\r\n\t                       Remove the user name user from the whitelist [P]
\r\n\t  --query-lockdown-whitelist-user=<user>
\r\n\t                       Query whether the user name user is on the whitelist [P]
\r\n\t
\r\n\tPanic Options
\r\n\t  --panic-on           Enable panic mode
\r\n\t  --panic-off          Disable panic mode
\r\n\t  --query-panic        Query whether panic mode is enabled

\r\n

 

\r\n

 

\r\n"}, {"title": "\u5c06windows server2019\u6253\u9020\u6210\u4e2a\u4eba\u64cd\u4f5c\u7cfb\u7edf", "desc": "\u6211\u7684\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\u4e3aMicrosoft Windows Server 2019 Essentials\r\n\uff0c\u672c\u6559\u7a0b\u5305\u62ec\u7cfb\u7edf\u6fc0\u6d3b\u3002", "content": "

\u4e00\u3001\u7ec4\u7b56\u7565
\r\n\t
\r\n\tWIN\u952e+R\u952e\uff0c\u8f93\u5165gpedit.msc\uff0c\u8fdb\u5165\u7ec4\u7b56\u7565\u8bbe\u7f6e\u3002
\r\n\t
\r\n\t1\u3001\u8ba1\u7b97\u673a\u914d\u7f6e\uff0cWindows\u8bbe\u7f6e\uff0c\u5b89\u5168\u8bbe\u7f6e\uff0c\u5e10\u6237\u7b56\u7565\uff0c\u5bc6\u7801\u7b56\u7565\uff1a"\u5bc6\u7801\u5fc5\u987b\u7b26\u5408\u590d\u6742\u6027\u8981\u6c42"\uff0c\u8bbe\u7f6e\u4e3a"\u5df2\u7981\u7528"\u3002
\r\n\t
\r\n\t\u89e3\u51b3\u95ee\u9898\uff1a\u8bbe\u7f6e\u5e10\u53f7\u5bc6\u7801\uff0c\u9ed8\u8ba4\u5fc5\u987b\u662f\u5b57\u6bcd\u3001\u6570\u5b57\u3001\u7279\u6b8a\u5b57\u7b26\u90fd\u5fc5\u987b\u6709\uff0c\u5426\u5219\u4f1a\u63d0\u793a\u4e0d\u7b26\u5408\u6761\u4ef6\u3002

\r\n

2\u3001\u8ba1\u7b97\u673a\u914d\u7f6e\uff0cWindows\u8bbe\u7f6e\uff0c\u5b89\u5168\u8bbe\u7f6e\uff0c\u5e10\u6237\u7b56\u7565\uff0c\u5bc6\u7801\u7b56\u7565\uff1a"\u5bc6\u7801\u6700\u77ed\u4f7f\u7528\u671f\u9650"\uff0c\u8bbe\u7f6e\u4e3a"0"\uff08\u65e0\u671f\u9650\uff09\u3002
\r\n\t
\r\n\t\u89e3\u51b3\u95ee\u9898\uff1a\u5bc6\u7801\u6709\u6709\u6548\u671f\uff0c\u5feb\u5230\u671f\u4f1a\u63d0\u793a\u4fee\u6539\u5bc6\u7801\u3002\u4fee\u6539\u540e\u5bc6\u7801\u6c38\u4e45\u6709\u6548\u3002
\r\n\t
\r\n\t3\u3001\u8ba1\u7b97\u673a\u914d\u7f6e\uff0cWindows\u8bbe\u7f6e\uff0c\u5b89\u5168\u8bbe\u7f6e\uff0c\u672c\u5730\u7b56\u7565\uff0c\u5b89\u5168\u9009\u9879\uff0c"\u65e0\u9700\u6309 Ctrl+Alt+Del"\uff0c\u8bbe\u7f6e\u4e3a"\u5df2\u542f\u7528"\u3002
\r\n\t
\r\n\t\u89e3\u51b3\u95ee\u9898\uff1a\u767b\u5f55\u7cfb\u7edf\uff0c\u9700\u8981\u5148\u6309Ctrl+Alt+Del\uff0c\u624d\u80fd\u663e\u793a\u767b\u5f55\u754c\u9762\u3002\u4fee\u6539\u540e\u4e0d\u518d\u9700\u8981\u3002
\r\n\t
\r\n\t4\u3001\u8ba1\u7b97\u673a\u914d\u7f6e\uff0c\u7ba1\u7406\u6a21\u677f\uff0c\u7cfb\u7edf\uff0c\u663e\u793a"\u5173\u95ed\u4e8b\u4ef6\u8ddf\u8e2a\u7a0b\u5e8f"\uff0c\u8bbe\u7f6e\u4e3a"\u5df2\u7981\u7528"\u3002
\r\n\t
\r\n\t\u89e3\u51b3\u95ee\u9898\uff1a\u5173\u673a\u65f6\uff0c\u9700\u8981\u8f93\u5165\u5173\u673a\u539f\u56e0\u3002\u8bbe\u7f6e\u540e\u4e0d\u518d\u9700\u8981\u3002
\r\n\t
\r\n\t5\u3001\u8ba1\u7b97\u673a\u914d\u7f6e\uff0c\u7ba1\u7406\u6a21\u677f\uff0c\u7cfb\u7edf\uff0c\u767b\u5f55\u65f6\u4e0d\u663e\u793a"\u7ba1\u7406\u4f60\u7684\u670d\u52a1\u5668"\u9875\uff0c\u8bbe\u7f6e\u4e3a"\u5df2\u542f\u7528"\u3002
\r\n\t
\r\n\t\u89e3\u51b3\u95ee\u9898\uff1aAdministrators\u7ec4\u4e0b\u7684\u7528\u6237\u6bcf\u6b21\u767b\u5f55\uff0c\u4f1a\u81ea\u52a8\u542f\u52a8server manager\uff0c\u8bbe\u7f6e\u8be5\u7b56\u7565\u540e\uff0c\u4f1a\u4e0d\u518d\u81ea\u52a8\u542f\u52a8\u3002
\r\n\t
\r\n\t\u4e8c\u3001\u529f\u80fd\u4e0e\u670d\u52a1
\r\n\t
\r\n\t1\u3001\u63a7\u5236\u9762\u677f--->\u670d\u52a1\u5668\u7ba1\u7406\u5668--->\u672c\u5730\u670d\u52a1\u5668\uff0cIE \u589e\u5f3a\u7684\u5b89\u5168\u914d\u7f6e\uff0c"\u7ba1\u7406\u5458"\u4e0e"\u7528\u6237"\u7684\u4e0b\u65b9\uff0c\u52fe\u9009"\u5173\u95ed"\u3002
\r\n\t
\r\n\t\u89e3\u51b3\u95ee\u9898\uff1aIE\u9ed8\u8ba4\u8bbe\u7f6e\u4e0b\uff0c\u4e0a\u7f51\u4f1a\u6709\u4e00\u5806\u5b89\u5168\u63d0\u793a\uff0c\u8bbe\u7f6e\u540e\u4e0d\u518d\u63d0\u793a\uff0c\u4e0e\u4e2a\u4ebawin10\u4fdd\u6301\u4e00\u81f4\u3002
\r\n\t
\r\n\t2\u3001\u63a7\u5236\u9762\u677f--->\u7a0b\u5e8f\u548c\u529f\u80fd--->\u542f\u7528\u6216\u5173\u95ed Windwos \u529f\u80fd--->\u670d\u52a1\u5668\u9009\u62e9--->\u529f\u80fd--->\u52fe\u9009 “Direct Play” \u3001“\u65e0\u7ebf LAN \u670d\u52a1”\u3001“\u4f18\u8d28 Windows \u97f3\u9891\u89c6\u9891\u4f53\u9a8c” \u786e\u8ba4\u5b89\u88c5
\r\n\t
\r\n\t\u89e3\u51b3\u95ee\u9898\uff1a\u9ed8\u8ba4\u5982wifi\u3001\u591a\u5a92\u4f53\u3001\u7d22\u5f15\u670d\u52a1\u7b49\u662f\u5173\u95ed\u7684\uff0c\u6dfb\u52a0\u540e\u53ef\u4ee5\u542f\u7528\u8fd9\u4e9b\u529f\u80fd\u3002
\r\n\t
\r\n\t3\u3001\u8bbe\u7f6e\u670d\u52a1
\r\n\t
\r\n\t\u89e3\u51b3\u95ee\u9898\uff1awindows server 2016\u9ed8\u8ba4\u6ca1\u6709\u58f0\u97f3\u3001\u7d22\u5f15\u9009\u9879\u65e0\u6cd5\u542f\u7528\uff0c\u8bbe\u7f6e\u670d\u52a1\u540e\u53ef\u4ee5\u89e3\u51b3\u8be5\u95ee\u9898\u3002
\r\n\t
\r\n\t\u542f\u52a8\u4e24\u9879\u58f0\u97f3\u670d\u52a1\uff0cWindows Audio\u548cWindows Audio Endpoint Builder\uff0c\u5e76\u8bbe\u4e3a\u81ea\u52a8\u5c5e\u6027\u3002
\r\n\t
\r\n\t\u4e09\u3001\u7cfb\u7edf\u5c5e\u6027
\r\n\t
\r\n\t1\u3001WIN\u952e+X\u952e\uff0c\u7cfb\u7edf\uff0c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\uff0c\u6027\u80fd\uff08\u8bbe\u7f6e\uff09\uff0c\u9ad8\u7ea7\uff0c\u8c03\u6574\u4ee5\u4f18\u5316\u6027\u80fd\uff0c\u8bbe\u7f6e\u4e3a"\u7a0b\u5e8f"\u3002
\r\n\t
\r\n\t2\u3001WIN\u952e+X\u952e\uff0c\u7cfb\u7edf\uff0c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\uff0c\u6027\u80fd\uff08\u8bbe\u7f6e\uff09\uff0c\u6570\u636e\u6267\u884c\u4fdd\u62a4\uff0c\u9009\u62e9"\u4ec5\u4e3a\u57fa\u672cWindows\u7a0b\u5e8f\u548c\u670d\u52a1\u542f\u7528DEP(T)"\u3002

\r\n

\u56db\u3001\u5220\u9664\u6240\u6709\u8ba1\u5212\u4efb\u52a1

\r\n

1.   \u4ec5\u5220\u9664\u5168\u90e8\u4efb\u52a1\uff0c\u4e0d\u5220\u4efb\u52a1\u6240\u5728\u6587\u4ef6\u5939\uff1a
\r\n\t      schtasks /delete /tn * /F

\r\n

2.\u5148\u5220\u4efb\u52a1\uff0c\u518d\u5220\u6587\u4ef6\u5939\uff1a
\r\n\t      del /s /q C:\\Windows\\System32\\Tasks\\Microsoft\\Windows
\r\n\t      cd C:\\Windows\\System32\\Tasks\\Microsoft\\Windows
\r\n\t      rd /s /q C:\\Windows\\System32\\Tasks\\Microsoft\\Windows
\r\n\t      del /s /q C:\\Windows\\System32\\Tasks\\Microsoft\\XblGameSave
\r\n\t      rd /s /q C:\\Windows\\System32\\Tasks\\Microsoft\\XblGameSave

\r\n

\u4e94\u3001windows server2019\u542f\u7528 Flash

\r\n

CMD\u6267\u884c

\r\n

dism /online /add-package /packagepath:"C:\\Windows\\servicing\\Packages\\Adobe-Flash-For-Windows-Package~31bf3856ad364e35~amd64~~10.0.17763.1.mum"

\r\n

\u516d\u3001windows server2019\u6fc0\u6d3b

\r\n

\u65b9\u6cd51\uff1a

\r\n

CMD \u4e0b\u8fd0\u884c
\r\n\tslmgr /upk
\r\n\tslmgr /ipk WVDHN-86M7X-466P6-VHXV7-YY726
\r\n\tslmgr /skms zh.us.to
\r\n\tslmgr /ato

\r\n

\u65b9\u6cd52\uff1a

\r\n

\u81ea\u5df1\u642d\u5efa\u6fc0\u6d3b\u670d\u52a1\u5668\uff0c\u524d\u63d0\u9700\u8981linux \u670d\u52a1\u5668

\r\n

LINUX\u642d\u5efaKMS\u670d\u52a1\u5668\uff0cSSH\u4e0b\u6267\u884c\u4e00\u4e0b\u547d\u4ee4\uff1a
\r\n\twget https://github.com/Wind4/vlmcsd/releases/download/svn1111/binaries.tar.gz
\r\n\ttar -zxvf binaries.tar.gz
\r\n\tcd binaries/Linux/intel/static/
\r\n\t./vlmcsd-x64-musl-static

\r\n

\u642d\u5efa\u5b8c\u670d\u52a1\u5668\u5f00\u59cb\u6fc0\u6d3b

\r\n

CMD \u8fd0\u884c

\r\n

slmgr.vbs -upk
\r\n\tslmgr.vbs -ipk WVDHN-86M7X-466P6-VHXV7-YY726
\r\n\tslmgr.vbs -skms 192.168.134.113
\r\n\tslmgr.vbs -ato
\r\n\tslmgr.vbs -dlv

\r\n

\u5176\u4e2d 192.168.134.113 \u662f\u6211\u642d\u5efa\u7684\u6fc0\u6d3b\u670d\u52a1\u5668\u5730\u5740\uff0c\u9700\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u4fee\u6539\u3002

\r\n

Microsoft Windows Server 2019 Essentials \u64cd\u4f5c\u7cfb\u7edf\u7b14\u8bb0\u672c\u7535\u8111\u81ea\u5e26\u9ea6\u514b\u98ce\u6ca1\u6709\u58f0\u97f3\uff0cQQ\u8bed\u97f3\u4e0d\u80fd\u8bf4\u8bdd\u3002

\r\n

\u9996\u5148\u786e\u8ba4\u9ea6\u514b\u98ce\u9a71\u52a8\u6b63\u5e38\uff0c\u8bbe\u7f6e\u597d\u9ed8\u8ba4\u9ea6\u514b\u98ce\u3002\u5728 “\u4efb\u52a1\u680f\u8bbe\u7f6e” \u8f93\u5165“\u9690\u79c1” \u70b9\u51fb\u67e5\u627e \u9009\u62e9 “\u9ea6\u514b\u98ce\u9690\u79c1\u8bbe\u7f6e” \u300a\u5141\u8bb8\u5e94\u7528\u8bbf\u95ee\u4f60\u7684\u9ea6\u514b\u98ce\u300b \u5173\u95edQQ\u5bf9\u8bdd\u91cd\u65b0\u5f00\u542f\u8bed\u97f3\u5c31\u53ef\u4ee5\u8bf4\u8bdd\u4e86\u3002
\r\n\t
\r\n\t 

\r\n"}, {"title": "centos6Mine\u7248\u672c\u5b89\u88c5Redis", "desc": "\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9047\u5230\u62a5\u9519zmalloc.h:55:2: error: #error \"Newer version of jemalloc required\";You need tcl 8.5 or newer in order to run the Redis test", "content": "

\u7b2c\u4e00\u6b21\u62a5\u9519\uff1a

\r\n

zmalloc.h:50:31: error: jemalloc/jemalloc.h: No such file or directory
\r\n\tzmalloc.h:55:2: error: #error "Newer version of jemalloc required"
\r\n\tmake[1]: *** [adlist.o] Error 1
\r\n\tmake[1]: Leaving directory `/data0/src/redis-2.6.2/src'
\r\n\tmake: *** [all] Error 2

\r\n

\u5e94\u8be5\u662f\u6ca1\u6709\u5b89\u88c5gcc\u5bfc\u81f4\uff1a

\r\n

    yum install cpp
\r\n\t    yum install binutils
\r\n\t    yum install glibc
\r\n\t    yum install glibc-kernheaders
\r\n\t    yum install glibc-common
\r\n\t    yum install glibc-devel
\r\n\t    yum install gcc
\r\n\t    yum install make

\r\n

\u4e3a\u4e86\u9632\u6b62\u5728\u62a5\u9519\u90fdyum install \u4e00\u4e0b

\r\n

\u7b2c\u4e8c\u6b21 make test

\r\n

    CC lolwut.o
\r\n\t    CC lolwut5.o
\r\n\t    LINK redis-server
\r\n\t    INSTALL redis-check-aof
\r\n\tYou need tcl 8.5 or newer in order to run the Redis test
\r\n\tmake[1]: *** [test] Error 1
\r\n\tmake[1]: Leaving directory `/opt/redis-5.0.0/src'
\r\n\tmake: *** [test] Error 2

\r\n

\u8fd9\u6b21\u63d0\u793a tcl \u7248\u672c\u4f4e

\r\n

    yum install tcl

\r\n

\u200b\u7ee7\u7eed\u62a5\u9519

\r\n

make[1]: *** [test] Error 1
\r\n\tmake[1]: Leaving directory `/opt/redis-5.0.0/src'
\r\n\tmake: *** [test] Error 2
\u200b

\r\n

\u200b\u4e0b\u9762\u5177\u4f53\u9519\u8bef

\r\n
Logged warnings (pid 14138):
\r\n\t(none)
\r\n
[exception]: Executing test client: couldn't execute "src/redis-benchmark": no such file or directory.
\r\n\tcouldn't execute "src/redis-benchmark": no such file or directory
\r\n\t    while executing
\r\n
 
\r\n
I/O error reading reply
\r\n\t    while executing
\r\n\t"{*}$r type $k"
\r\n\t    (procedure "createComplexDataset" line 27)
\r\n\t    invoked from within
\r\n\t"createComplexDataset $r $ops"
\r\n
\u89e3\u51b3\u65b9\u6cd5\uff1a
\r\n
make distclean
\r\n
\u200bmake
\r\n
make test
\r\n
 
\r\n
\r\n\t

\r\n\t\t!!! WARNING The following tests failed:
\r\n\t
*** [err]: GEOADD + GEORANGE randomized test in tests/unit/geo.tcl
\r\n\t\tExpected 'OK' to equal or match 'FAIL'
\r\n\t\tCleanup: may take some time... OK
\r\n\t\tmake[1]: *** [test] Error 1
\r\n\t\tmake[1]: Leaving directory `/opt/redis-5.0.0/src'
\r\n\t\tmake: *** [test] Error 2
\r\n
\r\n

\u8fd9\u4e2a\u62a5\u9519\u662f\u544a\u8b66\u7531\u4e8e\u670d\u52a1\u5668\u914d\u7f6e\u592a\u4f4e\u5bfc\u81f4\u7684\uff0c\u6269CPU \u91cd\u65b0\u5728\u8dd1\u5c31\u6b63\u5e38\u4e86\u3002

\r\n

 

\r\n

\r\n\t\\o/ All tests passed without errors!
\r\n
Cleanup: may take some time... OK
\r\n\tmake[1]: Leaving directory `/opt/redis-5.0.0/src'
\r\n

 

\r\n"}, {"title": "linux\u642d\u5efa Nexus Repository Manager", "desc": "\u53c2\u8003\u5b98\u65b9\u7f51\u7ad9https://help.sonatype.com/repomanager3/installation/java-runtime-environment", "content": "

\u8fd9\u6b65\u67e5\u770b\u767e\u5ea6\u641c\u7d22\uff0c\u5b89\u88c5JDK1.8\u914d\u7f6e\u73af\u5883\u53d8\u91cf

\r\n

1.\u8bbe\u7f6e\u7cfb\u7edf\u5185\u6838\uff0c\u8fd9\u4e2a\u662f\u6839\u636e\u65e5\u5fd7\u62a5\u8b66\u81ea\u5df1\u8bbe\u7f6e\u7684

\r\n
[root@linux238 jdk1.8.0_192-amd64]# vi /etc/security/limits.conf
\r\n
\u6dfb\u52a0\u4e0b\u9762\u53c2\u6570
\r\n
nexus    soft    nproc 2047
\r\n\tnexus            hard   nproc 16384
\r\n\tnexus            soft nofile 1024
\r\n\tnexus            hard nofile 65536
\r\n
2.\u521b\u5efanexus\u8fd0\u884c\u8d26\u53f7
\r\n
[root@linux238 ~]# useradd nexus
\r\n
3.\u4fee\u6539 bashrc \u6587\u4ef6
\r\n\t [nexus@linux238 ~]# vi ~/.bashrc\u6dfb\u52a0
\r\n
NEXUS_HOME="/opt/nexus-3.14.0-04"
\r\n
4.\u8bbe\u7f6e\u8fd0\u884c\u7528\u6237 /opt/nexus-3.14.0-04/bin/nexus.rc
\r\n
\r\n\t
\r\nrun_as_user="nexus"\r\n
\r\n
\r\n
5.\u521b\u5efa\u5feb\u6377\u65b9\u5f0f ln -s /opt/nexus-3.14.0-04/bin/nexus /etc/init.d/nexus
\r\n
 
\r\n
6.\u6dfb\u52a0\u4e3a\u670d\u52a1
\r\n
[root@linux238 init.d]# cd /etc/init.d
\r\n\t[root@linux238 init.d]# chkconfig --add nexus
\r\n\t[root@linux238 init.d]# chkconfig --levels 345 nexus on
\r\n
 
\r\n
\r\n\t
7.\u914d\u7f6e\u865a\u62df\u5185\u5b58,\u4ee5\u53ca\u5de5\u4f5c\u8def\u5f84\uff08\u5927\u6982\u90fd\u80fd\u770b\u61c2\uff0c\u5177\u4f53 \u67e5\u770b\u5b98\u7f51\u8fd9\u91cc\u662f\u9ed8\u8ba4\u7684\uff09
\r\n\t\t[nexus@linux238 /]$ vi /opt/nexus-3.14.0-04/bin/nexus.vmoptions
\r\n\t
-Xms1200M
\r\n\t\t-Xmx1200M
\r\n\t\t-XX:MaxDirectMemorySize=2G
\r\n\t\t-XX:+UnlockDiagnosticVMOptions
\r\n\t\t-XX:+UnsyncloadClass
\r\n\t\t-XX:+LogVMOutput
\r\n\t\t-XX:LogFile=../sonatype-work/nexus3/log/jvm.log
\r\n\t\t-XX:-OmitStackTraceInFastThrow
\r\n\t\t-Djava.net.preferIPv4Stack=true
\r\n\t\t-Dkaraf.home=.
\r\n\t\t-Dkaraf.base=.
\r\n\t\t-Dkaraf.etc=etc/karaf
\r\n\t\t-Djava.util.logging.config.file=etc/karaf/java.util.logging.properties
\r\n\t\t-Dkaraf.data=../sonatype-work/nexus3
\r\n\t\t-Djava.io.tmpdir=../sonatype-work/nexus3/tmp
\r\n\t\t-Dkaraf.startLocalConsole=false
\r\n\t
 
\r\n\t
8.\u4fee\u6539\u7aef\u53e3\uff08\u6bd4\u8f83\u5e38\u7528\uff0c\u9ed8\u8ba4\u7aef\u53e38081\uff09\u7c7b\u4f3chttp://localhost:8081
\r\n\t
 
\r\n\t

[nexus@linux238 ~]$ cp /opt/nexus-3.14.0-04/etc/nexus-default.properties /opt/nexus-3.14.0-04/etc/nexus.properties
\r\n\t\t[nexus@linux238 ~]$ vi /opt//nexus-3.14.0-04/etc/nexus.properties
\r\n\t\tapplication-port=9999   //\u6211\u7684\u7aef\u53e3\u8bbe\u7f6e\u4e3a9999

\r\n\t

9.\u542f\u52a8\u670d\u52a1\u67e5\u770b\u8fd0\u884c\u60c5\u51b5

\r\n\t

[nexus@linux238 ~]$ service nexus start
\r\n\t\tStarting nexus

\r\n\t

Active Internet connections (only servers)
\r\n\t\tProto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name  
\r\n\t\ttcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN      1331/sshd          
\r\n\t\ttcp        0      0 0.0.0.0:8888                0.0.0.0:*                   LISTEN      1541/nginx         
\r\n\t\ttcp        0      0 127.0.0.1:45049             0.0.0.0:*                   LISTEN      14548/java         
\r\n\t\ttcp        0      0 127.0.0.1:25                0.0.0.0:*                   LISTEN      1409/master        
\r\n\t\ttcp        0      0 0.0.0.0:443                 0.0.0.0:*                   LISTEN      1541/nginx         
\r\n\t\ttcp        0      0 0.0.0.0:8899                0.0.0.0:*                   LISTEN      1541/nginx         
\r\n\t\ttcp        0      0 0.0.0.0:9999                0.0.0.0:*                   LISTEN      14548/java 

\r\n
\r\n

 

\r\n"}, {"title": "\u6b63\u5219\u8868\u8fbe\u5f0f.\u70b9*\u661f\u53f7\uff1f\u95ee\u53f7\u5177\u4f53\u533a\u522b", "desc": "\u4eca\u5929\u770b\u4e86\u4e0b\u6b63\u5219\u8868\u8fbe\u5f0f\u8868\u81ea\u5df1\u5728 shell \u91cc\u8f93\u5165\u4e86\u4e0b\u628a\u5e38\u7528\u5230\u7684\u5bb9\u6613\u6df7\u6dc6\u7684\u4e09\u4e2a\u5199\u4e0b\u6765\uff0c\u4ee5\u4fbf\u65f6\u95f4\u957f\u4e86\u7ffb\u9605\u3002", "content": "

\u5143\u5b57\u7b26 . * + ?

\r\n

.  \u70b9\u53ef\u4ee5\u5339\u914d\u4efb\u4f55\u4e00\u4e2a\u9664\u6362\u884c\u7b26\u4ee5\u5916\u7684\u5b57\u7b26

\r\n

* \u661f\u53f7\u5339\u914d\u524d\u9762\u7684\u5b57\u7b26\u4e00\u6b21\u6216\u8005\u96f6\u6b21\uff0c\u5982\u4e0b

\r\n

[root@zhoudl opt]# ls|awk '/myy*/'
\r\n\tmysql-5.7.22-1.el7.x86_64.rpm-bundle.tar
\r\n\tmysql-5.7.22-el7-x86_64.tar.gz
\r\n\tmysql-community-client-5.7.22-1.el7.x86_64.rpm
\r\n\tmysql-community-server-5.7.22-1.el7.x86_64.rpm
\r\n\tmyyyyyyysssss
\r\n\tshellmysql.sh

\r\n

\uff1f \u95ee\u53f7\u5339\u914d\u524d\u9762\u7684\u8868\u8fbe\u5f0f\u4e00\u6b21\u6216\u8005\u96f6\u6b21

\r\n

[root@zhoudl opt]# ls|awk '/myy?/'
\r\n\tmysql-5.7.22-1.el7.x86_64.rpm-bundle.tar
\r\n\tmysql-5.7.22-el7-x86_64.tar.gz
\r\n\tmysql-community-client-5.7.22-1.el7.x86_64.rpm
\r\n\tmysql-community-server-5.7.22-1.el7.x86_64.rpm
\r\n\tmyyyyyyysssss
\r\n\tshellmysql.sh

\r\n

+ \u52a0\u53f7\u5339\u914d\u524d\u9762\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u4e00\u6b21\u6216\u8005\u591a\u6b21\uff0c\u610f\u601d\u6700\u5c11\u8981\u5339\u914d\u4e00\u6b21

\r\n

[root@zhoudl opt]# ls|awk '/myy+/'
\r\n\tmyyyyyyysssss

\r\n

* \u661f\u53f7\u53ea\u5339\u914d\u4e00\u4e2a\u5b57\u7b26\uff0c+ \u52a0\u53f7\u548c \uff1f\u53f7\u5339\u914d\u524d\u9762\u6574\u4e2a\u8868\u8fbe\u5f0f \u3002

\r\n

\u6ca1\u4e8b\u767e\u5ea6\u6b63\u5219\u8868\u8fbe\u5f0f\u7f51\u7ad9\u591a\u7ec3\u7ec3\uff0c\u6211\u559c\u6b22\u5728 linux \u547d\u4ee4\u7b26\u4e0b\u7ec3\uff0c\u56e0\u4e3a\u6211\u4e60\u60ef\u73a9\u865a\u62df\u673a\u3002

\r\n"}, {"title": "\u5b8c\u5584\u4e00\u4e0b\u901a\u8fc7mysql\u6570\u636e\u5e93\u670d\u52a1\u5668\u5c06jeecms\u6587\u7ae0\u81ea\u52a8\u63a8\u9001\u5230\u767e\u5ea6\u5e73\u53f0 ", "desc": "\u6628\u5929\u90a3\u4e2a\u6700\u540e\u7528echo\u8f93\u51fa\u592a\u4e11\u964b\u4e86\uff0c\u5c06\u57df\u540d\u548c\u62fc\u63a5\u7b26\u7528\u53d8\u91cf\u5b58\u8d77\u6765\u518d\u641e\u4e2a for \u5faa\u73af\u8f93\u51fa\u4e00\u4e0b\u7f8e\u89c2\u4e00\u70b9\u3002", "content": "

\u901a\u8fc7mysql\u6570\u636e\u5e93\u670d\u52a1\u5668\u5c06jeecms\u6587\u7ae0\u81ea\u52a8\u63a8\u9001\u5230\u767e\u5ea6\u5e73\u53f0

\r\n

BASH\u811a\u672c

\r\n

 

\r\n

#!/bin/bash
\r\n\tusername='root'
\r\n\tpassword='123'
\r\n\tdatabase='zhoudl'
\r\n\tstr1='/'
\r\n\tstr2='.htm'
\r\n\turl='http://www.zhodl.com/'
\r\n\tselect_sql="SELECT jc_channel.channel_path,jc_content.content_id FROM jc_channel,jc_content WHERE jc_channel.channel_id = jc_content.channel_id ORDER BY jc_content.content_id DESC LIMIT 0,10"
\r\n\t#\u6b64\u5904\u91c7\u7528awk\u547d\u4ee4\u53bb\u9664\u4e86\u6807\u9898\u663e\u793a\uff0c\u4e5f\u53ef\u4ee5\u7528${result##*str}\u65b9\u5f0f\u53bb\u9664\uff0cstr\u4e3a\u5b57\u6bb5\u6700\u540e\u4e00\u4e2a\u5b57\u6bcd
\r\n\tresult=`mysql -u${username} -p${password} ${database} -e "${select_sql}"|awk 'NR>1'`
\r\n\techo $result
\r\n\tresult1=`echo $result | grep -o ' '| wc -l`
\r\n\techo $result1
\r\n\tfor((i=1,j=2;i<20;i+=2,j+=2))
\r\n\tdo
\r\n\techo $result |awk '{print  "'$url'"""$'$i'"""'$str1'"""$'$j'"""'$str2'"}'
\r\n\tdone
\r\n\t 

\r\n

\u4e0b\u9762\u662f\u6267\u884c\u7ed3\u679c

\r\n

[root@zhoudl opt]# sh 2.sh
\r\n\tmysql: [Warning] Using a password on the command line interface can be insecure.
\r\n\tlinux 1055 linux 1054 apache 1053 dba 1052 tomcat 1051 tengine 1050 linux 1049 windows 1048 windows 1047 javascript 1046
\r\n\t19
\r\n\thttp://www.zhodl.com/linux/1055.htm
\r\n\thttp://www.zhodl.com/linux/1054.htm
\r\n\thttp://www.zhodl.com/apache/1053.htm
\r\n\thttp://www.zhodl.com/dba/1052.htm
\r\n\thttp://www.zhodl.com/tomcat/1051.htm
\r\n\thttp://www.zhodl.com/tengine/1050.htm
\r\n\thttp://www.zhodl.com/linux/1049.htm
\r\n\thttp://www.zhodl.com/windows/1048.htm
\r\n\thttp://www.zhodl.com/windows/1047.htm
\r\n\thttp://www.zhodl.com/javascript/1046.htm

\r\n

 

\r\n

\u89e3\u91ca\uff1a\u8fd9\u6b21\u52a0\u4e86\u8f93\u51fa\u8c03\u8bd5\u4ee3\u7801\uff0c\u5229\u7528FOR\u5faa\u73af\u5c06\u8bb0\u5f55\u8f93\u51fa\u3002 mysql: [Warning] Using a password on the command line interface can be insecure. \u7ffb\u8bd1\u8fc7\u6765\u662f:\u5728\u547d\u4ee4\u884c\u754c\u9762\u4e0a\u4f7f\u7528\u5bc6\u7801\u53ef\u4ee5\u662f\u4e0d\u5b89\u5168\u7684;mysql 5.6\u4ee5\u4e0a\u7248\u672c\u65b0\u51fa\u73b0\u7684\u544a\u8b66\u3002

\r\n"}, {"title": "awk\u8c03\u7528BASH(\u7cfb\u7edf)\u53d8\u91cf", "desc": "\u7f16\u5199 bash \u7684\u65f6\u5019\u7ecf\u5e38\u7528\u5230 awk \u547d\u4ee4\uff0cawk\u8c03\u7528\u7cfb\u7edf\u547d\u4ee4\u5982\u679c\u76f4\u63a5\u7528$\u8c03\u7528\u4f1a\u62a5^ syntax error \u7b49\u9519\u8bef\u3002", "content": "

\u4e00\u3001\u6bd4\u8f83\u597d\u7528\u53c8\u63a8\u8350\u7684\u65b9\u6cd5\u4f7f\u7528 ‘’ \u5355\u5f15\u53f7\u5c06 bash \u4e2d\u5b9a\u4e49\u7684\u53d8\u91cf\u62ec\u8d77\u6765

\r\n

\u4f8b\uff1a

\r\n

var='123'

\r\n

[root@zhoudl opt]# var=123
\r\n\t[root@zhoudl opt]# echo $var
\r\n\t123
\r\n\t[root@zhoudl opt]# awk 'BEGIN{print "'$var'"}'
\r\n\t123

\r\n

\u5982\u679c\u53d8\u91cf\u4e2d\u542b\u6709\u7a7a\u683c\u5fc5\u987b\u8981\u5c06\u53d8\u91cf\u7528 “” \u53cc\u5f15\u53f7\u5305\u8d77\u6765\u4e0d\u7136\u4f1a\u62a5\u9519\u3002

\r\n

\u53cd\u4f8b\uff1a

\r\n

[root@zhoudl opt]# var='1 2 3'
\r\n\t[root@zhoudl opt]# awk 'BEGIN{print "'$var'"}'
\r\n\tawk: cmd. line:1: BEGIN{print "1
\r\n\tawk: cmd. line:1:             ^ unterminated string
\r\n\tawk: cmd. line:1: BEGIN{print "1
\r\n\tawk: cmd. line:1:             ^ syntax error

\r\n

\u6b63\u786e\u7684\uff1a

\r\n

[root@zhoudl opt]# awk 'BEGIN{print "'"$var"'"}'
\r\n\t1 2 3

\r\n

\u4e8c\u3001\u7528 awk \u7684 -v \u9009\u9879\u628a\u7cfb\u7edf\u53d8\u91cf\u8f6c\u6362\u6210awk\u53d8\u91cf

\r\n

[root@zhoudl opt]# awk -v nvar="$var" 'BEGIN{print nvar}'
\r\n\t1 2 3

\r\n"}, {"title": "centos7\u7528tar\u5b89\u88c5\u5305\u5b89\u88c5mysql", "desc": "\u7528 yum \u5b89\u88c5 mysql \u867d\u7136\u65b9\u4fbf\u4f46\u662f\u76ee\u5f55\u4e0d\u597d\u81ea\u5df1\u6307\u5b9a\u5f88\u9ebb\u70e6\uff0c\u4ecemysql\u7f51\u7ad9\u4e0b\u8f7d\u4e86 mysql-5.7.22-el7-x86_64.tar.gz \u81ea\u5df1\u624b\u52a8\u5b89\u88c5\u8bd5\u8bd5\u3002", "content": "

1#\u5378\u8f7d mariadb \uff08\u5982\u679c\u4e0d\u662f\u6700\u5c0f\u5b89\u88c5 centos7 \u53ef\u80fd\u81ea\u5e26 mariadb\uff09

\r\n

[root@zhoudl ~]#yum remove mariadb mariadb-server

\r\n

\u200b2#\u68c0\u67e5\u662f\u5426\u5b58\u5728mysql\u7528\u6237\u548c\u7ec4\uff0c\u6ca1\u6709\u8981\u65b0\u5efa

\r\n

3#\u68c0\u67e5mysql\u7ec4\u548c\u7528\u6237\u662f\u5426\u5b58\u5728
\r\n\t[root@zhoudl ~]# cat /etc/group | grep mysql
\r\n\t[root@zhoudl ~]#  cat /etc/passwd | grep mysql

\r\n

\u200b#\u5982\u679c\u6ca1\u6709\u521b\u5efamysql\u7528\u6237\u7ec4

\r\n

[root@zhoudl ~]# groupadd mysql
\r\n\t#\u521b\u5efa\u4e00\u4e2a\u7528\u6237\u540d\u4e3amysql\u7684\u7528\u6237\u5e76\u52a0\u5165mysql\u7528\u6237\u7ec4
\r\n\t[root@zhoudl
~]# useradd -g mysql mysql

\r\n

#\u8bbe\u7f6e\u5bc6\u7801

\r\n

[root@zhoudl ~]#passwd mysql

\r\n

4#\u914d\u7f6e /etc/my.cnf

\r\n
\r\n\t
[mysqld]
\r\n\t\tdatadir=/usr/local/mysql/data
\r\n\t\tsocket=/usr/local/mysql/data/mysql.sock
\r\n\t\t# \u5141\u8bb8\u6700\u5927\u8fde\u63a5\u6570
\r\n\t\tmax_connections=200
\r\n\t\t[mysqld_safe]
\r\n\t\tlog-error=/var/log/mysql/mysql.log
\r\n\t\tpid-file=/var/run/mysql/mysql.pid
\r\n\t
#
\r\n\t\t# include all files from the config directory
\r\n\t\t#
\r\n\t\t!includedir /etc/my.cnf.d
\r\n\t\t[mysql]
\r\n\t\t# \u8bbe\u7f6emysql\u5ba2\u6237\u7aef\u9ed8\u8ba4\u5b57\u7b26\u96c6
\r\n\t\tdefault-character-set=utf8
\r\n\t\tsocket=/usr/local/mysql/data/mysql.sock
\r\n\t\t[client]
\r\n\t\tdefault-character-set=utf8
\r\n\t\tsocket=/usr/local/mysql/data/mysql.sock
\r\n
\r\n

5#\u5b89\u88c5\u521d\u59cb\u5316\u6570\u636e\u5e93

\r\n

[root@zhoudl mysql]# bin/mysql_install_db  --basedir=/usr/local/mysql-5.7.22/ --datadir=/usr/local/mysql-5.7.22/data/
\r\n\t2018-09-26 15:16:27 [WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize
\r\n\t2018-09-26 15:16:29 [WARNING] The bootstrap log isn't empty:
\r\n\t2018-09-26 15:16:29 [WARNING] 2018-09-26T07:16:27.716120Z 0 [Warning] --bootstrap is deprecated. Please consider using --initialize instead

\r\n

[root@zhoudl mysql]# cp ./support-files/mysql.server /etc/init.d/mysqld

\r\n

6#\u66f4\u6539\u6587\u4ef6\u6240\u5c5e\u7528\u6237\u7ec4

\r\n

[root@zhoudl /]# chown -R mysql:mysql /usr/local/mysql/

\r\n

\u200b[root@zhoudl mysql]# chown 777 /etc/my.cnf
\r\n\t[root@zhoudl mysql]#
chmod +x /etc/init.d/mysqld

\r\n

[root@zhoudl mysql]# /etc/init.d/mysqld restart           
\r\n\t ERROR! MySQL server PID file could not be found!
\r\n\tStarting MySQL. SUCCESS!
\r\n\t[root@zhoudl mysql]# /etc/init.d/mysqld restart
\r\n\tShutting down MySQL.. SUCCESS!
\r\n\tStarting MySQL. SUCCESS!

\r\n

[root@zhoudl mysql]# ln -s /usr/local/mysql/bin/mysql   /usr/bin/mysql

\r\n

#\u8bbe\u7f6e\u4e3a\u670d\u52a1

\r\n

 

\r\n
[root@zhoudl ~]# chkconfig --level 35 mysqld on
\r\n\t[root@zhoudl ~]# chkconfig --list mysqld
\r\n
Note: This output shows SysV services only and does not include native
\r\n\t      systemd services. SysV configuration data might be overridden by native
\r\n\t      systemd configuration.
\r\n
      If you want to list systemd services use 'systemctl list-unit-files'.
\r\n\t      To see services enabled on particular target use
\r\n\t      'systemctl list-dependencies [target]'.
\r\n
mysqld          0:off   1:off   2:on    3:on    4:on    5:on    6:off
\r\n\t[root@zhoudl ~]# chmod +x /etc/rc.d/init.d/mysqld
\r\n\t[root@zhoudl ~]# chkconfig --add mysqld
\r\n\t[root@zhoudl ~]# chkconfig --list mysqld
\r\n
Note: This output shows SysV services only and does not include native
\r\n\t      systemd services. SysV configuration data might be overridden by native
\r\n\t      systemd configuration.
\r\n
      If you want to list systemd services use 'systemctl list-unit-files'.
\r\n\t      To see services enabled on particular target use
\r\n\t      'systemctl list-dependencies [target]'.
\r\n
mysqld          0:off   1:off   2:on    3:on    4:on    5:on    6:off
\r\n\t[root@zhoudl ~]# service mysqld status
\r\n\t SUCCESS! MySQL running (5098)
\r\n
 
\r\n
#\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf
\r\n
[root@zhoudl /]# vim /etc/profile
\r\n
\u6dfb\u52a0\u5982\u4e0b\u4e00\u884c\uff1a
\r\n
export PATH=$PATH://usr/local/mysql/bin
\r\n
#\u67e5\u770b\u6570\u636e\u5e93\u5bc6\u7801
\r\n
[root@zhoudl ~]# cat /root/.mysql_secret 
\r\n\t# Password set for user 'root@localhost' at 2018-09-26 16:17:35
\r\n\t.6G>VLvjgMAs
\r\n
#\u767b\u9646\u6570\u636e\u5e93
\r\n
\r\n\t
[root@zhoudl /]# mysql -uroot -p
\r\n\t\tEnter password:
\r\n\t\tWelcome to the MySQL monitor.  Commands end with ; or \\g.
\r\n\t\tYour MySQL connection id is 4
\r\n\t\tServer version: 5.7.22
\r\n\t
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
\r\n\t
Oracle is a registered trademark of Oracle Corporation and/or its
\r\n\t\taffiliates. Other names may be trademarks of their respective
\r\n\t\towners.
\r\n\t
Type 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.
\r\n\t
mysql>
\r\n
\r\n
#\u91cd\u65b0\u8bbe\u7f6e\u672c\u673a\u5bc6\u7801
\r\n
mysql> set password for root@'localhost'=password('123');
\r\n\tQuery OK, 0 rows affected, 1 warning (0.00 sec)
\r\n
#\u8fdc\u7a0b\u767b\u9646\u5bc6\u7801
\r\n
mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'jschrj' WITH GRANT OPTION
\r\n\t    -> ;
\r\n\tQuery OK, 0 rows affected, 1 warning (0.00 sec)
\r\n

\u4e0b\u9762\u81ea\u5df1\u5b89\u88c5 Navicat for MySQL \u5ba2\u6237\u7aef\u5728\u684c\u9762\u73af\u5883\u6162\u6162\u73a9\u5427\u3002

\r\n

\u6ce8\u610f\u70b9\uff1a1.\u6587\u4ef6\u5939\u76ee\u5f55\u6743\u9650\u30022.\u7528 yum \u5b89\u88c5\u7b2c\u4e00\u6b21\u767b\u9646\u4e0d\u9700\u8981\u5bc6\u7801\uff0c\u7528 tar \u5b89\u88c5\u5bc6\u7801\u85cf\u5728 /root/.mysql_secret  \u76ee\u5f55\u4e0b\u30023.my.cnf \u7684\u8bbe\u7f6e\u30024.\u5982\u679c\u539f\u6765\u5b89\u88c5\u8fc7 mariadb \u6709\u4e9b\u76ee\u5f55\u8981\u5220\u5e72\u51c0\u6bd4\u5982\u65e5\u5fd7\u76ee\u5f55\u30025.\u8981\u5fc3\u7ec6\u30026.\u7ecf\u9a8c\u6700\u91cd\u8981

\r\n

 

\r\n

 

\r\n"}, {"title": "centos7\u4fee\u6539\u65f6\u533a\u914d\u7f6entp\u540c\u6b65", "desc": "centos\u5b89\u88c5\u7684\u65f6\u5019\u9009\u62e9\u7684\u662f\u82f1\u6587\u7248\u65f6\u533a\u5f53\u65f6\u8bb0\u5f97\u9009\u7684\u662fAsia/Shanghai,\u4e0d\u77e5\u600e\u4e48\u7684\u914d\u7f6e\u4e86NTP\u65f6\u95f4\u8fd8\u662f\u4e0d\u5bf9\u3002", "content": "

1.\u67e5\u770b\u7cfb\u7edf\u7684\u65f6\u533a

\r\n

[root@zhoudl etc]# timedatectl     
\r\n\t      Local time: Wed 2018-09-19 10:23:21 CST
\r\n\t  Universal time: Wed 2018-09-19 02:23:21 UTC
\r\n\t        RTC time: Wed 2018-09-19 02:23:21
\r\n\t       Time zone: America/New_York (CST, +0800)
\r\n\t     NTP enabled: yes
\r\n\tNTP synchronized: yes
\r\n\t RTC in local TZ: no
\r\n\t      DST active: n/a

\r\n

\u770b Time zone: \u4e00\u884c\u662fAmerica/New_York (CST, +0800),\u6240\u4ee5\u600e\u4e48\u540c\u6b65\u65f6\u95f4\u90fd\u548c\u672c\u5730\u65f6\u95f4\u4e0d\u4e00\u81f4\u3002

\r\n

2.\u4fee\u6539\u65f6\u533a

\r\n

[root@zhoudl etc]# timedatectl set-local-rtc 1       # \u5c06\u786c\u4ef6\u65f6\u949f\u8c03\u6574\u4e3aCST\u65f6\u95f4, 0 \u4e3a\u8bbe\u7f6e\u4e3a UTC \u65f6\u95f4\u3002\u786c\u4ef6\u65f6\u95f4\u5efa\u8bae\u4f7f\u7528 UTC \u65f6\u95f4\u4e0d\u7136\u4f1a\u7528\u5982\u4e0b\u62a5\u9519

\r\n

Warning: The system is configured to read the RTC time in the local time zone.
\r\n\t         This mode can not be fully supported. It will create various problems
\r\n\t         with time zone changes and daylight saving time adjustments. The RTC
\r\n\t         time is never updated, it relies on external facilities to maintain it.
\r\n\t         If at all possible, use RTC in UTC by calling
\r\n\t         'timedatectl set-local-rtc 0'.

\r\n

timedatectl set-timezone Asia/Shanghai              # \u8bbe\u7f6e\u7cfb\u7edf\u65f6\u533a\u4e3a\u4e0a\u6d77

\r\n

\u200b3.\u901a\u8fc7\u963f\u91cc\u4e91\u7684\u65f6\u95f4\u540c\u6b65\u670d\u52a1\u5668\u540c\u6b65\u672c\u5730\u65f6\u95f4

\r\n

ntpdate ntp1.aliyun.com

\r\n

\u200b\u5ef6\u4f38\uff1a\u5982\u679c\u4e0d\u8003\u8651\u5404\u4e2a\u53d1\u884c\u7248\u7684\u5dee\u5f02\u5316, \u4ece\u66f4\u5e95\u5c42\u51fa\u53d1\u7684\u8bdd, \u4fee\u6539\u65f6\u95f4\u65f6\u533a\u6bd4\u60f3\u8c61\u4e2d\u8981\u7b80\u5355:
\r\n\tcp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

\r\n

\u4e0a\u9762\u8fd9\u6b65\u5f53\u65f6\u6211\u6d4b\u8bd5\u4e86\u9700\u8981\u91cd\u542f\u64cd\u4f5c\u7cfb\u7edf\u624d\u80fd\u6210\u529f

\r\n

 

\r\n

4.\u914d\u7f6entp\u670d\u52a1\u6b65\u9aa4

\r\n

4.1  \u5b89\u88c5\u670d\u52a1 yum install ntp ntpdate

\r\n

4.2 \u4fee\u6539etc/ntp.conf\u6587\u4ef6\u628a\u963f\u91cc\u4e91\u7684\u65f6\u95f4\u670d\u52a1\u5668\u52a0\u4e0a

\r\n

server time1.aliyun.com  prefer true iburst
\r\n\tserver ntp1.aliyun.com true iburst

\r\n

4.3 systemctl restart ntpd  # \u542f\u52a8ntp\u670d\u52a1

\r\n

4.4 ntpq -p   #\u67e5\u770b\u7f51\u7edc\u4e2d\u7684ntp\u670d\u52a1\u5668\u5176\u4e2d * \u8868\u793a\u6b63\u5728\u4f7f\u7528\u7684\u670d\u52a1\u5668

\r\n

[root@zhoudl etc]# ntpq -p
\r\n\t     remote           refid      st t when poll reach   delay   offset  jitter
\r\n\t==============================================================================
\r\n\t*203.107.6.88    10.165.84.13     2 u   20   64    1   24.308    1.678   0.165
\r\n\t+120.25.115.20   10.137.53.7      2 u   19   64    1   31.172    0.102   0.240

\r\n

4.5 ntpdate   #\u540c\u6b65\u672c\u5730\u65f6\u95f4

\r\n

[root@zhoudl etc]# ntptime
\r\n\tntp_gettime() returns code 0 (OK)
\r\n\t  time df4c36b3.e2a0a904  Wed, Sep 19 2018 10:45:07.885, (.885264236),
\r\n\t  maximum error 1163450 us, estimated error 541 us, TAI offset 0
\r\n\tntp_adjtime() returns code 0 (OK)
\r\n\t  modes 0x0 (),
\r\n\t  offset 294.742 us, frequency 0.010 ppm, interval 1 s,
\r\n\t  maximum error 1163450 us, estimated error 541 us,
\r\n\t  status 0x2001 (PLL,NANO),
\r\n\t  time constant 6, precision 0.001 us, tolerance 500 ppm,

\r\n

[root@zhoudl etc]# timedatectl
\r\n\t      Local time: Wed 2018-09-19 11:22:48 CST
\r\n\t  Universal time: Wed 2018-09-19 03:22:48 UTC
\r\n\t        RTC time: Wed 2018-09-19 03:22:49
\r\n\t       Time zone: Asia/Shanghai (CST, +0800)
\r\n\t     NTP enabled: yes
\r\n\tNTP synchronized: yes
\r\n\t RTC in local TZ: no
\r\n\t      DST active: n/a

\r\n

\u4f9d\u7136\u6709\u7455\u75b5\u867d\u7136date \u770b\u7cfb\u7edf\u65f6\u95f4\u5bf9\u4e86\u4f46\u662f RTC time Universal time \u65f6\u95f4\u548c\u672c\u5730\u65f6\u95f4\u4e0d\u4e00\u81f4\uff0c\u5efa\u8bae\u4e0d\u7528\u5904\u7406\uff0c\u56e0\u4e3a\u786c\u4ef6\u65f6\u949f\u9ed8\u8ba4\u4f7f\u7528UTC\u65f6\u95f4\uff0c\u786c\u4ef6\u65f6\u949f\u4e0d\u80fd\u4fdd\u5b58\u65f6\u533a\u548c\u590f\u4ee4\u65f6\u8c03\u6574\uff0c\u4fee\u6539\u540e\u5c31\u65e0\u6cd5\u4ece\u786c\u4ef6\u65f6\u949f\u4e2d\u8bfb\u53d6\u51fa\u51c6\u786e\u6807\u51c6\u65f6\u95f4\uff0c\u56e0\u6b64\u4e0d\u5efa\u8bae\u4fee\u6539\u3002\u4fee\u6539\u540e\u7cfb\u7edf\u4f1a\u51fa\u73b0\u4e0b\u9762\u7684\u8b66\u544a\u3002\u4f46\u662f\u6709\u4e9b\u5e94\u7528\u4ee3\u7801\u8c03\u7528\u7684\u662f\u786c\u4ef6\u65f6\u95f4\u4f1a\u6bd4\u672c\u5730\u65f6\u95f4\u65e98\u5c0f\u65f6\uff0c\u6539\u4e0d\u6539\u81ea\u884c\u659f\u914c\u3002

\r\n

Warning: The system is configured to read the RTC time in the local time zone.
\r\n\t         This mode can not be fully supported. It will create various problems
\r\n\t         with time zone changes and daylight saving time adjustments. The RTC
\r\n\t         time is never updated, it relies on external facilities to maintain it.
\r\n\t         If at all possible, use RTC in UTC by calling
\r\n\t         'timedatectl set-local-rtc 0'.

\r\n

[root@zhoudl etc]# date
\r\n\tWed Sep 19 10:58:04 CST 2018

\r\n

4.6 clock -w  #\u5c06\u65e5\u671f\u5199\u5165CMOS

\r\n

[root@zhoudl etc]# timedatectl                  
\r\n\t      Local time: Wed 2018-09-19 10:55:00 CST
\r\n\t  Universal time: Wed 2018-09-19 02:55:00 UTC
\r\n\t        RTC time: Wed 2018-09-19 10:55:00
\r\n\t       Time zone: Asia/Shanghai (CST, +0800)
\r\n\t     NTP enabled: yes
\r\n\tNTP synchronized: yes
\r\n\t RTC in local TZ: yes
\r\n\t      DST active: n/a

\r\n

 

\r\n

 

\r\n"}, {"title": "centos7\u5b89\u88c5mysql|mariadb", "desc": "\u4ee5\u524d\u5728cenots\u4e0b\u914d\u7f6e\u597dyum\u6e90\u540e\u53ef\u4ee5\u7528 yum install mysql mysql-server \u5b89\u88c5mysql\u6570\u636e\u5e93\uff0c\u73b0\u5728\u4f1a\u9ed8\u8ba4\u5b89\u88c5mariadb\uff0c\u63d0\u793a\u627e\u4e0d\u5230mysql-server\u8fd9\u4e2a\u5305\uff0c\u7b80\u5355\u8bf4\u53ea\u80fd\u5b89\u88c5\u5ba2\u6237\u7aef\u5b89\u88c5\u4e0d\u4e86\u6570\u636e\u5e93\u4e86\u3002", "content": "

\u56e0\u4e3amysql\u88ab\u7532\u9aa8\u6587\u6536\u8d2d\u4e3a\u4e86\u89c4\u907fmysql\u95ed\u6e90\u98ce\u9669centos7\u4ee5\u540e\u7248\u672c\u90fd\u4f7f\u7528mariadb\uff0c\u6b63\u786e\u7684\u5b89\u88c5\u65b9\u6cd5\u5982\u4e0b\u3002

\r\n

yum -y install mariadb mariadb-server

\r\n

\u200b\u5728centos6\u64cd\u4f5c\u7cfb\u7edf\u4e0b\u542f\u52a8mysql\u547d\u4ee4\u662f service mysqld start \u5728cenots 7 \u5df2\u7ecf\u6ca1\u7528\u4e86\u3002

\r\n

\u200b\u9700\u8981\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4\u542f\u52a8\u6570\u636e\u5e93\uff1a

\r\n

[root@zhoudl lib64]# systemctl start mariadb

\r\n

\u94fe\u63a5\u8fd8\u662f\u548ccneots 6 \u4e00\u6837\u7684\uff0c\u7b2c\u4e00\u6b21\u94fe\u63a5\u4e0d\u9700\u8981\u8f93\u5165\u5bc6\u7801\uff1a

\r\n
[root@zhoudl lib64]# mysql -uroot
\r\n\tWelcome to the MariaDB monitor.  Commands end with ; or \\g.
\r\n\tYour MariaDB connection id is 2
\r\n\tServer version: 5.5.60-MariaDB MariaDB Server
\r\n
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
\r\n
Type 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.
\r\n
MariaDB [(none)]>
\r\n

\u4e0b\u9762\u4fee\u6539\u4e0b\u5bc6\u7801\uff1a

\r\n

MariaDB [(none)]> set password for root@'localhost'=password('123');
\r\n\tQuery OK, 0 rows affected (0.00 sec)

\r\n

\u9644\u52a0\u8fdc\u7a0b\u6743\u9650\uff1a

\r\n

MariaDB [(none)]> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123' WITH GRANT OPTION;
\r\n\tQuery OK, 0 rows affected (0.00 sec)

\r\n

\u63a5\u4e0b\u6765\u5c31\u80fd\u4f7f\u7528 Navicat for MySQL \u7b49\u5de5\u5177\u94fe\u63a5\u6570\u636e\u5e93\u4e86\uff0c\u5982\u679c\u9632\u706b\u5899\u6ca1\u5f00\u7aef\u53e3\u7684\u8bdd\u8bb0\u5f97\u6253\u5f003306\u7aef\u53e3\u6216\u8005\u5173\u95ed\u9632\u706b\u5899\uff0c\u5173\u95ed\u9632\u706b\u5899\u7684\u547d\u4ee4\u662f\uff1a

\r\n

[root@zhoudl /]# systemctl stop firewalld

\r\n

 

\r\n"}, {"title": "\u6bd5\u8282\u7f51\u7edc\u5907\u5fd8\u5f55", "desc": "\u9632\u706b\u5899\u548c\u7f51\u95f8\u914d\u7f6e\u5907\u5fd8\u3002\u9632\u706b\u5899eht1 \u653f\u52a1\u7f51\u51fa\u53e3\uff0ceth2 \u4e92\u8054\u7f51\u51fa\u53e3\u3002ETH3\u63a5\u653f\u52a1\u7f51\u5e94\u7528\u3002\u7f51\u95f8\u5916\u7f51\u63a5\u9632\u706b\u5899eth4 \u7aef\u53e3\uff0c\u5185\u7f51\u7f51\u4e0a\u6295\u8bc9\u670d\u52a1\u5668\u3002", "content": "

\u5173\u4e8e\u9632\u706b\u5899\uff0c\u4e1a\u52a1\u4f7f\u7528\u8d1f\u8f7d\u5747\u8861\u4e1a\u52a1\u5bf9\u63a5\u51fa\u53e3\u5730\u5740\uff0c\u76f8\u5bf9\u4e8enat\u914d\u7f6e\u7b80\u5355\uff0c\u4e0d\u6df7\u4e71\u4e5f\u4e0d\u5bb9\u6613\u51fa\u73b0\u914d\u7f6e\u9519\u8bef\u3002

\r\n

\u5173\u4e8e\u7f51\u95f8\uff0c\u4e24\u79cd\u65b9\u5f0f\uff1a

\r\n

\u4e00\u3001\u5185\u7f51\u4e3b\u673a\u80fd\u591f\u901a\u8fc7\u7f51\u95f8\u8bbf\u95ee\u4e92\u8054\u7f51\uff0c\u91c7\u7528\u4ee3\u7406\u670d\u52a1\u5668\u6a21\u5f0f\uff0c\u5373\u9700\u8981\u5728\u5ba2\u6237\u7aef\u4e3b\u673a\u4e0a\u6dfb\u52a0\u4ee3\u7406\u670d\u52a1\uff0c\u4e0d\u9700\u8981\u6dfb\u52a0\u7f51\u5173\u5730\u5740\u548cDNS\u5730\u5740

\r\n

\u4e8c\u3001\u5185\u7f51\u4e3b\u673a\u80fd\u591f\u901a\u8fc7\u7f51\u95f8\u8bbf\u95ee\u4e92\u8054\u7f51\uff0c\u91c7\u7528\u900f\u660e\u6a21\u5f0f\uff0c\u5373\u9700\u5728\u5ba2\u6237\u7aef\u4e3b\u673a\u6dfb\u52a0\u7f51\u5173\u5730\u5740\u548cDNS\u5730\u5740

\r\n

\u90fd\u662f\u4f7f\u7528\u7684\u5b89\u5168\u6d4f\u89c8\u83dc\u5355\uff0c\u4f7f\u7528\u4ee3\u7406\u6a21\u5f0f\u9700\u8981\u914d\u7f6eIE\u6d4f\u89c8\u5668\uff0c\u7a0b\u5e8f\u8bbf\u95ee\u7684\u8bdd\u4e0d\u65b9\u4fbf\uff0c\u6211\u4f7f\u7528\u7684\u662f\u900f\u660e\u6a21\u5f0f\u3002

\r\n

\u4f7f\u7528DSN\u7684\u8bdd\uff0c\u9700\u8981\u5728\u5916\u7f51\u7aef\u5b89\u5168\u6d4f\u89c8\u6a21\u5757\u670d\u52a1\u7aef\u914d\u7f6e DNS \u542f\u52a8\u670d\u52a1\uff0c\u5b9a\u5236\u6a21\u5757\u91cc\u8981\u914d\u7f6eUDP\u670d\u52a1\u7aef\u9700\u8981\u586b\u5199\u4efb\u52a1\u53f7\uff0c\u670d\u52a1\u5668\u5730\u5740\uff0c\u7aef\u53e3\u53f7\uff0c\u5176\u4e2d\u670d\u52a1\u53f7\u968f\u4fbf\u586b\u5199\uff0c\u670d\u52a1\u5668\u5730\u5740\u5c31\u662fDNS\u670d\u52a1\u5668\u7684IP\uff0c\u7aef\u53e3\u53f753.

\r\n

\u5185\u7f51\u7aef\u53e3\u9700\u8981\u914d\u7f6e\u5b89\u5168\u6d4f\u89c8\u6a21\u5757\u5ba2\u6237\u7aef\u914d\u7f6e\u57fa\u672c\u914d\u7f6e\u91cc\u9762\u4e3b\u8981\u8981\u8fd0\u884c\u65b9\u5f0f\u9009\u62e9\u900f\u660e\u6a21\u5f0f\uff0c\u9700\u8981\u8bbf\u95ee\u7684\u7aef\u53e3\u53f7\uff0c\u5141\u8bb8\u8bbf\u95ee\u7684\u534f\u8bae\uff0c\u7136\u540e\u5728\u5ba2\u6237\u7aef\u7684\u542f\u52a8\u914d\u7f6e\u91cc\u70b9\u542f\u52a8\u670d\u52a1\u3002\u670d\u52a1\u5668\u914d\u7f6e\u7684\u8bdd DNS \u8981\u586b\u5199 \u7f51\u95f8\u5185\u7f51\u7684IP\u6ce8\u610f\u4e0d\u662fDNS\u670d\u52a1\u5668\u7684IP\u5730\u5740\u3002

\r\n

 

\r\n

\u5982\u679c\u60f3\u8bbf\u95ee\u7684\u7f51\u7ad9\u662fip\u5730\u7aef\u53e3\u53f7\u5f62\u5f0f\u7684\u8bdd\uff0c\u9700\u8981\u914d\u7f6e\u7f51\u95f8\u5916\u7f51\u7aef\u7684\u5b89\u5168\u6d4f\u89c8\u6a21\u5757--\u5ba2\u6237\u7aef\u91cc\u9762\u7684\u57fa\u672c\u914d\u7f6e\uff0c\u8fd0\u884c\u65b9\u5f0f\u8981\u9009\u62e9\u4ee3\u7406\u6a21\u5f0f\uff0c\u5141\u8bb8\u8bbf\u95ee\u7684\u7aef\u53e3\u5373\u9700\u8981\u8bbf\u95ee\u7684\u7f51\u7ad9\u7aef\u53e3\uff0c\u4ee5\u53ca\u534f\u8bae\u3002\u7136\u540e\u5728\u5b9a\u5236\u6a21\u5757\u7684 TCP \u8bbf\u95ee\u91cc\u914d\u7f6e\u670d\u52a1\u7aef\u586b\u5199\u4efb\u52a1\u53f7\uff0c\u9700\u8981\u8bbf\u95ee\u7684\u7f51\u7ad9\u7684IP\u5730\u5740\u7aef\u53e3\u53f7\u3002\u7f51\u95f8\u7684\u5185\u7f51\u914d\u7f6e\u7b80\u5355\u53ea\u8981\u5728\u5b9a\u5236\u6a21\u5757\u7684 TCP\u8bbf\u95ee\u91cc\u914d\u7f6e\u5ba2\u6237\u7aef \u586b\u5199\u4efb\u52a1\u53f7\uff08\u4e00\u5b9a\u8981\u4e0e\u5916\u7f51\u7684\u4efb\u52a1\u53f7\u586b\u4e00\u6837\u7684\uff09\u76d1\u542c\u7aef\u53e3\u53ef\u4ee5\u76f4\u63a5\u586b1:65535\u5168\u90e8\u7aef\u53e3\u8fd0\u884c\u6253\u52fe\u4fdd\u5b58\u5c31\u884c\u4e86\u3002

\r\n

 

\r\n"}, {"title": "\u4f7f\u7528CMD\u547d\u4ee4\u884c\u65b9\u5f0f\u8fdc\u7a0b\u670d\u52a1\u5668", "desc": "\u8fdc\u7a0b\u670d\u52a1\u5668\u65f6\u5019\u7ecf\u5e38\u51fa\u73b0\u5185\u90e8\u94fe\u63a5\u9519\u8bef\u9ed1\u5c4f\u7b49\u8fde\u4e0d\u4e0a\u7684\u60c5\u51b5\uff0c\u6700\u8fd1\u60f3\u770b\u770b\u662f\u4e0d\u662f\u80fd\u5411linux\u90a3\u6837\u4f7f\u7528CMD\u547d\u4ee4\u884c\u7684\u65b9\u5f0f\u94fe\u63a5\u3002", "content": "

 

\r\n
\u4e00\u3001\u542f\u7528WinRM\u670d\u52a1\uff08\u670d\u52a1\u5668\u3001\u5ba2\u6237\u7aef\u540c\u65f6\u542f\u7528\uff09
\r\n
Windows Remote Management (WS-Management)
\r\n
 
\r\n
\u4e8c\u3001\u670d\u52a1\u5668\u4ee5\u7ba1\u7406\u5458\u65b9\u5f0f\u542f\u52a8CMD\uff0c\u8fd0\u884c\uff1awinrm quickconfig
\r\n
\r\n\t
\r\n\t\t

powershell\u6267\u884c:

\r\n\t\t

Enable-PsRemoting

\r\n\t\t

\u9ed8\u8ba4\u9009\u62e9 Y \u786e\u5b9a

\r\n\t
\r\n\t
PS C:\\Users\\Administrator> Enable-PsRemoting
\r\n\t
WinRM \u5feb\u901f\u914d\u7f6e
\r\n\t\t\u6b63\u5728\u8fd0\u884c\u547d\u4ee4“Set-WSManQuickConfig”\uff0c\u4ee5\u4f7f\u8be5\u8ba1\u7b97\u673a\u80fd\u591f\u901a\u8fc7 WinRM \u670d\u52a1\u8fdb\u884c\u8fdc\u7a0b\u7ba1\u7406\u3002
\r\n\t\t \u5176\u4e2d\u5305\u62ec:
\r\n\t\t    1. \u542f\u52a8\u6216\u91cd\u65b0\u542f\u52a8(\u5982\u679c\u5df2\u542f\u52a8) WinRM \u670d\u52a1
\r\n\t\t    2. \u5c06 WinRM \u670d\u52a1\u7c7b\u578b\u8bbe\u7f6e\u4e3a\u81ea\u52a8\u542f\u52a8
\r\n\t\t    3. \u521b\u5efa\u4e00\u4e2a\u4fa6\u542c\u5668\u4ee5\u63a5\u53d7\u4efb\u610f IP \u5730\u5740\u4e0a\u7684\u8bf7\u6c42
\r\n\t\t    4. \u5bf9 WS-Management \u6d41\u91cf\u542f\u7528\u9632\u706b\u5899\u4f8b\u5916(\u4ec5\u9002\u7528\u4e8e http)\u3002
\r\n\t
\u662f\u5426\u7ee7\u7eed?
\r\n\t\t[Y] \u662f(Y)  [A] \u5168\u662f(A)  [N] \u5426(N)  [L] \u5168\u5426(L)  [S] \u6302\u8d77(S)  [?] \u5e2e\u52a9 (\u9ed8\u8ba4\u503c\u4e3a“Y”): y
\r\n\t\t\u5728\u6b64\u8ba1\u7b97\u673a\u4e0a\uff0cWinRM \u5df2\u8bbe\u7f6e\u4e3a\u63a5\u6536\u8bf7\u6c42\u3002
\r\n\t\tWinRM \u5df2\u7ecf\u8fdb\u884c\u4e86\u66f4\u65b0\uff0c\u4ee5\u7528\u4e8e\u8fdc\u7a0b\u7ba1\u7406\u3002
\r\n\t\t\u5728 HTTP://* \u4e0a\u521b\u5efa WinRM \u4fa6\u542c\u7a0b\u5e8f\u63a5\u53d7 WS-Man \u5bf9\u6b64\u673a\u5668\u4e0a\u4efb\u610f IP \u7684\u8bf7\u6c42\u3002
\r\n\t\tWinRM \u9632\u706b\u5899\u5f02\u5e38\u5df2\u542f\u7528\u3002
\r\n\t\t\u5df2\u914d\u7f6e LocalAccountTokenFilterPolicy \u4ee5\u8fdc\u7a0b\u5411\u672c\u5730\u7528\u6237\u6388\u4e88\u7ba1\u7406\u6743\u9650\u3002
\r\n\t

\r\n\t\t\u786e\u8ba4
\r\n\t\t\u662f\u5426\u786e\u5b9e\u8981\u6267\u884c\u6b64\u64cd\u4f5c?
\r\n\t\t\u5bf9\u76ee\u6807“\u672a\u627e\u5230\u4f1a\u8bdd\u914d\u7f6e“Microsoft.PowerShell32”\u3002\u6b63\u5728\u8fd0\u884c\u547d\u4ee4“Register-PSSessionConfiguration Microsoft.PowerShell32
\r\n\t\t-processorarchitecture x86 -force”\u4ee5\u521b\u5efa“Microsoft.PowerShell32”\u4f1a\u8bdd\u914d\u7f6e\u3002\u8fd9\u5c06\u4f1a\u91cd\u65b0\u542f\u52a8 WinRM
\r\n\t\t\u670d\u52a1\u3002”\u6267\u884c\u64cd\u4f5c“\u6b63\u5728\u6ce8\u518c\u4f1a\u8bdd\u914d\u7f6e”\u3002
\r\n\t\t[Y] \u662f(Y)  [A] \u5168\u662f(A)  [N] \u5426(N)  [L] \u5168\u5426(L)  [S] \u6302\u8d77(S)  [?] \u5e2e\u52a9 (\u9ed8\u8ba4\u503c\u4e3a“Y”): y
\r\n\t\tPS C:\\Users\\Administrator>
\r\n\t

\u5728\u5ba2\u6237\u7aefpowershell\u6267\u884c\u547d\u4ee4:

\r\n\t

Set-Item wsman:\\localhost\\Client\\TrustedHosts -value *

\r\n\t

\u5141\u8bb8\u8fdc\u7a0b\u8bbf\u95ee\u670d\u52a1\u5668:

\r\n
\r\n
\u4e09\u3001\u5ba2\u6237\u7aef\u4ee5\u7ba1\u7406\u5458\u65b9\u5f0f\u542f\u52a8CMD\uff0c\u8f93\u5165powershell\u56de\u8f66\uff0c\u7136\u540e\u8fd0\u884c\uff1a
\r\n
 
\r\n
Set-Item wsman:\\localhost\\Client\\TrustedHosts -Value 192.168.1.237 (\u670d\u52a1\u5668IP)
\r\n
 
\r\n
PS C:\\Windows\\system32> Enter-PSSession 192.168.1.237 -Credential administrator
\r\n\t[192.168.1.237]: PS C:\\Users\\Administrator\\Documents>
\r\n
 
\r\n

 

\r\n"}, {"title": "\u5175\u56e2\u670d\u52a1\u5668\u8001\u662f\u81ea\u52a8\u91cd\u542f\u89e3\u51b3\u7eaa\u8981", "desc": "windows2008R \u7684\u670d\u52a1\u5668\u8001\u662f\u8fc7\u4e00\u6bb5\u65f6\u95f4\u81ea\u52a8\u91cd\u542f\uff0clog\u63d0\u793a Microsoft Security Center (2.1) Service \u670d\u52a1\u610f\u5916\u5730\u7ec8\u6b62\uff0c\u8fd9\u79cd\u60c5\u51b5\u5df2\u7ecf\u51fa\u73b0\u4e86 1 \u6b21\u3002\u4ee5\u4e0b\u7684\u4fee\u6b63\u64cd\u4f5c\u5c06\u5728 60000 \u6beb\u79d2\u5185\u8fd0\u884c: \u91cd\u65b0\u542f\u52a8\u670d\u52a1\u3002", "content": "

\u7f51\u4e0a\u67e5\u4e86\u4e0b\u5927\u6982\u662f\u52d2\u7d22\u75c5\u6bd2\u670d\u52a1\uff0c\u4e0d\u7ba1\u4e86\u76f4\u63a5\u7981\u7528\uff0c\u5378\u8f7d

\r\n

\u5148\u5230\u670d\u52a1\u91cc\u9762\u505c\u6b62\u5e76\u7981\u7528 mssecsvc2.0 \u548c mssecsvc2.1

\r\n

\u7136\u540eCMD\u7ba1\u7406\u5458\u6267\u884c

\r\n

sc delete mssecsvc2.1
\r\n\t 

\r\n

sc delete mssecsvc2.0

\r\n

\u6700\u540e\u6253\u4e0a windows6.1-kb4012212-x64_2decefaa02e2058dcd965702509a992d8c4e92b3.msu \u8fd9\u4e2a\u8865\u4e01\u3002

\r\n"}, {"title": "centos 7\u4f7f\u7528\u6ce8\u610f\u60c5\u51b5", "desc": "\u6700\u8fd1\u60f3\u73a9\u73a9 Nodejs \u5347\u7ea7\u4f7f\u7528\u4e86cnetos7 \u4e00\u76f4\u4e60\u60ef\u6027\u4f7f\u7528minimal\u3002\u9047\u5230\u548c centos 6\u4e0d\u4e00\u6837\u7684\u5730\u65b9\uff0c\u5728\u6b64\u8bb0\u5f55\u4e0b\u5907\u5fd8\u3002", "content": "

1.\u9996\u5148\u5c31\u662f\u8fdc\u7a0b\u7684\u95ee\u9898\u4e86

\r\n

centos6\u5b89\u88c5\u540e\u914d\u7f6e\u597d\u7f51\u7edc\u662f\u53ef\u4ee5\u76f4\u63a5ssh\u94fe\u63a5\u7684\uff0ccentos7\u4e0d\u884c\uff0c\u4e3a\u4e86\u7701\u4e8b\u76f4\u63a5\u5173\u95ed\u9632\u706b\u5899\u3002

\r\n

2.\u9632\u706b\u5899\u5173\u95ed\u95ee\u9898

\r\n

centos6 \u5173\u95ed\u65b9\u6cd5 # service iptables stop \u5728centos7 \u4e0d\u7ba1\u7528\u4e86\u3002\u8981\u4f7f\u7528 #systemctl stop firewalld

\r\n

3.netstat \u547d\u4ee4\u4e0d\u7ba1\u7528\u4e86

\r\n

centos 7 minimal\u7248\uff0c\u9ed8\u8ba4\u652f\u6301netstat \u547d\u4ee4\u8981\u4f7f\u7528 yum install net-tools \u547d\u4ee4\u5148\u5b89\u88c5\u4e0b\u5305\u3002

\r\n

4.dns\u4e0d\u901a\u4f1a\u5bfc\u81f4\u8fdc\u7a0b\u94fe\u63a5\u5f88\u6162\u6216\u8005\u662f\u76f4\u63a5\u8fdc\u7a0b\u4e0d\u4e0a\uff0c\u5b89\u88c5\u65f6\u5019\u8981\u6ce8\u610f\u4e86\u53ef\u4ee5\u5148\u4e0d\u914dDNS\uff0c\u5148\u914d\u7f6eIP\u8fd8\u662f\u6709\u5fc5\u8981\u7684\uff0c\u8fdc\u7a0b\u4e0a\u53bb\u6bd4\u5728\u865a\u62df\u673a\u91cc\u914d\u7f6e\u65b9\u4fbf\u591a\u4e86\u3002

\r\n

\u4ee5\u540e\u5728\u53d1\u73b0\u4ec0\u4e48\u5728\u8bb0\u5f55\u5427\uff0cyarn \u5305\u7ba1\u7406\u8fd8\u662f\u4e00\u8138\u61f5\u903c\u8fd8\u4ee5\u4e3a\u548chadoop \u7684\u90a3\u4e2ayarn\u6709\u4ec0\u4e48\u5173\u7cfb\u5462\uff0c\u539f\u6765\u662f\u4e24\u4e2a\u4e0d\u540c\u7684\u4e1c\u897f\u3002

\r\n

 

\r\n"}, {"title": "YUM\u5b89\u88c5\u62a5\u9519", "desc": "\u914d\u7f6eyarn\u6e90\u540e\u7528yum install yarn \u5b89\u88c5\u62a5\u9519\uff0c\u4e3b\u8981\u539f\u56e0\u662f\u7f51\u7ad9\u5730\u5740\u662fhttps\u7684\u3002", "content": "

\u62a5\u9519\u4fe1\u606f\uff1a

\r\n

Loaded plugins: fastestmirror
\r\n\tSetting up Install Process
\r\n\tLoading mirror speeds from cached hostfile
\r\n\t * base: mirrors.aliyun.com
\r\n\t * extras: mirrors.aliyun.com
\r\n\t * updates: mirrors.cn99.com
\r\n\thttps://dl.yarnpkg.com/rpm/repodata/repomd.xml: [Errno 14] Peer cert cannot be verified or peer cert invalid
\r\n\tTrying other mirror.
\r\n\tError: Cannot retrieve repository metadata (repomd.xml) for repository: yarn. Please verify its path and try again

\r\n

\u89e3\u51b3\u65b9\u6cd5\uff1a

\r\n

\u5728/etc/yum.conf \u914d\u7f6e\u6587\u4ef6 \u540e\u9762\u52a0\u4e0a sslverify=false \u91cd\u65b0\u6267\u884c\u547d\u4ee4\u5373\u53ef\u3002

\r\n"}, {"title": "linux\u5404\u76ee\u5f55\u7528\u9014\u4f5c\u7528", "desc": "\u6c5f\u82cf\u7701\u7684\u524d\u7f6e\u673a50G\u786c\u76d8\u7528\u7528\u5c31\u6ee1\u4e86\u7528du -sh *\u547d\u4ee4\u67e5\u770b\u4e86\u4e0b\uff0c/var/crash \u76ee\u5f55\u5f88\u592711\u4e2aG\u591a\u3002\u91cc\u9762\u5168\u662f127.0.0.1\u5f00\u5934\u7684\u6587\u4ef6\uff0c\u60f3\u8d77\u6765\u767e\u5ea6\u4e0b\u67e5\u67e5\u5404\u4e2a\u76ee\u5f55\u662f\u5e72\u4ec0\u4e48\u7528\u7684\uff0c\u8bb0\u5f55\u4e0b\u4ee5\u5907\u540e\u7528\u3002", "content": "

\u6211\u7528\u7684\u6700\u7b80\u5355\u7684 du -sh * \u4ece\u6839\u76ee\u5f55\u9010\u4e2a\u67e5\u627e\u3002

\r\n

1\u3001/ \u6839\u76ee\u5f55 --------- \u6240\u6709\u76ee\u5f55\u6302\u5728\u5176\u4e0b

\r\n

 

\r\n

2\u3001/boot\u3000--------- \u5b58\u653eUbuntu\u5185\u6838\u548c\u7cfb\u7edf\u542f\u52a8\u6587\u4ef6\u3002\u7cfb\u7edf\u542f\u52a8\u65f6\u8fd9\u4e9b\u6587\u4ef6\u5148\u88ab\u88c5\u8f7d\u3002

\r\n

 

\r\n

3\u3001/etc\u3000--------- \u7cfb\u7edf\u7684\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55\u3002\u5bc6\u7801\u6587\u4ef6\u3001\u8bbe\u7f6e\u7f51\u5361\u4fe1\u606f\u3001\u73af\u5883\u53d8\u91cf\u7684\u8bbe\u7f6e\u7b49\u90fd\u5728\u6b64\u76ee\u5f55\u4e2d\uff0c\u8bb8\u591a\u7f51\u7edc\u914d\u7f6e\u6587\u4ef6\u4e5f\u5728\u5176\u4e2d\u3002

\r\n

 

\r\n

4\u3001/lib   --------- \u6839\u6587\u4ef6\u7cfb\u7edf\u76ee\u5f55\u4e0b\u7a0b\u5e8f\u548c\u6838\u5fc3\u6a21\u5757\u7684\u5171\u4eab\u5e93\u3002\u8fd9\u4e2a\u76ee\u5f55\u91cc\u5b58\u653e\u7740\u7cfb\u7edf\u6700\u57fa\u672c\u7684\u52a8\u6001\u94fe\u63a5\u5171\u4eab\u5e93\uff0c\u7c7b\u4f3c\u4e8eWindows\u4e0b\u7684system32\u76ee\u5f55\uff0c\u51e0\u4e4e\u6240\u6709\u7684\u5e94\u7528\u7a0b\u5e8f\u90fd\u9700\u8981\u7528\u5230\u8fd9\u4e9b\u5171\u4eab\u5e93\u3002

\r\n

 

\r\n

5\u3001/media   --------- \u4e3b\u8981\u7528\u4e8e\u6302\u8f7d\u591a\u5a92\u4f53\u8bbe\u5907\u3002ubuntu\u7cfb\u7edf\u81ea\u52a8\u6302\u8f7d\u7684\u5149\u9a71\u3001usb\u8bbe\u5907\uff0c\u5b58\u653e\u4e34\u65f6\u8bfb\u5165\u7684\u6587\u4ef6\u3002

\r\n

 

\r\n

6\u3001/proc   --------- \u8fd9\u4e2a\u76ee\u5f55\u662f\u7cfb\u7edf\u5185\u5b58\u7684\u6620\u5c04\uff0c\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u8bbf\u95ee\u8fd9\u4e2a\u76ee\u5f55\u6765\u83b7\u53d6\u7cfb\u7edf\u4fe1\u606f\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u8fd9\u4e2a\u76ee\u5f55\u7684\u5185\u5bb9\u4e0d\u5728\u786c\u76d8\u4e0a\u800c\u662f\u5728\u5185\u5b58\u91cc\u3002

\r\n

 

\r\n

7\u3001/sbin \u3000    --------- s\u5c31\u662fSuper User\u7684\u610f\u601d\uff0c\u8fd9\u91cc\u5b58\u653e\u7684\u662f\u7cfb\u7edf\u7ba1\u7406\u5458\u4f7f\u7528\u7684\u7cfb\u7edf\u7ba1\u7406\u7a0b\u5e8f\uff0c\u5982\u7cfb\u7edf\u7ba1\u7406\u3001\u76ee\u5f55\u67e5\u8be2\u7b49\u5173\u952e\u547d\u4ee4\u6587\u4ef6\u3002

\r\n

 

\r\n

8\u3001/tmp         --------- \u8fd9\u4e2a\u76ee\u5f55\u662f\u7528\u6765\u5b58\u653e\u4e00\u4e9b\u4e34\u65f6\u6587\u4ef6\u7684\uff0c\u6240\u6709\u7528\u6237\u5bf9\u6b64\u76ee\u5f55\u90fd\u6709\u8bfb\u5199\u6743\u9650\u3002

\r\n

 

\r\n

9\u3001/home\u3000   --------- \u7528\u6237\u7684\u4e3b\u76ee\u5f55\u3002\u4e0b\u9762\u662f\u81ea\u5df1\u5b9a\u4e49\u7684\u7528\u6237\u540d\u7684\u6587\u4ef6\u5939\u3002\u6bcf\u4e2a\u7528\u6237\u7684\u8bbe\u7f6e\u6587\u4ef6\uff0c\u7528\u6237\u7684\u684c\u9762\u6587\u4ef6\u5939\uff0c\u8fd8\u6709\u7528\u6237\u7684\u6570\u636e\u90fd\u653e\u5728\u8fd9\u91cc\u3002

\r\n

 

\r\n

10\u3001/mnt  \u3000 --------- \u6b64\u76ee\u5f55\u4e3b\u8981\u662f\u4f5c\u4e3a\u6302\u8f7d\u70b9\u4f7f\u7528\u3002\u901a\u5e38\u5305\u62ec\u7cfb\u7edf\u5f15\u5bfc\u540e\u88ab\u6302\u8f7d\u7684\u6587\u4ef6\u7cfb\u7edf\u7684\u6302\u8f7d\u70b9\u3002\u5982\u6302\u8f7dWindows\u4e0b\u7684\u67d0\u4e2a\u5206\u533a\u3002

\r\n

 

\r\n

11\u3001/root      --------- \u7cfb\u7edf\u7ba1\u7406\u5458\uff08\u8d85\u7ea7\u7528\u6237\uff09\uff0c\u5373\u6839\u7528\u6237\u7684\u4e3b\u76ee\u5f55\u3002

\r\n

 

\r\n

12\u3001/srv\u3000    --------- \u5b58\u50a8\u7cfb\u7edf\u63d0\u4f9b\u7684\u670d\u52a1\u6570\u636e\u3002

\r\n

 

\r\n

13\u3001/usr\u3000--------- \u5305\u62ec\u4e0e\u7cfb\u7edf\u7528\u6237\u76f4\u63a5\u6709\u5173\u7684\u6587\u4ef6\u548c\u76ee\u5f55\u3002\u3000\u3000

\r\n

 

\r\n

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000/usr/X11R6    \u3000\u3000 \u5b58\u653eX-Windows\u7684\u76ee\u5f55\uff1b

\r\n

 

\r\n

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000/usr/games     \u3000\u3000\u5b58\u653e\u7740XteamLinux\u81ea\u5e26\u7684\u5c0f\u6e38\u620f\uff1b

\r\n

 

\r\n

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000/usr/bin       \u3000\u3000\u3000 \u7528\u6237\u548c\u7ba1\u7406\u5458\u7684\u6807\u51c6\u547d\u4ee4\uff1b

\r\n

 

\r\n

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000/usr/sbin  \u3000\u3000\u3000\u3000 \u5b58\u653eroot\u8d85\u7ea7\u7528\u6237\u4f7f\u7528\u7684\u7ba1\u7406\u7a0b\u5e8f\uff1b

\r\n

 

\r\n

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000/usr/doc \u3000\u3000\u3000\u3000   Linux\u6280\u672f\u6587\u6863\uff1b

\r\n

 

\r\n

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000/usr/include\u3000\u3000\u3000 \u6765\u5b58\u653eLinux\u4e0b\u5f00\u53d1\u548c\u7f16\u8bd1\u5e94\u7528\u7a0b\u5e8f\u6240\u9700\u8981\u7684\u5934\u6587\u4ef6\uff0cfor c \u6216\u8005c++\uff1b

\r\n

 

\r\n

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000/usr/lib   \u3000\u3000\u3000\u3000  \u5e94\u7528\u7a0b\u5e8f\u548c\u7a0b\u5e8f\u5305\u7684\u8fde\u63a5\u5e93\uff1b

\r\n

 

\r\n

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000/usr/local\u3000\u3000\u3000\u3000 \u7cfb\u7edf\u7ba1\u7406\u5458\u5b89\u88c5\u7684\u5e94\u7528\u7a0b\u5e8f\u76ee\u5f55\uff1b

\r\n

 

\r\n

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000/usr/man  \u3000\u3000\u3000\u3000\u5e2e\u52a9\u6587\u6863\u6240\u5728\u7684\u76ee\u5f55\uff1b

\r\n

 

\r\n

   \u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000/usr/src\u3000\u3000\u3000\u3000\u3000 Linux\u5f00\u653e\u7684\u6e90\u4ee3\u7801\uff1b

\r\n

 

\r\n

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000/usr/share\u3000\u3000      \u7528\u4e8e\u5b58\u653e\u4e00\u4e9b\u5171\u4eab\u7684\u6570\u636e\uff0c\u6bd4\u5982\u97f3\u4e50\u6587\u4ef6\u6216\u8005\u56fe\u6807\u7b49\u7b49

\r\n

 

\r\n

14\u3001/var \u3000   --------- \u7528\u4e8e\u5b58\u653e\u5f88\u591a\u4e0d\u65ad\u53d8\u5316\u7684\u6587\u4ef6\uff0c\u4f8b\u5982\u65e5\u5fd7\u6587\u4ef6\u7b49\u3002\u5305\u542b\u4e86\u65e5\u5fd7\u6587\u4ef6\u3001\u8ba1\u5212\u6027\u4efb\u52a1\u548c\u90ae\u4ef6\u7b49\u5185\u5bb9\u3002\u3000\u3000\u3000\u3000\u3000\u3000

\r\n

 

\r\n

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000/var/cache   \u5e94\u7528\u7a0b\u5e8f\u7f13\u5b58\u76ee\u5f55\uff1b

\r\n

 

\r\n

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000/var/crash   \u7cfb\u7edf\u9519\u8bef\u4fe1\u606f\uff1b

\r\n

 

\r\n

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000/var/games \u6e38\u620f\u6570\u636e\uff1b

\r\n

 

\r\n

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000/var/log   \u65e5\u5fd7\u6587\u4ef6\uff1b

\r\n

 

\r\n

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000/var/mail \u7535\u5b50\u90ae\u4ef6\uff1b

\r\n

 

\r\n

\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000/var/tmp   \u4e34\u65f6\u6587\u4ef6\u76ee\u5f55\uff1b

\r\n

 

\r\n

15\u3001/bin    \u3000---------bin\u662fbinary\u7684\u7f29\u5199\u3002\u8fd9\u4e2a\u76ee\u5f55\u6cbf\u88ad\u4e86UNIX\u7cfb\u7edf\u7684\u7ed3\u6784\uff0c\u5b58\u653e\u7740\u4f7f\u7528\u8005\u6700\u7ecf\u5e38\u4f7f\u7528\u7684\u547d\u4ee4\u3002\u4f8b\u5982cp\u3001ls\u3001cat\uff0c\u7b49\u7b49\u3002

\r\n"}, {"title": "scp\u547d\u4ee4\u4f7f\u7528", "desc": "\u4eca\u5929\u7684\u7834\u4e8b\u6bd4\u8f83\u591a\uff0c\u5199\u4e86\u8fd9\u4e48\u591a\u7bc7\u3002\u6c5f\u82cf\u7701\u7684\u4e00\u4e2a\u9879\u76ee\uff0c\u56e0\u4e3a\u670d\u52a1\u5668\u4e0amessagelog\u65e5\u5fd7\u6709CPU\u548c\u5185\u5b58\u62a5\u8b66\uff0c\u7532\u65b9\u6000\u7591\u670d\u52a1\u5668\u6709\u95ee\u9898\u8981\u6c42\u66f4\u6362\u670d\u52a1\u5668\u3002\u8fd9\u4e2a\u65b9\u6cd5\u5c31\u9002\u5408\u4ece\u4e00\u53f0linux\u4e3b\u673a\u590d\u5236\u6587\u4ef6\u5230\u53e6\u4e00\u53f0linux\u4e3b\u673a\u3002", "content": "

1.\u9700\u6c42\u80cc\u666f

\r\n

\u6c5f\u82cf\u7701\u7684\u4e00\u4e2a\u9879\u76ee\uff0c\u56e0\u4e3a\u670d\u52a1\u5668\u4e0amessagelog\u65e5\u5fd7\u6709CPU\u548c\u5185\u5b58\u62a5\u8b66\uff0c\u7532\u65b9\u6000\u7591\u670d\u52a1\u5668\u6709\u95ee\u9898\u8981\u6c42\u66f4\u6362\u670d\u52a1\u5668\u3002\u73b0\u6709\u670d\u52a1\u5668\u4e0a\u7684\u662f\u4e1a\u52a1\u9700\u8981\u642c\u8fc1\u5230\u65b0\u670d\u52a1\u5668\u4e0a\uff0c\u6570\u636e\u80af\u5b9a\u4e5f\u4e0d\u80fd\u4e22\u54af\u3002\u5148\u524d\u670d\u52a1\u5668\u5df2\u7ecf\u7528\u4e86\u4e03\u516b\u5e74\u4e86\uff0c\u867d\u7136\u6570\u636e\u4e0d\u7b97\u591a\uff0c\u6570\u636e\u4e5f\u53ea\u6709\u51e0\u5341\u4e2aG\u3002\u672c\u6765\u60f3\u7528 SFTP \u4e4b\u7c7b\u7684\u5de5\u5177\u5c06\u6570\u636e\u6253\u5305\uff0c\u4e0b\u8f7d\u5230\u81ea\u5df1\u7535\u8111\u5728\u4e0a\u4f20\u5230\u65b0\u670d\u52a1\u5668\u3002\u8fd9\u6837\u592a\u9ebb\u70e6\u4e86\u3002\u7528 WinSCP \u767b\u5f55\u4e24\u53f0\u670d\u52a1\u5668\u53f3\u51fb\u8981\u590d\u5236\u7684\u6587\u4ef6\u5939\u901a\u8fc7\u6253\u5f00\u65b0 shell \u628a\u6587\u4ef6\u590d\u5236\u5230\u65b0\u7684\u670d\u52a1\u5668\u4e0a\uff0c\u8fd9\u79cd\u65b9\u6cd5\u7701\u4e8b\u3002\u5b9e\u9645\u4e5f\u8fd8\u8981\u5148\u628a \u6587\u4ef6\u590d\u5236\u5230\u672c\u5730\u4e34\u65f6\u76ee\u5f55\u7136\u540e\u4e0a\u4f20\u5230\u65b0\u670d\u52a1\u5668\uff0c\u901f\u5ea6\u4e5f\u4e0d\u5feb\uff0c\u8fd8\u5360\u7528\u672c\u5730\u78c1\u76d8\u7a7a\u95f4\u3002

\r\n

\u6709\u6ca1\u6709\u66f4\u597d\u7684\u65b9\u6cd5\u5462\uff0c\u7528 rsync \u53ef\u4ee5\u5b9e\u73b0\u8fd8\u8981\u914d\u7f6e\u9ebb\u70e6\uff0c\u505a\u5b9e\u65f6\u540c\u6b65\u7528\u8fd9\u4e2a\u53ef\u4ee5\u3002\u6211\u8fd9\u4e2a\u590d\u5236\u5b8c\uff0c\u8001\u7684\u670d\u52a1\u5668\u5c31\u5173\u4e86\u4e0d\u7528\u4e86\uff0c\u6ca1\u5fc5\u8981\u3002\u65e0\u610f\u95f4\u5728\u7f51\u4e0a\u770b\u5230\u4e86 scp \u547d\u4ee4\u3002

\r\n

2.\u529f\u80fd\u8bf4\u660e

\r\n

scp \u5c31\u662fsecurity copy\uff0c\u7528\u4e8e\u5c06\u6587\u4ef6\u6216\u8005\u76ee\u5f55\u4ece\u4e00\u4e2aLinux\u7cfb\u7edf\u62f7\u8d1d\u5230\u53e6\u4e00\u4e2aLinux\u7cfb\u7edf\u4e0b\u3002scp\u4f20\u8f93\u6570\u636e\u7528\u7684\u662fSSH\u534f\u8bae\uff0c\u4fdd\u8bc1\u4e86\u6570\u636e\u4f20\u8f93\u7684\u5b89\u5168\uff0c\u5176\u683c\u5f0f\u5982\u4e0b\uff1a
\r\n\tscp \u8fdc\u7a0b\u7528\u6237\u540d@IP\u5730\u5740\uff1a\u6587\u4ef6\u7684\u7edd\u5bf9\u8def\u5f84 \u672c\u5730Linux\u7cfb\u7edf\u8def\u5f84
\r\n\tscp \u672c\u5730Linux\u7cfb\u7edf\u6587\u4ef6\u8def\u5f84 \u8fdc\u7a0b\u7528\u6237\u540d@IP\u5730\u5740\uff1a\u8fdc\u7a0b\u7cfb\u7edf\u6587\u4ef6\u7edd\u5bf9\u8def\u5f84\u540d
\r\n\tscp \u4f7f\u7528\u7b2c\u4e00\u79cd\u683c\u5f0f\u662f\u5c06\u8fdc\u7a0bLinux\u7cfb\u7edf\u4e0a\u7684\u67d0\u4e2a\u6587\u4ef6\u6216\u8005\u76ee\u5f55\u62f7\u8d1d\u5230\u672c\u5730Linux\u7cfb\u7edf\u4e0a\u6765\uff0c\u4f7f\u7528\u7b2c\u4e8c\u79cd\u662f\u5c06\u672c\u5730\u7684\u67d0\u4e2a\u6587\u4ef6\u6216\u8005\u76ee\u5f55\u62f7\u8d1d\u5230\u8fdc\u7a0bLinux\u7cfb\u7edf\u7684\u67d0\u4e2a\u8def\u5f84\u4e0b\u3002

\r\n

3.\u5177\u4f53\u4f7f\u7528

\r\n

\u5047\u8bbe\u4e24\u53f0\u670d\u52a1\u5668\uff1a\u670d\u52a1\u5668A\uff1a172.30.0.2 \u670d\u52a1\u5668B:172.30.0.3

\r\n

\u573a\u666f\u4e00\uff1a\u5c06\u670d\u52a1\u5668A\u4e0a\u9762\u7684 /usr/local/tomcat/conf/server.xml \u590d\u5236\u5230\u670d\u52a1\u5668B\u7684 /opt/tomcat/conf/ \u76ee\u5f55\u4e0b

\r\n

scp /usr/local/tomcat/conf/server.xml root@172.30.0.3:/opt/tomcat/conf/server.xml

\r\n

\u573a\u666f\u4e8c\uff1a\u5c06\u670d\u52a1\u5668A\u4e0a\u9762\u7684 /usr/local/tomcat/\u590d\u5236\u5230\u670d\u52a1\u5668B\u7684/opt/tomcat/

\r\n

scp -r /usr/local/tomcat root@172.30.0.3:/opt/tomcat

\r\n

\u573a\u666f\u4e00\u662f\u5355\u4e2a\u6587\u4ef6\u590d\u5236\uff0c\u573a\u666f\u4e8c\u662f\u590d\u5236\u6587\u4ef6\u5939\u3002\u5176\u4e2d\u7684 -r \u548c cp \u547d\u4ee4\u7684 -r \u662f\u4e00\u4e2a\u610f\u601d\u3002\u590d\u5236\u8fc7\u7a0b\u4e2d\u9700\u8981\u8f93\u5165 root \u7528\u6237\u7684\u5bc6\u7801\uff0c\u5f53\u7136\u524d\u63d0\u6761\u4ef6\u662f\u4f60\u7684\u4e24\u53f0\u670d\u52a1\u5668\u5728\u540c\u4e00\u4e2a\u7f51\u7edc\u73af\u5883\u4e0b\uff0c\u5c31\u662f\u540c\u4e00\u5185\u7f51\u6216\u8005\u662f\u53ef\u4ee5 ssh \u7684\u3002

\r\n"}, {"title": "\u7cfb\u7edf\u81ea\u5e26Wifi\u70ed\u70b9\u5f00\u542f", "desc": "\u4e2a\u4eba\u6709\u6d01\u7656\u4e0d\u559c\u6b22\u7528360\u4e4b\u7c7b\u7684wifi\u5171\u4eab\u5de5\u5177\uff0c\u81ea\u5df1\u7528netsh wlan start hostednetwork \u547d\u4ee4\u559c\u6b22\u624b\u52a8\u5f00\u542f\u3002", "content": "

1.\u67e5\u770b\u65e0\u7ebf\u7f51\u5361\u662f\u5426\u652f\u6301\u7f51\u7edc\u627f\u8f7d

\r\n

\u7ba1\u7406\u5458\u6743\u9650\u8fd0\u884c "CMD" \u8f93\u5165\u547d\u4ee4:

\r\n

netsh wlan show drivers

\r\n

\u663e\u793a\u5982\u4e0b\u4fe1\u606f

\r\n

C:\\Windows\\system32>netsh wlan show drivers
\r\n\t
\r\n\t\u63a5\u53e3\u540d\u79f0: WLAN
\r\n\t
\r\n\t    \u9a71\u52a8\u7a0b\u5e8f                  : Intel(R) Dual Band Wireless-AC 7265
\r\n\t    \u4f9b\u5e94\u5546                    : Intel Corporation
\r\n\t    \u63d0\u4f9b\u7a0b\u5e8f                  : Intel
\r\n\t    \u65e5\u671f                      : 2015/2/22
\r\n\t    \u7248\u672c                      : 17.15.0.5
\r\n\t    INF \u6587\u4ef6                  : C:\\Windows\\INF\\netwbw02.inf
\r\n\t    \u6587\u4ef6                      : 2 total
\r\n\t                                C:\\Windows\\system32\\DRIVERS\\Netwbw02.sys
\r\n\t                                C:\\Windows\\system32\\DRIVERS\\Netwfw02.dat
\r\n\t    \u7c7b\u578b                      : \u672c\u673a WLAN \u9a71\u52a8\u7a0b\u5e8f
\r\n\t    \u652f\u6301\u7684\u65e0\u7ebf\u7535\u7c7b\u578b          : 802.11b 802.11g 802.11n 802.11a 802.11ac
\r\n\t    \u652f\u6301 FIPS 140-2 \u6a21\u5f0f: \u662f
\r\n\t    \u652f\u6301 802.11w \u7ba1\u7406\u5e27\u4fdd\u62a4 : \u662f
\r\n\t    \u652f\u6301\u7684\u627f\u8f7d\u7f51\u7edc  : \u662f
\r\n\t    \u57fa\u7840\u7ed3\u6784\u6a21\u5f0f\u4e2d\u652f\u6301\u7684\u8eab\u4efd\u9a8c\u8bc1\u548c\u5bc6\u7801:
\r\n\t                                \u5f00\u653e\u5f0f             \u65e0

\r\n

......\u4e0b\u9762\u7701\u7565\u663e\u793a

\r\n

--------------------------------------------------------------------\u534e\u4e3d\u5206\u5272\u7ebf------------------------------------------------------------------------------

\r\n

\u4e3b\u8981\u770b\u7ea2\u8272\u90e8\u5206 \u652f\u6301\u7684\u627f\u8f7d\u7f51\u7edc  : \u662f \u8fd9\u91cc\u4e00\u5b9a\u8981\u662f\u3002

\r\n

2.\u5982\u679c\u4e3a\u5426\u600e\u4e48\u529e

\r\n

\u4e3a\u5426\u6709\u4e24\u79cd\u60c5\u51b5\uff1a1.\u8001\u7684\u65e0\u7ebf\u7f51\u5361\u786e\u5b9e\u4e0d\u652f\u6301\u30022.\u66f4\u6362\u5176\u4ed6\u7248\u672c\u65e0\u7ebf\u7f51\u5361\u9a71\u52a8\u5c1d\u8bd5\u3002

\r\n

\u5e38\u7528\u65b9\u6cd5\uff1a

\r\n

\u8bbe\u5907\u7ba1\u7406\u5668\u91cc\u627e\u5230\u65e0\u7ebf\u7f51\u5361\u70b9\u66f4\u65b0\u9a71\u52a8\u7a0b\u5e8f-\u6d4f\u89c8\u8ba1\u7b97\u673a\u4ee5\u67e5\u627e\u9a71\u52a8\u7a0b\u5e8f-\u4ece\u8ba1\u7b97\u673a\u7684\u8bbe\u5907\u9a71\u52a8\u5217\u8868\u4e2d\u9009\u53d6-\u9009\u62e9\u6700\u4e0b\u9762\u7684intel \u53cc\u9891\u9a71\u52a8\uff0c\u6ce8\u610f\u6570\u5b57\u7b7e\u540d\u8005\u5fc5\u987b\u662fmicrosoft windows\uff0c\u7136\u540e\u5c31\u53ef\u4ee5\u4e86\u3002

\r\n

3.\u8bbe\u7f6e\u65e0\u7ebf\u70ed\u70b9\u7684 SSID\u3001\u5bc6\u7801

\r\n

\u540c\u6837 CMD \u547d\u4ee4\u63d0\u793a\u7b26\u4e0b\u8f93\u5165:

\r\n

netsh wlan set hostednetwork mode=allow ssid=zhoudl key=88888888

\r\n

\u5176\u4e2d ssid \u8868\u793a\u65e0\u7ebf\u70ed\u70b9\u540d\u79f0\uff0ckey \u4ee3\u8868\u65e0\u7ebf\u5bc6\u7801\u53ef\u4ee5\u6839\u636e\u9700\u8981\u8bbe\u7f6e\u3002 key \u7684\u503c\u5fc5\u987b8\u4f4d\u4ee5\u4e0a\uff0c\u6240\u6709\u53c2\u6570\u4e0d\u9700\u8981\u5f15\u53f7\u3002

\r\n

4.\u5f00\u542f\u65e0\u7ebf\u7f51

\r\n

\u540c\u6837 CMD \u547d\u4ee4\u63d0\u793a\u7b26\u4e0b\u8f93\u5165:

\r\n

netsh wlan start hostednetwork

\r\n

\u8f93\u5165\u547d\u4ee4\u63d0\u793a "\u5df2\u542f\u52a8\u627f\u8f7d\u7f51\u7edc\u3002" \u8bf4\u660e\u865a\u62df\u65e0\u7ebf\u7f51\u5361\u542f\u52a8\u6210\u529f\u3002 \u5230 "\u63a7\u5236\u9762\u677f\\\u6240\u6709\u63a7\u5236\u9762\u677f\u9879\\\u7f51\u7edc\u548c\u5171\u4eab\u4e2d\u5fc3" \u67e5\u770b\u5e94\u8be5\u591a\u4e86\u4e00\u4e2a\u865a\u62df\u8fde\u63a5\u3002\u4e0a\u9762\u8fd8\u4f1a\u6709\u7b2c\u4e09\u5e03\u8bbe\u7f6e\u7684 ssid \u4fe1\u606f

\r\n

5.\u8bbe\u7f6e\u7f51\u7edc\u5171\u4eab

\r\n

\u5728 "\u63a7\u5236\u9762\u677f\\\u6240\u6709\u63a7\u5236\u9762\u677f\u9879\\\u7f51\u7edc\u548c\u5171\u4eab\u4e2d\u5fc3" \u4e2d\u9009\u62e9\u53ef\u4ee5\u4e0a\u7f51\u7684\u7f51\u5361\u9f20\u6807\u53f3\u51fb\u9009\u62e9 "\u5c5e\u6027" \u5f39\u51fa "\u672c\u5730\u8fde\u63a5" \u5c5e\u6027\u9009\u9879\u5361\uff08\u4e5f\u5c31\u662f\u8bbe\u7f6e IP \u5730\u5740\u548c DNS \u90a3\u4e2a\u754c\u9762\"\"\uff09 \u70b9\u51fb\u4e0a\u9762\u53f3\u4fa7\u7684 "\u5171\u4eab"\uff0c\u5728"\u5141\u8bb8\u5176\u4ed6\u7f51\u7edc\u7528\u6237\u901a\u8fc7\u6b64\u8ba1\u7b97\u673a\u7684 Internet \u8fde\u63a5\u6765\u8fde\u63a5" \u524d\u9762\u70b9\u4e0a\u52fe\uff0c\u5728\u4e0b\u9762\u7684 "\u5bb6\u5ead\u7f51\u7edc\u8fde\u63a5\uff08H\uff09"\u9009\u62e9\u6846\u4e2d\u9009\u62e9\u65b0\u751f\u6210\u7684\u865a\u62df\u7f51\u5361\u5e76\u4e14\u70b9\u51fb"\u786e\u5b9a"\u3002\u81f3\u6b64\u65e0\u7ebf\u7f51\u7edc\u8bbe\u7f6e\u5b8c\u6210

\r\n

6.\u7528\u624b\u673a\u6216\u8005\u5e73\u677f\u6d4b\u8bd5\u65e0\u7ebf\u7f51\u7edc

\r\n

\u6253\u5f00\u624b\u673a\u7684 “\u8bbe\u7f6e”----“WLAN”,\u641c\u7d22\u5e76\u4f7f\u7528\u4e0a\u9762\u8bbe\u7f6e\u7684\u5bc6\u7801\u8fde\u63a5\u65e0\u7ebf\u7f51\u7edc\u3002\u5e76\u6d4b\u8bd5\u8fde\u63a5\u6b63\u4e0d\u6b63\u5e38\u3002\u5982\u679c\u6709\u4e9b\u7a0b\u5e8f\u6b63\u5e38\u6709\u4e9b\u8fde\u63a5\u663e\u793a\u4e0d\u5168\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u5173\u95ed\u672c\u673a\u9632\u706b\u5899\u3002\u6216\u8005\u5728\u9632\u706b\u5899\u4e2d\u6dfb\u52a0\u5165\u7ad9\u89c4\u5219\u5c06\u865a\u62df\u7f51\u5361\u7684IP\u5730\u5740\u6bb5\uff08\u6211\u7684\u5730\u5740\u6bb5\u662f192.168.137.0\u300124\uff09\u52a0\u5165"\u672c\u5730IP\u4e00\u680f" \u5c06\u6240\u6709\u7a0b\u5e8f\u90fd\u6dfb\u52a0\u901a\u8fc7\u3002

\r\n

 

\r\n"}, {"title": "winodws2012\u684c\u9762\u9ed1\u5c4f", "desc": "\u4eca\u5929\u9047\u5230\u4e00\u4e2a\u5947\u602a\u7684\u95ee\u9898 windows2012 \u684c\u9762\u4e00\u56e2\u9ed1\uff0c\u8fdc\u7a0b\u8fde\u63a5\u4e5f\u662f\u9ed1\u7684\u3002\u8fd8\u4ee5\u4e3a\u662fexplorer \u6587\u4ef6\u8d44\u6e90\u7ba1\u7406\u5668\u88ab\u8c01\u5173\u4e86\u5462\u3002", "content": "

1.\u6545\u969c\u6392\u67e5

\r\n

\u8fdb\u4e0d\u4e86\u684c\u9762\uff0c\u53ea\u80fd\u6253\u5f00\u4efb\u52a1\u7ba1\u7406\u5668\uff0c\u70b9\u51fb "\u6587\u4ef6" ---- “\u8fd0\u884c\u4e00\u4e2a\u65b0\u4efb\u52a1” \u3002\u8f93\u5165 explorer.exe \u6ca1\u53cd\u5e94\uff0c \u7ee7\u7eed\u70b9\u4e0b\u9762\u7684"\u6d4f\u89c8"\u60f3\u624b\u5de5\u6253\u5f00 explorer.exe \u4f9d\u7136\u6ca1\u53cd\u5e94\u6ca1\u529e\u6cd5\u6253\u5f00\"\"\u3002

\r\n

\u8f93\u5165 "CMD" \u53ef\u4ee5\u987a\u5229\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff0c\u987a\u624b\u8f93\u5165 explorer.exe \u63d0\u793a\u627e\u4e0d\u5230\u7a0b\u5e8f\uff0c\u521d\u6b65\u6000\u7591 explorer.exe \u6587\u4ef6\u88ab\u6076\u610f\u5220\u9664\u3002

\r\n

\u901a\u8fc7\u6587\u4ef6\u5171\u4eab net use \u548c copy \u547d\u4ee4\u5c06\u5c40\u57df\u7f51\u5185\u5176\u4ed6\u4e3b\u673a\u7684 explorer.exe \u6587\u4ef6\u62f7\u8d1d c:\\windows\\explorer.exe c:\\windows\\syswow64\\explorer.exe \u4e24\u4e2a\u5bf9\u5e94\u7684\u76ee\u5f55\u3002\uff08\u5177\u4f53\u64cd\u4f5c\u65b9\u6cd5\u53ef\u53c2\u8003 \u547d\u4ee4\u63d0\u793a\u7b26\u4e0b\u5b9e\u73b0\u6587\u4ef6\u590d\u5236\uff09

\r\n

\u901a\u8fc7\u4e0a\u9762\u7684\u65b9\u6cd5\uff0c\u70b9\u51fb "\u6587\u4ef6" ---- “\u8fd0\u884c\u4e00\u4e2a\u65b0\u4efb\u52a1” \u3002\u8f93\u5165 explorer.exe \u6ca1\u53cd\u5e94\uff0c \u7ee7\u7eed\u70b9\u4e0b\u9762\u7684"\u6d4f\u89c8"\u60f3\u624b\u5de5\u6253\u5f00 explorer.exe \u4f9d\u7136\u6ca1\u53cd\u5e94\u6ca1\u529e\u6cd5\u6253\u5f00\u3002

\r\n

2.\u6000\u7591\u672c\u8eab\u684c\u9762\u56fe\u5f62\u88ab\u5378\u8f7d\u4e86

\r\n

\u5728 "CMD" \u4e0b\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u8fd8\u539f FULL \u6a21\u5f0f

\r\n

dism /online /enable-feature /all /featurename:servercore-fullserver /featurename:server-gui-shell /featurename:server-gui-mgmt

\r\n

\u8fd0\u884c\u4e2d\u63d0\u793a\u91cd\u542f\u670d\u52a1\u5668 \u8f93\u5165 "y" \u952e\uff0c\u670d\u52a1\u5668\u81ea\u52a8\u91cd\u542f\u3002

\r\n

3.\u77e5\u8bc6\u5ef6\u4f38

\r\n

\u7b49\u5f88\u957f\u4e00\u6bb5\u65f6\u95f4\u670d\u52a1\u5668\u91cd\u542f\u5b8c\u6210\u987a\u5229\u8fdb\u5165\u684c\u9762\uff0c\u5f00\u542f\u76f8\u5173\u670d\u52a1\u641e\u5b9a\u3002

\r\n

\u8fd8\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u5207\u6362\u56de\u6838\u5fc3\u6a21\u5f0f

\r\n

dism /online /disable-feature /all /featurename:servercore-fullserver

\r\n

\u5176\u4ed6\u7cfb\u7edf\u6ca1\u6d4b\u8bd5\u8fc7\uff0c\u4e5f\u61d2\u5f97\u6d4b\u8bd5\u4e86\u3002

\r\n"}, {"title": "\u4fee\u6539\u8fdc\u7a0b\u684c\u9762\u7aef\u53e3", "desc": "\u8fdc\u7a0b\u684c\u9762\u9ed8\u8ba4\u7aef\u53e33389\uff0c\u6709\u65f6\u5019\u7279\u6b8a\u60c5\u51b5\u9700\u8981\u4fee\u6539\u3002\u6bd4\u5982\u9632\u706b\u5899\u7ec4\u7ec7\uff0c\u5b89\u5168\u4e2d\u5fc3\u6709\u7279\u6b8a\u8981\u6c42\u7b49\u3002", "content": "

1.\u6253\u5f00\u6ce8\u518c\u8868

\r\n

\u5f00\u59cb\u83dc\u5355\u627e\u5230\u8fd0\u884c\u6216\u8005\u641c\u7d22\u8f93\u5165“ regedit ” \u6253\u5f00\u6ce8\u518c\u8868

\r\n

2.\u4fee\u6539\u7aef\u53e3

\r\n

\u627e\u5230\u6ce8\u518c\u8868\uff1a
\r\n\t
\r\n\t1\uff0c HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control\\Terminal Server\\Wds\\Repwd\\Tds\\Tcp
\r\n\t
\r\n\t2\uff0c HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\TerminalServer\\WinStations\\RDP-TCP
\r\n\t
\r\n\t\u6709\u4e00\u4e2a\uff1aPortNumber\uff0c\u53cc\u51fb\u6253\u5f00\uff0c\u4ee5\u5341\u8fdb\u5236\u663e\u793a\uff1a3389\uff0c\u4fee\u6539\u6210xxxx(\u6b64\u5904\u586b\u5199\u9700\u8981\u66f4\u6539\u7684\u7aef\u53e3\u53f7\uff09\uff0c\u4fdd\u5b58\u5237\u65b0\u6ce8\u518c\u8868\uff1b
\r\n\t 

\r\n

3.\u91cd\u542f\u7cfb\u7edf

\r\n

\u91cd\u65b0\u542f\u52a8 windows \u64cd\u4f5c\u7cfb\u7edf\u5e76\u4e14\u6d4b\u8bd5\u66f4\u6539\u662f\u5426\u751f\u6548

\r\n"}, {"title": "iptables\u914d\u7f6e\u8be6\u89e3", "desc": "ipbables \u662fLinux \u7cfb\u7edf\u4e0b\u7684 filter\u8868\u7684\u9632\u706b\u5899\uff0c\u4ee5\u524d\u4e3a\u4e86\u7701\u4e8b\u90fd\u662f\u76f4\u63a5service iptables stop \u5c06\u9632\u706b\u5899\u76f4\u63a5\u5173\u95ed\u7684\u3002", "content": "

\r\n\t1.\u4e3a\u4f55\u542f\u7528 iptables

\r\n

  \u6628\u5929\u670d\u52a1\u5668\uff08\u4e2d\u6807\u9e92\u9e9f\u7cfb\u7edf\uff09\u9047\u5230\u5947\u602a\u7684\u73b0\u8c61\uff0ceth2 \u7aef\u53e3\u53d1\u9001\u6d41\u91cf\u5f02\u5e38\u7684\u5927\u5cf0\u503c\u8fbe\u5230 6 7 \u767eMbps \u3002\u4e00\u76f4\u5c45\u9ad8\u4e0d\u4e0b\uff0c\u901a\u8fc7 netstat -anp \u67e5\u770b\u5f02\u5e38\u8fde\u63a5\u6839\u636ePID \u53f7\u8fdb\u5165\u76f8\u5173\u8fdb\u7a0b\u76ee\u5f55\u3002

\r\n

cd /proc/pid\u4e0b  \u8f93\u5165ls -ail \u67e5\u770bexe \u6307\u5411\u7684\u76ee\u5f55\uff0crm -rf \u5220\u9664\u5176\u6587\u4ef6\uff0c\u5220\u4e86\u4e00\u76f4\u6709\uff0c\u5220\u4e86\u51e0\u5341\u5206\u949f\u8fd8\u5728\u81ea\u52a8\u751f\u6210\uff0c\u65e0\u5948\u4e4b\u4e0b\u5f00\u542f iptables\u3002

\r\n

\r\n\t2.\u9632\u706b\u5899\u6982\u8981

\r\n

1\u3001\u9632\u706b\u5899\u5206\u7c7b
\r\n\t      \u2460\u5305\u8fc7\u6ee4\u9632\u706b\u5899(pack filtering)\u5728\u7f51\u7edc\u5c42\u5bf9\u6570\u636e\u5305\u8fdb\u884c\u9009\u62e9\u8fc7\u6ee4\uff0c\u91c7\u7528\u8bbf\u95ee\u63a7\u5236\u5217\u8868(Access control table\uff0dACL)\u68c0\u67e5\u6570\u636e\u6d41\u7684\u6e90\u5730\u5740\uff0c\u76ee\u7684\u5730\u5740\uff0c\u6e90\u548c\u76ee\u7684\u7aef\u53e3\uff0cIP\u7b49\u4fe1\u606f\u3002
\r\n\t      \u2461\u4ee3\u7406\u670d\u52a1\u5668\u578b\u9632\u706b\u5899
\r\n\t2\u3001iptables\u57fa\u7840
\r\n\t      \u2460\u89c4\u5219(rules)\uff1a\u7f51\u7edc\u7ba1\u7406\u5458\u9884\u5b9a\u4e49\u7684\u6761\u4ef6
\r\n\t      \u2461\u94fe(chains)\uff1a \u662f\u6570\u636e\u5305\u4f20\u64ad\u7684\u8def\u5f84
\r\n\t      \u2462\u8868(tables)\uff1a\u5185\u7f6e3\u4e2a\u8868filter\u8868\uff0cnat\u8868\uff0cmangle\u8868\u5206\u522b\u7528\u4e8e\u5b9e\u73b0\u5305\u8fc7\u6ee4\u7f51\u7edc\u5730\u5740\u8f6c\u6362\u548c\u5305\u91cd\u6784\u7684\u529f\u80fd
\r\n\t      \u2463filter\u8868\u662f\u7cfb\u7edf\u9ed8\u8ba4\u7684\uff0cINPUT\u8868(\u8fdb\u5165\u7684\u5305)\uff0cFORWORD(\u8f6c\u53d1\u7684\u5305)\uff0cOUTPUT(\u5904\u7406\u672c\u5730\u751f\u6210\u7684\u5305)\uff0cfilter\u8868\u53ea\u80fd\u5bf9\u5305\u8fdb\u884c\u6388\u53d7\u548c\u4e22\u5f03\u7684\u64cd\u4f5c\u3002
\r\n\t      \u2464nat\u8868(\u7f51\u7edc\u5730\u5740\u8f6c\u6362)\uff0cPREROUTING(\u4fee\u6539\u5373\u5c06\u5230\u6765\u7684\u6570\u636e\u5305)\uff0cOUTPUT(\u4fee\u6539\u5728\u8def\u7531\u4e4b\u524d\u672c\u5730\u751f\u6210\u7684\u6570\u636e\u5305)\uff0cPOSTROUTING(\u4fee\u6539\u5373\u5c06\u51fa\u53bb\u7684\u6570\u636e\u5305)
\r\n\t      \u2465mangle\u8868\uff0cPREROUTING\uff0cOUTPUT\uff0cFORWORD\uff0cPOSTROUTING\uff0cINPUT
\r\n\t3\u3001\u5176\u5b83
\r\n\t   iptables\u662f\u6309\u7167\u987a\u5e8f\u8bfb\u53d6\u89c4\u5219
\r\n\t   \u9632\u706b\u5899\u89c4\u5219\u7684\u914d\u7f6e\u5efa\u8bae
\r\n\t    \u2160 \u89c4\u5219\u529b\u6c42\u7b80\u5355
\r\n\t    \u2161 \u89c4\u5219\u7684\u987a\u5e8f\u5f88\u91cd\u8981
\r\n\t    \u2162 \u5c3d\u91cf\u4f18\u5316\u89c4\u5219
\r\n\t    \u2163 \u505a\u597d\u7b14\u8bb0
\r\n\t\u4e8c\u3001\u914d\u7f6e
\r\n\t1\u3001iptables\u547d\u4ee4\u683c\u5f0f
\r\n\t     iptables [-t \u8868] \uff0d\u547d\u4ee4 \u5339\u914d \u64cd\u4f5c \uff08\u5927\u5c0f\u5199\u654f\u611f\uff09
\r\n\t   \u52a8\u4f5c\u9009\u9879
\r\n\t     ACCEPT          \u63a5\u6536\u6570\u636e\u5305
\r\n\t     DROP             \u4e22\u5f03\u6570\u636e\u5305
\r\n\t     REDIRECT      \u5c06\u6570\u636e\u5305\u91cd\u65b0\u8f6c\u5411\u5230\u672c\u673a\u6216\u53e6\u4e00\u53f0\u4e3b\u673a\u7684\u67d0\u4e00\u4e2a\u7aef\u53e3\uff0c\u901a\u5e38\u529f\u80fd\u5b9e\u73b0\u900f\u660e\u4ee3\u7406\u6216\u5bf9\u5916\u5f00\u653e\u5185\u7f51\u7684\u67d0\u4e9b\u670d\u52a1
\r\n\t     SNAT             \u6e90\u5730\u5740\u8f6c\u6362
\r\n\t     DNAT             \u76ee\u7684\u5730\u5740\u8f6c\u6362
\r\n\t     MASQUERADE       IP\u4f2a\u88c5
\r\n\t     LOG               \u65e5\u5fd7\u529f\u80fd
\r\n\t2\u3001\u5b9a\u4e49\u89c4\u5219
\r\n\t   \u2460\u5148\u62d2\u7edd\u6240\u6709\u7684\u6570\u636e\u5305\uff0c\u7136\u540e\u518d\u5141\u8bb8\u9700\u8981\u7684\u6570\u636e\u5305
\r\n\t      iptalbes -P INPUT DROP
\r\n\t      iptables -P FORWARD DROP
\r\n\t      iptables -P OUTPUT ACCEPT
\r\n\t   \u2461\u67e5\u770bnat\u8868\u6240\u6709\u94fe\u7684\u89c4\u5219\u5217\u8868
\r\n\t      iptables -t nat -L
\r\n\t   \u2462\u589e\u52a0\uff0c\u63d2\u5165\uff0c\u5220\u9664\u548c\u66ff\u6362\u89c4\u5219
\r\n\t     iptables [-t \u8868\u540d] <-A|I|D|R> \u94fe\u540d [\u89c4\u5219\u7f16\u53f7] [-i|o \u7f51\u5361\u540d\u79f0] [-p \u534f\u8bae\u7c7b\u578b] [-s \u6e90ip|\u6e90\u5b50\u7f51] [--sport \u6e90\u7aef\u53e3\u53f7] [-d \u76ee\u7684IP|\u76ee\u6807\u5b50\u7f51] [--dport \u76ee\u6807\u7aef\u53e3\u53f7] [-j \u52a8\u4f5c]
\r\n\t    \u53c2\u6570\uff1a-A \u589e\u52a0
\r\n\t               -I \u63d2\u5165
\r\n\t               -D \u5220\u9664
\r\n\t               -R \u66ff\u6362

\r\n

\r\n\t3.\u914d\u7f6e\u4f8b\u5b50

\r\n

\u2460iptables -t filter -A INPUT -s 192.168.1.5 -i eth0 -j DROP
\r\n\t\u7981\u6b62IP\u4e3a192.168.1.5\u7684\u4e3b\u673a\u4eceeth0\u8bbf\u95ee\u672c\u673a\u2461iptables -t filter -I INPUT 2 -s 192.168.5.0/24 -p tcp --dport 80 -j DROP
\r\n\t\u7981\u6b62\u5b50\u7f51192.168.5.0\u8bbf\u95eeweb\u670d\u52a1\u2462iptables -t filter -I INPUT 2 -s 192.168.7.9 -p tcp --dport ftp -j DROP
\r\n\t\u7981\u6b62IP\u4e3a192.168.7.9\u8bbf\u95eeFTP\u670d\u52a1
\r\n\t\u2461iptables -t filter -L INPUT
\r\n\t\u67e5\u770bfilter\u8868\u4e2dINPUT\u94fe\u7684\u89c4\u5219
\r\n\t\u2462iptables -t nat -F
\r\n\t\u5220\u9664nat\u8868\u4e2d\u7684\u6240\u6709\u89c4\u5219
\r\n\t\u2463iptables -I FORWARD -d wwww.playboy.com -j DROP
\r\n\t\u7981\u6b62\u8bbf\u95eewww.playboy.com\u7f51\u7ad9
\r\n\t\u2464iptables -I FORWARD -s 192.168.5.23 -j DROP
\r\n\t\u7981\u6b62192.168.5.23\u4e0a\u7f51

\r\n

\r\n\t4.web\u670d\u52a1\u5668\u914d\u7f6e\u5efa\u8bae

\r\n

\u2460\u7981\u6b62\u6240\u6709\u5305\u901a\u8fc7

\r\n

[root@tp ~]# iptables -P INPUT DROP
\r\n\t
\r\n\t[root@tp ~]# iptables -P OUTPUT DROP
\r\n\t
\r\n\t[root@tp ~]# iptables -P FORWARD DROP

\r\n

\u2461\u6dfb\u52a0\u5e38\u7528\u7aef\u53e3

\r\n

\u4e3a\u4e86\u80fd\u91c7\u7528\u8fdc\u7a0bSSH\u767b\u9646,\u6211\u4eec\u8981\u5f00\u542f22\u7aef\u53e3.
\r\n\t
\r\n\t[root@tp ~]# iptables -A INPUT -p tcp --dport 22 -j ACCEPT
\r\n\t
\r\n\t[root@tp ~]# iptables -A OUTPUT -p tcp --sport 22 -j ACCEPT (\u6ce8:\u8fd9\u4e2a\u89c4\u5219,\u5982\u679c\u4f60\u628aOUTPUT \u8bbe\u7f6e\u6210DROP\u7684\u5c31\u8981\u5199\u4e0a\u8fd9\u4e00\u90e8,\u597d\u591a\u4eba\u90fd\u662f\u671b\u4e86\u5199\u8fd9\u4e00\u90e8\u89c4\u5219\u5bfc\u81f4,\u59cb\u7ec8\u65e0\u6cd5SSH.\uff09

\r\n

\u5982\u679c\u505a\u4e86WEB\u670d\u52a1\u5668,\u5f00\u542f80\u7aef\u53e3.
\r\n\t
\r\n\t[root@tp ~]# iptables -A INPUT -p tcp --dport 80 -j ACCEPT

\r\n

[root@tp ~]# iptables -A OUTPUT -p tcp --sport 80 -j ACCEPT

\r\n

\u5982\u679c\u4f60\u8fd8\u505a\u4e86\u5176\u4ed6\u7684\u670d\u52a1\u5668,\u9700\u8981\u5f00\u542f\u54ea\u4e2a\u7aef\u53e3,\u7167\u5199\u5c31\u884c\u4e86.

\r\n

\r\n\t5.\u5e38\u7528\u547d\u4ee4

\r\n

(1)\u67e5\u770b\u672c\u673a\u5173\u4e8eIPTABLES\u7684\u8bbe\u7f6e\u60c5\u51b5
\r\n\t
\r\n\t[root@tp ~]# iptables -L -n

\r\n

(2)\u6e05\u9664\u539f\u6709\u89c4\u5219.
\r\n\t
\r\n\t\u4e0d\u7ba1\u4f60\u5728\u5b89\u88c5linux\u65f6\u662f\u5426\u542f\u52a8\u4e86\u9632\u706b\u5899,\u5982\u679c\u4f60\u60f3\u914d\u7f6e\u5c5e\u4e8e\u81ea\u5df1\u7684\u9632\u706b\u5899,\u90a3\u5c31\u6e05\u9664\u73b0\u5728filter\u7684\u6240\u6709\u89c4\u5219.
\r\n\t
\r\n\t[root@tp ~]# iptables -F     // \u6e05\u9664\u9884\u8bbe\u8868filter\u4e2d\u7684\u6240\u6709\u89c4\u5219\u94fe\u7684\u89c4\u5219
\r\n\t[root@tp ~]# iptables -X     // \u6e05\u9664\u9884\u8bbe\u8868filter\u4e2d\u4f7f\u7528\u8005\u81ea\u5b9a\u94fe\u4e2d\u7684\u89c4\u5219

\r\n

(3)\u4fdd\u5b58\u914d\u7f6e.

\r\n

[root@tp ~]# /etc/rc.d/init.d/iptables save

\r\n

\u8fd9\u6837\u5c31\u53ef\u4ee5\u5199\u5230/etc/sysconfig/iptables\u6587\u4ef6\u91cc\u4e86.\u5199\u5165\u540e\u8bb0\u5f97\u628a\u9632\u706b\u5899\u91cd\u8d77\u4e00\u4e0b,\u624d\u80fd\u8d77\u4f5c\u7528.

\r\n

(4)\u91cd\u542f\u9632\u706b\u5899

\r\n

[root@tp ~]# service iptables restart

\r\n

 

\r\n

 

\r\n

 

\r\n"}, {"title": "Windows\u7cfb\u7edf\u4e0b\u91cd\u542fTomcat\u7684\u4e09\u79cd\u65b9\u6848", "desc": "\u6709\u65f6\u5019\u9047\u5230\u7f51\u7edc\u6ce2\u52a8\uff0c\u6216\u8005\u662fTomcat\u5185\u5b58\u6ea2\u51fa\u7b49\u95ee\u9898\uff0c\u5bfc\u81f4\u4e1a\u52a1\u4e2d\u65ad\u3002\u91cd\u542fTomcat\u540e\u4e1a\u52a1\u6062\u590d\u6b63\u5e38\u3002\u7f51\u4e0a\u627e\u5230\u4e86Windows\u4e0b\u7684\u4e09\u79cd\u89e3\u51b3\u65b9\u6848\uff0c\u6bd4\u8f83\u7c97\u7565\u4f46\u4e5f\u8fd8\u9002\u7528\u3002", "content": "

Tomcat \u7f3a\u9677\uff0cTomcat \u5728\u4f7f\u7528\u4e00\u6bb5\u65f6\u95f4\u540e\u4f1a\u51fa\u73b0\u5185\u5b58\u6cc4\u6f0f\u73b0\u8c61\uff0c\u4ece\u800c\u5bfc\u81f4\u7cfb\u7edf\u4e0d\u80fd\u767b\u5f55\u3002\u5efa\u8bae\u8bbe\u7f6e\u5b9a\u65f6\u4efb\u52a1\u6bcf\u5468\u91cd\u65b0\u542f\u52a8\u4e00\u6b21 Tomcat\uff0c\u6216\u8005\u8d2d\u4e70\u4e13\u4e1a\u4e2d\u95f4\u4ef6\uff08\u4f8b\u5982OracleAS\u3001Tongweb\u7b49)\u3002

\r\n

\r\n\t1. \u628atomcat\u8bbe\u7f6e\u6210\u7cfb\u7edf\u670d\u52a1(\u5177\u4f53\u65b9\u6cd5\u5df2\u6709\u76f8\u5173\u6587\u7ae0)

\r\n

\u5c31\u53ef\u4ee5\u5728\u670d\u52a1\u5c5e\u6027\uff08\u8fd9\u4e2a\u5728\u63a7\u5236\u9762\u677f--\u7ba1\u7406\u5de5\u5177--\u670d\u52a1\uff09\u91cc\u9762\u627e\u5230 Tomcat \u7684\u670d\u52a1\u53cc\u51fb ,\u5728\u8df3\u51fa\u7684\u5c5e\u6027\u9009\u9879\u5361\u91cc\uff0c\u627e\u5230\u6062\u590d\u9009\u9879\u9009\u62e9\u7b2c\u4e00\u6b21\u5931\u8d25\u540e,\u91cd\u65b0\u542f\u52a8\u670d\u52a1,\u7b2c\u4e8c\u6b21....,......\u65f6\u95f4\u8bbe\u7f6e\u81f3\u5c11\u4e00\u5206\u949f\u7b49\u8bbe\u7f6e\u3002

\r\n

\r\n\t2.\u53ef\u4ee5\u7528webmonitor\u7c7b\u4f3c\u7684\u76d1\u63a7\u8f6f\u4ef6  

\r\n

  \u4e00\u65e6\u76d1\u63a7\u5230tomcat   \u6b7b\u4e86\uff0c\u6216\u8005\u6570\u636e\u5e93\u8fde\u63a5\u65ad\u4e86\u5c31\u8ba9\u8f6f\u4ef6\u63a7\u5236tomcat\u81ea\u52a8\u91cd\u542f

\r\n

\r\n\t3.\u7f16\u5199 vbs \u811a\u672c

\r\n

\u4e0b\u9762\u662f\u4e00\u6bb5vbs\u811a\u672c\uff0c\u628a\u5b83\u4fdd\u5b58\u6210\u6587\u4ef6(\u540e\u7f00\u540d\u4e3avbs)\u540e\u53cc\u51fb\u8fd0\u884c\u5c31\u884c\u4e86 (\u8fd9\u6761\u4e0d\u597d\u7528\uff0c\u9700\u8981\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c)

\r\n

  on   error   resume   Next    
\r\n\t   
\r\n\t  Dim   a    
\r\n\t  a   =   True    
\r\n\t   
\r\n\t  set   WshShell   =   WScript.CreateObject("WScript.Shell")    
\r\n\t   
\r\n\t  Do   While   a    
\r\n\t  set   http   =   CreateObject("Microsoft.XMLHTTP")    
\r\n\t  http.open   "POST","http://www.163.com(\u8fd9\u91cc\u653e\u4f60\u7f51\u7ad9\u7684\u9875\u9762\u5730\u5740)",false    
\r\n\t  http.send    
\r\n\t  if   http.Status   >   300   then    
\r\n\t  WshShell.Run("net   stop   tomcat5")    
\r\n\t  WScript.Sleep(10000)    
\r\n\t  WshShell.Run("net   start   tomcat5")    
\r\n\t  end   if    
\r\n\t  WScript.Sleep(30000)    
\r\n\t  loop

\r\n

\r\n\t4.\u7f16\u5199\u542f\u52a8\u3001\u5173\u95ed\u811a\u672c\u5b9a\u5236\u4efb\u52a1\u8ba1\u5212\uff0c\u5b9a\u65f6\u542f\u52a8 Tomcat

\r\n

\u8fd9\u4e2a\u542f\u52a8\u65b9\u6cd5\u4e5f\u9700\u8981\u628a Tomcat \u8bbe\u7f6e\u6210\u670d\u52a1(\u5177\u4f53\u65b9\u6cd5\u7ad9\u5185\u5df2\u6709\u76f8\u5173\u6587\u7ae0)

\r\n

(1)\u7f16\u5199\u542f\u52a8\u811a\u672c\uff0c\u811a\u672c\u540d\u79f0\u4e3aTomcat_startup.bat\uff0c\u811a\u672c\u5185\u5bb9\u5982\u4e0b(\u811a\u672c\u5f53\u4e2d\u7684 Tomcat \u76ee\u5f55\u8981\u6362\u6210\u81ea\u5df1\u7684\u5b89\u88c5\u76ee\u5f55)\uff1a

\r\n

@echo off
\r\n\techo \u6267\u884c\u5f00\u59cb\u65f6\u95f4
\r\n\tdate/t
\r\n\ttime/t
\r\n\techo ***********************************************
\r\n\t 
\r\n\techo \u6e05\u9664Tomcat\u7f13\u5b58\u6587\u4ef6*******************************
\r\n\techo \u6b63\u5728\u6e05\u9664\u7f13\u5b58\u6587\u4ef6Tomcat\\work\\Catalina\\\uff0c\u8bf7\u7a0d\u7b49......
\r\n\trd /q/s " D:\\tomcat-6.0.29\\work\\Catalina"
\r\n\techo \u6e05\u9664Tomcat\u7f13\u5b58\u6587\u4ef6\u5b8c\u6210\uff01
\r\n\techo ***********************************************
\r\n\t 
\r\n\techo \u6b63\u5728\u5f00\u542fTomcat\u670d\u52a1!
\r\n\tnet start Tomcat6
\r\n\techo \u5f00\u542fTomcat\u670d\u52a1\u6210\u529f!
\r\n\techo ***********************************************
\r\n\techo \u7ed3\u675f\u65f6\u95f4
\r\n\tdate/t
\r\n\ttime/t
\r\n\techo ***********************************************

\r\n

(2)\u7f16\u5199\u505c\u6b62\u811a\u672c\uff0c\u811a\u672c\u540d\u79f0\u4e3aTomcat_shutdown.bat\uff0c\u811a\u672c\u5185\u5bb9\u5982\u4e0b\uff1a

\r\n

@echo off
\r\n\techo \u6267\u884c\u5f00\u59cb\u65f6\u95f4
\r\n\tdate/t
\r\n\ttime/t
\r\n\techo ***********************************************
\r\n\techo \u6b63\u5728\u5173\u95edTomcat\u670d\u52a1\uff0c\u8bf7\u7a0d\u7b49......
\r\n\tnet stop Tomcat6
\r\n\techo \u5173\u95edTomcat\u670d\u52a1\u5b8c\u6210\uff01
\r\n\techo ***********************************************
\r\n\techo ***********************************************
\r\n\techo \u7ed3\u675f\u65f6\u95f4
\r\n\tdate/t
\r\n\ttime/t
\r\n\techo ***********************************************

\r\n

(3)\u5236\u5b9a\u4efb\u52a1\u8ba1\u5212\uff0c\u5b9a\u65f6\u81ea\u52a8\u91cd\u542ftomcat

\r\n

\u6dfb\u52a0\u5173\u95edTomcat\u670d\u52a1\u7684\u4efb\u52a1\u8ba1\u5212\uff1a\u5f00\u59cb——\u63a7\u5236\u9762\u677f——\u4efb\u52a1\u8ba1\u5212——\u6dfb\u52a0\u4efb\u52a1\u8ba1\u5212
\r\n\t
\r\n\t\u8bbe\u7f6e\u597d\u4efb\u52a1\u8ba1\u5212\u7684\u542f\u52a8\u65f6\u95f4\uff0c\u4e00\u822c\u5efa\u8bae\u5728\u4e0b\u73ed\u4ee5\u540e\uff0c\u6ca1\u6709\u4eba\u4f7f\u7528\u7cfb\u7edf\u7684\u65f6\u5019\u8fdb\u884c\uff0c\u8bbe\u7f6e\u597d\u4efb\u52a1\u8ba1\u5212\u8fd0\u884c\u7684\u661f\u671f\u65e5\u5b50\u3002
\r\n\t\u5728\u5f80\u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u4ee5\u524d\uff0c\u6700\u597d\u5148\u627e\u53f0\u6d4b\u8bd5\u673a\u8fdb\u884c\u6d4b\u8bd5\u9a8c\u8bc1\uff0c\u907f\u514d\u5bf9\u670d\u52a1\u5668\u9020\u6210\u5f71\u54cd\u3002\u6ce8\u610f\u505a\u6b64\u9879\u64cd\u4f5c\u7684\u65f6\u5019\uff0c\u4e00\u5b9a\u8981\u5728\u5468\u672b\uff0c\u6216\u8005\u662f\u4e0b\u73ed\u65f6\u95f4\u8fdb\u884c\u3002

\r\n

 

\r\n

 

\r\n"}, {"title": "linux\u4e0bJAVA\u7248\u672c\u5207\u6362", "desc": "LINUX\u7cfb\u7edf\u5b89\u88c5\u7684\u65f6\u5019\u6709\u7684\u9ed8\u8ba4\u81ea\u5e26OPENJDK\u7248\u672c\u7684JAVA\u73af\u5883\u3002\u6216\u8005\u8981\u5347\u7ea7JDK\u53c8\u4e0d\u6562\u628a\u539f\u6765\u7684\u7248\u672c\u5378\u8f7d\u4e86\uff0c\u8fd9\u79cd\u60c5\u51b5\u4e0b\u5c31\u9700\u8981\u5207\u6362JDK\u7248\u672c\u4e86\u3002", "content": "

\u8be5\u66f4JDK\u7248\u672c\u547d\u4ee4

\r\n

# update-alternatives --config java

\r\n

There is 1 program that provides 'java'.
\r\n\t
\r\n\t  Selection    Command
\r\n\t-----------------------------------------------
\r\n\t*+ 1           /usr/java/jdk1.8.0_60/jre/bin/java
\r\n\t
\r\n\tEnter to keep the current selection[+], or type selection number:

\r\n

\u8fd9\u91cc\u663e\u793a\u6211\u53ea\u5b89\u88c5\u4e86JDK1.8\u5982\u679c\u673a\u5668\u4e0a\u5b89\u88c5\u4e86\u591a\u4e2a\u7248\u672c\u5c31\u663e\u793a\u591a\u4e2a\uff0c\u7136\u540e\u5728 type selection number: \u8f93\u5165\u524d\u9762\u7684\u6570\u5b57\u5373\u53ef\u66f4\u6539 JDK \u7248\u672c

\r\n

\u67e5\u770b JDK \u7248\u672c

\r\n

# java -version
\r\n\tjava version "1.8.0_60"
\r\n\tJava(TM) SE Runtime Environment (build 1.8.0_60-b27)
\r\n\tJava HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

\r\n

\u6b64\u547d\u4ee4\u662f LINUX \u7cfb\u7edf\u4e0b\u7684\u547d\u4ee4\u5728 WINDOWS \u7cfb\u7edf\u4e0b\u8f93\u5165\u65e0\u6548\uff0c\u5982\u60f3\u66f4\u6539 WINDOWS \u4e0b JDK \u73af\u5883\u53d8\u91cf\u8bf7\u67e5\u770b WINDOWNS \u4e0b JAVA \u73af\u5883\u53d8\u91cf\u914d\u7f6e\u3002

\r\n"}, {"title": "windows\u7cfb\u7edf\u4e0bJAVA\u73af\u5883\u53d8\u91cf\u914d\u7f6e", "desc": "Windows\u7cfb\u7edfJDK\u73af\u5883\u914d\u7f6e\u548cLINUX\u7cfb\u7edf\u4e0b\u914d\u7f6eJDK\u73af\u5883\u7684\u539f\u7406\u662f\u4e00\u6837\u7684\u4e3b\u8981\u90fd\u662f\u914d\u7f6eJAVA_HOME\u3001PATH\u3001CLASSPATH\u4e09\u4e2a\u53d8\u91cf\u3002", "content": "

JAVA \u73af\u5883\u53d8\u91cf\u914d\u7f6e

\r\n

Windows \u7cfb\u7edf JDK \u73af\u5883\u914d\u7f6e\u548c LINUX \u7cfb\u7edf\u4e0b\u914d\u7f6e JDK \u73af\u5883\u7684\u539f\u7406\u662f\u4e00\u6837\u7684\u4e3b\u8981\u90fd\u662f\u914d\u7f6e JAVA_HOME\u3001PATH\u3001CLASSPATH \u4e09\u4e2a\u53d8\u91cf\u3002

\r\n

\u5177\u4f53\u7684\u8bbe\u5b9a\u65b9\u6cd5: \u53f3\u952e\u70b9\u51fb\u6211\u7684\u7535\u8111->\u5c5e\u6027->\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e->\u9ad8\u7ea7->\u73af\u5883\u53d8\u91cf\uff0c\u4fee\u6539\u4e0b\u9762\u7cfb\u7edf\u53d8\u91cf\u90a3\u4e2a\u6846\u91cc\u7684\u503c\u5c31\u884c\u4e86\uff08\u5176\u4e2d JAVA_HOME \u3001CLASSPATH \u9700\u8981\u65b0\u5efa\uff09\u3002

\r\n

JAVA_HOME \u6307\u5411\u7684\u662f JDK \u7684\u5b89\u88c5\u8def\u5f84\uff0c\u5982\u6211\u7684\u5b89\u88c5\u8def\u5f84 C:\\Program Files\\Java\\jdk1.8.0_66\uff0c\u5728\u8fd9\u8def\u5f84\u4e0b\u4f60\u5e94\u8be5\u80fd\u591f\u627e\u5230 bin\u3001lib \u7b49\u76ee\u5f55\u3002

\r\n

 PATH \u73af\u5883\u53d8\u91cfWindows\u91cc\u9762\u539f\u6765\u5c31\u6709\uff0c\u53ea\u9700\u4fee\u6539\u4e00\u4e0b\uff0c\u4f7f\u4ed6\u6307\u5411 JDK \u7684 bin \u76ee\u5f55\uff0c\u8fd9\u6837\u4f60\u5728\u63a7\u5236\u53f0\u4e0b\u9762\u7f16\u8bd1\u3001\u6267\u884c\u7a0b\u5e8f\u65f6\u5c31\u4e0d\u9700\u8981\u518d\u952e\u5165\u4e00\u5927\u4e32\u8def\u5f84\u4e86\u3002\u8bbe\u7f6e\u65b9\u6cd5\u662f\u4fdd\u7559\u539f\u6765\u7684PATH\u7684\u5185\u5bb9\uff0c\u6700\u524d\u9762\u52a0\u4e0a %JAVA_HOME%\\bin;

\r\n

\u6ce8\u610f\u90a3\u4e2a\u5206\u53f7\u4e0d\u80fd\u5c11\u800c\u4e14\u5fc5\u987b\u662f\u82f1\u6587\u72b6\u6001\u4e0b\u7684

\r\n

\u65b0\u5efa CLASSPATH \u53d8\u91cf\u590d\u5236\u4e0b\u9762\u7684\u503c\u5373\u53ef

\r\n

.;%Java_Home%\\bin;%Java_Home%\\lib\\dt.jar;%Java_Home%\\lib\\tools.jar

\r\n

\u68c0\u67e5 JDK \u914d\u7f6e\u662f\u5426\u6210\u529f

\r\n

\u6253\u5f00 CMD \u547d\u4ee4\u63d0\u793a\u7b26\u8f93\u5165 java -version \u53ef\u4ee5\u67e5\u770b JDK \u7248\u672c\uff0c\u663e\u793a\u5982\u4e0b\u4fe1\u606f\u8868\u793a\u6210\u529f

\r\n

C:\\Users\\Centos>java -version
\r\n\tjava version "1.8.0_66"
\r\n\tJava(TM) SE Runtime Environment (build 1.8.0_66-b18)
\r\n\tJava HotSpot(TM) 64-Bit Server VM (build 25.66-b18, mixed mode)

\r\n

\u5173\u4e8e\u4fee\u6539 JDK \u7248\u672c

\r\n

\u5982\u679c\u9879\u76ee\u9700\u8981\u60f3\u4fee\u6539 JDK \u7248\u672c\uff0c Windows \u7cfb\u7edf\u4e0b\u5b89\u88c5\u4f60\u9700\u8981\u7684 JDK \u7248\u672c\uff0c\u627e\u5230\u5176\u5b89\u88c5\u8def\u5f84\u3002\u4fee\u6539 JAVA_HOME \u53d8\u91cf\u7684\u503c\u5373\u53ef\u5b8c\u6210 JAVA \u7248\u672c\u5207\u6362\u3002\u6709\u4e9b\u65f6\u5019\u53ef\u80fd\u9700\u8981\u91cd\u542f\u7535\u8111\u7cfb\u7edf\u3002

\r\n

 

\r\n"}, {"title": "VMware\u5b89\u88c5\u7684\u865a\u62df\u673a\u6302\u8d77\u540e\u7cfb\u7edf\u65f6\u95f4\u548c\u786c\u4ef6\u65f6\u95f4\u4e0d\u540c\u6b65\u7684\u89e3\u51b3\u65b9\u6cd5", "desc": "linux\u7cfb\u7edf\u65f6\u949f\u6709\u4e24\u4e2a\uff0c\u4e00\u4e2a\u662f\u786c\u4ef6\u65f6\u949f\uff0c\u5373BIOS\u65f6\u95f4\uff0c\u5c31\u662f\u6211\u4eec\u8fdb\u884cCMOS\u8bbe\u7f6e\u65f6\u770b\u5230\u7684\u65f6\u95f4\uff0c\u53e6\u4e00\u4e2a\u662f\u7cfb\u7edf\u65f6\u949f\uff0c\u662flinux\u7cfb\u7edfKernel\u65f6\u95f4\u3002\u5f53Linux\u542f\u52a8\u65f6\uff0c\u7cfb\u7edfKernel\u4f1a\u53bb\u8bfb\u53d6\u786c\u4ef6\u65f6\u949f\u7684\u8bbe\u7f6e\uff0c\u7136\u540e\u7cfb\u7edf\u65f6\u949f\u5c31\u4f1a\u72ec\u7acb\u4e8e\u786c\u4ef6\u8fd0\u4f5c\u3002\u6709\u65f6\u6211\u4eec\u4f1a\u53d1\u73b0\u7cfb\u7edf\u65f6\u949f\u548c\u786c\u4ef6\u65f6\u949f\u4e0d\u4e00\u81f4\uff0c\u56e0\u6b64\u9700\u8981\u6267\u884c\u65f6\u95f4\u540c\u6b65\u3002", "content": "

\r\n\t\u95ee\u9898\u63cf\u8ff0

\r\n

\u8fc7\u5e74\u671f\u95f4\u7531\u4e8e\u653e\u5047\u9700\u8981\u52a0\u529e\u516c\u5ba4\u65ad\u7535\uff0c\u53ea\u80fd\u5173\u95ed\u6d4b\u8bd5\u670d\u52a1\u5668ESXI.\u4e3a\u4e86\u7701\u5e02\u628a\u4e0b\u9762\u7684\u865a\u62df\u673a\u5c31\u76f4\u63a5\u6302\u8d77\u5e76\u6ca1\u6709\u5173\u673a\u3002\u653e\u5047\u5f52\u6765\u53d1\u73b0\u865a\u62df\u673a\u4e0a\u7684\u7cfb\u7edf\u65f6\u95f4\u5ef6\u8fdf\u4e86\u51e0\u5929\u3002

\r\n

\u89e3\u51b3\u65b9\u6cd5

\r\n

\u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u65f6\u95f4

\r\n

[root@oracle11G ~]# date
\r\n\tMon Jan 30 19:53:21 CST 2017

\r\n

[root@oracle11G ~]# uptime
\r\n\t 19:52:57 up 14 days,  5:49,  1 user,  load average: 0.00, 0.00, 0.00

\r\n

\u670d\u52a1\u5668\u5f53\u524d\u65f6\u95f4\u6709\u5ef6\u8fdf

\r\n

\u67e5\u770b\u5f53\u524d\u786c\u4ef6\u65f6\u95f4

\r\n

[root@oracle11G ~]# hwclock --show
\r\n\tTue 07 Feb 2017 04:34:17 PM CST  -0.633056 seconds

\r\n

\u53d1\u73b0\u786c\u4ef6\u65f6\u95f4\u662f\u5bf9\u7684\uff0c\u4e0b\u9762\u7528\u786c\u4ef6\u65f6\u95f4\u540c\u6b65\u7cfb\u7edf\u65f6\u95f4

\r\n

\u786c\u4ef6\u65f6\u95f4\u540c\u6b65\u7cfb\u7edf\u65f6\u95f4

\r\n

[root@oracle11G ~]# hwclock --hctosys

\r\n

\u518d\u6b21\u67e5\u770b\u7cfb\u7edf\u65f6\u95f4\u6062\u590d\u6b63\u5e38

\r\n

[root@oracle11G ~]# date
\r\n\tTue Feb  7 16:35:37 CST 2017

\r\n

\u95ee\u9898\u5ef6\u4f38

\r\n

\u786c\u4ef6\u65f6\u949f\u4e0e\u7cfb\u7edf\u65f6\u949f\u540c\u6b65\uff1a
\r\n\t
\r\n\t# hwclock --hctosys \u6216\u8005 # clock --hctosys  hc\u4ee3\u8868\u786c\u4ef6\u65f6\u95f4\uff0csys\u4ee3\u8868\u7cfb\u7edf\u65f6\u95f4\uff0c\u5373\u7528\u786c\u4ef6\u65f6\u949f\u540c\u6b65\u7cfb\u7edf\u65f6\u949f
\r\n\t
\r\n\t\u7cfb\u7edf\u65f6\u949f\u548c\u786c\u4ef6\u65f6\u949f\u540c\u6b65\uff1a
\r\n\t
\r\n\t# hwclock --systohc\u6216\u8005# clock --systohc  \u5373\u7528\u7cfb\u7edf\u65f6\u949f\u540c\u6b65\u786c\u4ef6\u65f6\u949f

\r\n

\u7528npt\u670d\u52a1\u5668\u540c\u6b65\u7cfb\u7edf\u65f6\u95f4

\r\n

1\u3001\u624b\u52a8\u540c\u6b65\uff1a
\r\n\t
\r\n\tntpdate 210.72.145.44  #210.72.145.44\u897f\u5b89\u4e2d\u79d1\u9662\u63d0\u4f9b
\r\n\t
\r\n\tntpdate 219.158.14.130 #\u8be5\u5730\u5740\u662f\u5317\u4eac\u7f51\u901a\u63d0\u4f9b
\r\n\t
\r\n\t2\u3001\u540c\u6b65\u4e4b\u540e\uff0c\u5c06\u65f6\u95f4\u4fe1\u606f\u5199\u5165bios
\r\n\t
\r\n\thwclock -w
\r\n\t
\r\n\t3\u3001centos\u7cfb\u7edf\uff0c\u5982\u679c\u6ca1\u6709ntpdate\u547d\u4ee4\u4f7f\u7528yum install ntp\u66f4\u65b0\uff1b
\r\n\t 

\r\n"}, {"title": "\u521a\u4e0a\u7ebf\u7684\u7f51\u7ad9\u8bbf\u95ee\u4e0d\u4e86", "desc": "\u521a\u4e0a\u7ebf\u7684\u7f51\u7ad9\u522b\u7684\u7535\u8111\u80fd\u8bbf\u95ee\u81ea\u5df1\u7535\u8111\u8bbf\u95ee\u4e0d\u4e86\uff0c\u7ecf\u8fc7\u6392\u67e5\u53d1\u73b0\u662fDNS\u7f13\u5b58\u7684\u95ee\u9898\u3002", "content": "

\r\n\tDNS\u539f\u7406

\r\n

DNS\uff0cDomain Name System\u6216\u8005Domain Name Service\uff08\u57df\u540d\u7cfb\u7edf\u6216\u8005\u4f59\u540d\u670d\u52a1\uff09\u3002\u57df\u540d\u7cfb\u7edf\u4e3aInternet\u4e0a\u7684\u4e3b\u673a\u5206\u914d\u57df\u540d\u5730\u5740\u548cIP\u5730\u5740\u3002\u7528\u6237\u4f7f\u7528\u57df\u540d\u5730\u5740\uff0c\u8be5\u7cfb\u7edf\u5c31\u4f1a\u81ea\u52a8\u628a\u57df\u540d\u5730\u5740\u8f6c\u4e3aIP\u5730\u5740\u3002\u57df\u540d\u670d\u52a1\u662f\u8fd0\u884c\u57df\u540d\u7cfb\u7edf\u7684Internet\u5de5\u5177\u3002\u6267\u884c\u57df\u540d\u670d\u52a1\u7684\u670d\u52a1\u5668\u79f0\u4e4b\u4e3aDNS\u670d\u52a1\u5668\uff0c\u901a\u8fc7DNS\u670d\u52a1\u5668\u6765\u5e94\u7b54\u57df\u540d\u670d\u52a1\u7684\u67e5\u8be2\u3002

\r\n

\r\n\tDNS\u7f13\u5b58\u670d\u52a1

\r\n

DNSCACHE\u670d\u52a1\u7684\u539f\u7406\u662f\u8fd9\u6837\u7684\uff1a\u5f53\u4f60\u7b2c\u4e00\u6b21\u8bbf\u95ee\u4e00\u4e2a\u7f51\u7ad9\u7684\u65f6\u5019\uff0cDNS\u670d\u52a1\u5668\u8981\u901a\u8fc7\u522b\u7684\u670d\u52a1\u5668\u53bb\u67e5\u8be2\u7f51\u7ad9\u6240\u5bf9\u5e94\u7684IP\uff0c\u8fd9\u4e2a\u67e5\u8be2\u7684\u65f6\u95f4\u4f1a\u6bd4\u8f83\u957f\uff0c\u540c\u65f6DNS\u670d\u52a1\u5668\u5c31\u628a\u8be5\u7f51\u7ad9\u548c\u5176\u5bf9\u5e94\u7684IP\u5b58\u50a8\u5728DNS cache\u91cc\u9762\u4e86\u3002\u5f53\u4f60\u7b2c\u4e8c\u6b21\u8bbf\u95ee\u65f6DNS\u670d\u52a1\u5668\u5c31\u76f4\u63a5\u4ececache\u91cc\u9762\u627e\u5bf9\u5e94\u7684IP\uff0c\u8fd9\u6837\u8bbf\u95ee\u8be5\u7f51\u7ad9\u7684\u901f\u5ea6\u5c31\u4f1a\u5feb\u5f88\u591a\u3002

\r\n

\r\n\t\u5237\u65b0\u67e5\u770b\u7f13\u5b58DNS

\r\n

\u5148\u8fd0\u884c:ipconfig /displaydns\u8fd9\u4e2a\u547d\u4ee4,\u67e5\u770b\u4e00\u4e0b\u672c\u673a\u5df2\u7ecf\u7f13\u5b58\u4e86\u90a3\u4e9bdns\u4fe1\u606f,\u7136\u540e\u8f93\u5165\u4e0b\u9762\u7684\u547d\u4ee4ipconfig /flushdns\u8fd9\u65f6\u672c\u673a\u7684dns\u7f13\u5b58\u4fe1\u606f\u5df2\u7ecf\u6e05\u7a7a,\u53ef\u4ee5\u518d\u6b21\u8f93\u5165\u7b2c\u4e00\u6b21\u8f93\u5165\u7684\u547d\u4ee4\u6765\u770b\u4e00\u4e0b,ipconfig /displaydns

\r\n"}, {"title": "chsime.exe\u8fdb\u7a0b\u5360\u7528\u8d44\u6e90\u9ad8\u5904\u7406\u65b9\u6cd5", "desc": "\u672c\u4ebaWIN10\u4e13\u4e1a\u7248\uff0c\u665a\u4e0a\u73a9\u4e09\u56fd\u6740\u7684\u65f6\u5019\u4e00\u76f4\u5361\u7740\u4e0d\u52a8\uff0c\u9700\u8981\u591a\u6b21\u767b\u9646\u597d\u50cf\u6d4f\u89c8\u5668\u5d29\u6e83\u4f46\u662f\u9f20\u6807\u548c\u952e\u76d8\u8fd8\u53ef\u4ee5\u52a8\u8bf4\u660e\u7535\u8111\u6ca1\u6b7b\u673a\u3002\u6253\u5f00\u4efb\u52a1\u7ba1\u7406\u5668\u5173microsoft IME\u8fdb\u7a0b\u6709\u6240\u6539\u5584\u3002", "content": "

\r\n\t\u4e0b\u9762\u7ed9\u51fa\u51e0\u4e2a\u89e3\u51b3\u65b9\u6cd5

\r\n

\u6253\u5f00\u7ba1\u7406\u5458\u7684\u547d\u4ee4\u63d0\u793a\u7b26\uff0c\u8fd0\u884c
\r\n\tif exist "%SystemRoot%\\System32\\InputMethod\\CHS\\ChsIME.exe" (
\r\n\ttakeown /f "%SystemRoot%\\System32\\InputMethod\\CHS\\ChsIME.exe" /A
\r\n\ticacls "%SystemRoot%\\System32\\InputMethod\\CHS\\ChsIME.exe" /deny "NT AUTHORITY\\SYSTEM:RX"
\r\n\t)

\r\n

\u8fd9\u6761\u662f\u767e\u5ea6\u4e0a\u8bf4\u7684\uff0c\u6211\u6ca1\u7528\u8fc7

\r\n

\r\n\t\u5e38\u89c1\u7684\u4e34\u65f6\u529e\u6cd5\u6211\u770b\u5230\u4e863\u79cd\uff1a

\r\n

1 \u7528\u7b2c\u4e09\u65b9\u8f93\u5165\u6cd5\u4ee3\u66ff\uff08\u6ca1\u8bd5\u8fc7\u5c31\u559c\u6b22\u7cfb\u7edf\u81ea\u5e26\u7684\u8f93\u5165\u6cd5\u7b2c\u4e09\u65b9\u8f93\u5165\u6cd5\u5e7f\u544a\u592a\u591a\u4e86^_^\uff09
\r\n\t2 \u5f00\u673a\u540e\u7ed3\u675fmicrosoft IME\u8fdb\u7a0b\u4e00\u6b21\uff08\u8fd9\u4e2a\u65b9\u6cd5\u6700\u7b80\u5355\u6700\u73af\u4fdd\uff0c\u4e0d\u77e5\u9053\u6709\u6ca1\u6709\u7740\u7528\uff09
\r\n\t3 ChsIME.exe\u62d2\u7eddSYSTEM\u8bfb\u53d6\u548c\u6267\u884c\uff08\u8c8c\u4f3c\u4e0d\u884c\u5fc5\u987b\u8bbe\u7f6e\u4e2a\u8bfb\u53d6\u6743\u9650\uff09

\r\n

\r\n\t\u6211\u662f\u8fd9\u6837\u89e3\u51b3\u7684

\r\n
1.\u4fee\u6539\u6267\u884c\u7a0b\u5e8fC:\\Windows\\System32\\InputMethod\\CHS\\ChsIME.exe\u7684\u6240\u6709\u8005\u4e3a\u6211\u7684\u767b\u9646\u8d26\u6237\uff0c\u7136\u540e\u5220\u9664TrustedInstaller\u548csystem\u7684\u6743\u9650
\r\n
2.\u5982\u679c\u4f60\u4e0d\u60f3\u4f7f\u7528\u81ea\u5e26\u7684\u8f93\u5165\u6cd5\u63a5\u4e0b\u6765\u53ef\u4ee5\u76f4\u63a5\u628aChsIME.exe\u91cd\u547d\u540d\uff0c\u6bd4\u5982\u91cd\u547d\u540d\u6210ChsIME.exe_bak
\r\n
3.\u5b89\u88c5\u767e\u5ea6\u3001QQ\u3001\u641c\u72d7\u7b49\u5176\u4ed6\u7b2c\u4e09\u65b9\u8f93\u5165\u6cd5
\r\n"}, {"title": "linux tmpfs\u548cswap\u4ecb\u7ecd", "desc": "\u4ec0\u4e48\u662f/dev/shm?dev\u5927\u5bb6\u90fd\u4f7f\u77e5\u9053\u5b83\u662f\u4e00\u4e2a\u8bbe\u5907\u6587\u4ef6\u3002\u4f7f\u7528tmpfs\u6587\u4ef6\u7cfb\u7edf\uff0c\u5728Redhat/CentOS\u7b49linux\u53d1\u884c\u7248\u4e2d\u9ed8\u8ba4\u5927\u5c0f\u4e3a\u7269\u7406\u5185\u5b58\u7684\u4e00\u534a\u3002\u5982\u6211\u7684\u865a\u62df\u673a\u88c5\u7684\u662fCentOS6.0,\u5206\u914d\u5185\u5b58\u4e3a1G\uff0c\u6240\u4ee5/dev/shm\u4e3a500M\u5de6\u53f3\u3002tmpfs\u662fLinux/Unix\u7cfb\u7edf\u4e0a\u7684\u4e00\u79cd\u57fa\u4e8e\u5185\u5b58\u7684\u6587\u4ef6\u7cfb\u7edf\u3002tmpfs\u53ef\u4ee5\u4f7f\u7528\u60a8\u7684\u5185\u5b58\u6216swap\u5206\u533a\u6765\u5b58\u50a8\u6587\u4ef6\u3002", "content": "

\r\n\t\u4ec0\u4e48\u662ftmpfs

\r\n

tmpfs\u662fLinux/Unix\u7cfb\u7edf\u4e0a\u7684\u4e00\u79cd\u57fa\u4e8e\u5185\u5b58\u7684\u6587\u4ef6\u7cfb\u7edf\u3002tmpfs\u53ef\u4ee5\u4f7f\u7528\u60a8\u7684\u5185\u5b58\u6216swap\u5206\u533a\u6765\u5b58\u50a8\u6587\u4ef6\u3002\u7531\u6b64\u53ef\u89c1\uff0ctemfs\u4e3b\u8981\u5b58\u50a8\u6682\u5b58\u7684\u6587\u4ef6\u3002
\r\n\t
\r\n\tlinux\u5185\u6838\u4e2d\u7684VM\u5b50\u7cfb\u7edf\u8d1f\u8d23\u5728\u540e\u53f0\u7ba1\u7406\u865a\u62df\u5185\u5b58\u8d44\u6e90Virtual Memory\uff0c\u5373RAM\u548cswap\u8d44\u6e90\uff0c\u900f\u660e\u5730\u5c06RAM\u9875\u79fb\u52a8\u5230\u4ea4\u6362\u5206\u533a\u6216\u4ece\u4ea4\u6362\u5206\u533a\u5230RAM\u9875\uff0ctmpfs\u6587\u4ef6\u7cfb\u7edf\u9700\u8981VM\u5b50\u7cfb\u7edf\u7684\u9875\u9762\u6765\u5b58\u50a8\u6587\u4ef6\u3002tmpfs\u81ea\u5df1\u5e76\u4e0d\u77e5\u9053\u8fd9\u4e9b\u9875\u9762\u662f\u5728\u4ea4\u6362\u5206\u533a\u8fd8\u662f\u5728RAM\u4e2d\uff1b\u505a\u8fd9\u79cd\u51b3\u5b9a\u662fVM\u5b50\u7cfb\u7edf\u7684\u5de5\u4f5c\u3002tmpfs\u6587\u4ef6\u7cfb\u7edf\u6240\u77e5\u9053\u7684\u5c31\u662f\u5b83\u6b63\u5728\u4f7f\u7528\u67d0\u79cd\u5f62\u5f0f\u7684\u865a\u62df\u5185\u5b58\u3002
\r\n\t
\r\n\ttmpfs\u57fa\u4e8e\u5185\u5b58\uff0c\u56e0\u800c\u901f\u5ea6\u662f\u76f8\u5f53\u7684\uff0c\u53e6\u5916tmpfs\u4f7f\u7528\u7684VM\u8d44\u6e90\u662f\u52a8\u6001\u7684\uff0c\u5f53\u5220\u9664tmpfs\u4e2d\u6587\u4ef6\uff0ctmpfs \u6587\u4ef6\u7cfb\u7edf\u9a71\u52a8\u7a0b\u5e8f\u4f1a\u52a8\u6001\u5730\u51cf\u5c0f\u6587\u4ef6\u7cfb\u7edf\u5e76\u91ca\u653e VM \u8d44\u6e90\uff0c\u5f53\u7136\u5728\u5176\u4e2d\u521b\u5efa\u6587\u4ef6\u65f6\u4e5f\u4f1a\u52a8\u6001\u7684\u5206\u914dVM\u8d44\u6e90\u3002\u53e6\u5916\uff0ctmpfs\u4e0d\u5177\u5907\u6301\u4e45\u6027\uff0c\u91cd\u542f\u540e\u6570\u636e\u4e0d\u4fdd\u7559\uff0c\u539f\u56e0\u5f88\u660e\u663e\uff0c\u5b83\u662f\u57fa\u4e8e\u5185\u5b58\u7684\u3002
\r\n\t
\r\n\t\u7f16\u8bd1\u5185\u6838\u65f6\uff0c\u542f\u7528“Virtual memory file system support”\u5c31\u53ef\u4ee5\u4f7f\u7528tmpfs,linux kernel\u4ece2.4\u4ee5\u540e\u90fd\u5f00\u59cb\u652f\u6301tmpfs\u3002\u76ee\u524d\u4e3b\u6d41\u7684linux\u7cfb\u7edf\u9ed8\u8ba4\u5df2\u542f\u7528tmpfs\uff0c\u5982Redhat\u3002
\r\n\t 

\r\n

\r\n\t\u4ec0\u4e48\u662f/dev/shm

\r\n

\u770b\u5230dev\u5927\u5bb6\u90fd\u4f7f\u77e5\u9053\u5b83\u662f\u4e00\u4e2a\u8bbe\u5907\u6587\u4ef6\u3002\u4f7f\u7528tmpfs\u6587\u4ef6\u7cfb\u7edf\uff0c\u5728Redhat/CentOS\u7b49linux\u53d1\u884c\u7248\u4e2d\u9ed8\u8ba4\u5927\u5c0f\u4e3a\u7269\u7406\u5185\u5b58\u7684\u4e00\u534a\u3002\u5982\u6211\u7684\u865a\u62df\u673a\u88c5\u7684\u662fCentOS6.0,\u5206\u914d\u5185\u5b58\u4e3a1G\uff0c\u6240\u4ee5/dev/shm\u4e3a500M\u5de6\u53f3\u3002
\r\n\t
\r\n\t[root@GoGo tmp]# df -h
\r\n\t
\r\n\tFilesystem            Size  Used Avail Use% Mounted on
\r\n\t
\r\n\t/dev/sda3             8.8G  4.0G  4.5G  48% /
\r\n\t
\r\n\ttmpfs                 499M   88K  499M   1% /dev/shm
\r\n\t
\r\n\t/dev/sda1              97M   43M   50M  47% /boot
\r\n\t
\r\n\ttmpfs\u662f\u57fa\u4e8e\u5185\u5b58\u7684\u6587\u4ef6\u7cfb\u7edf\uff0c\u521b\u5efa\u65f6\u4e0d\u9700\u8981\u4f7f\u7528mkfs\u7b49\u521d\u59cb\u5316\u3002\u5982\u6211\u60f3\u628a/dev/shm tmpfs\u5927\u5c0f\u6539\u4e3a512M.
\r\n\t
\r\n\t#vi /etc/fstab
\r\n\t
\r\n\ttmpfs       /dev/shm    tmpfs  defaults   0   0
\r\n\t
\r\n\t\u66f4\u6539\u4e3a
\r\n\t
\r\n\ttmpfs       /dev/shm    tmpfs  defaults,size=512m   0    0
\r\n\t
\r\n\t[root@GoGo tmp]# mount -o remount /dev/shm
\r\n\t
\r\n\t[root@GoGo tmp]# df -h
\r\n\t
\r\n\tFilesystem            Size  Used Avail Use% Mounted on
\r\n\t
\r\n\t/dev/sda3             8.8G  4.0G  4.5G  48% /
\r\n\t
\r\n\ttmpfs                 512M   88K  512M   1% /dev/shm
\r\n\t
\r\n\t/dev/sda1              97M   43M   50M  47% /boot
\r\n\t
\r\n\t\u600e\u4e48\u6837\uff0c\u53d8\u6210512M\u5566\uff0c\u4f7f\u7528\u5f88\u65b9\u4fbf\u5427\uff0c\u54c8\u54c8\u3002
\r\n\t
\r\n\t\u5f53\u7136\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u4f60\u53ef\u4ee5\u628a\u5185\u5b58\u52a0\u5927\u4e9b\uff0c\u53cd\u6b63\u73b0\u5728\u5185\u5b58\u5f88\u4fbf\u5b9c\u5566\uff0c\u4e3a\u4e86\u63d0\u9ad8\u6027\u80fd\u4e5f\u9700\u8981\u5c06/dev/shm\u52a0\u5927\u3002\u5982\uff1a
\r\n\t
\r\n\tmount -o size=1500M -o nr_inodes=1000000 -o noatime,nodiratime -o remount /dev/shm
\r\n\t
\r\n\tnr_innodes\u6307\u5b9a\u7d22\u5f15\u8282\u70b9\u6570\uff0cnodiratime  man\u4e2d\u89e3\u91ca\u5982\u4e0b\uff1a
\r\n\t
\r\n\tnodiratime  Do  not  update directory inode access times on this filesystem.
\r\n\t
\r\n\t\u4e0d\u66f4\u65b0\u76ee\u5f55\u88ab\u8bbf\u95ee\u65f6inode\u4e2d\u7684\u8bb0\u5f55\u4fe1\u606f\uff0cnoatime\u540c\u7406\uff0c\u597d\u5904\u4f60\u61c2\u7684\u3002
\r\n\t
\r\n\ttmpfs\u5e94\u7528
\r\n\t
\r\n\ttmpfs\u662f\u57fa\u4e8e\u5185\u5b58\u7684\uff0c\u901f\u5ea6\u662f\u4e0d\u7528\u8bf4\u7684\uff0c\u786c\u76d8\u548c\u5b83\u6ca1\u6cd5\u6bd4\u3002
\r\n\t
\r\n\tOracle \u4e2d\u7684Automatic Memory Management\u7279\u6027\u5c31\u4f7f\u7528\u4e86/dev/shm\u3002

\r\n

\r\n\t\u4ec0\u4e48\u662fswap

\r\n

\u800cswap\u662fLinux\u7684\u865a\u62df\u5185\u5b58, \u5373\u5728\u786c\u76d8\u4e0a\u5f00\u8f9f\u7a7a\u95f4\u5f53\u5185\u5b58\u4e0d\u591f\u65f6\u5145\u5f53\u5185\u5b58\u4f7f\u7528, \u56e0\u6b64\u53ef\u4ee5\u7406\u89e3\u4e3a\u5f53/dev/shm\u7a7a\u95f4\u4e0d\u591f\u65f6\u53ef\u4ee5\u5360\u7528swap\u7684\u7a7a\u95f4
\r\n\tSwap\u7684\u8c03\u6574\u5bf9Linux\u670d\u52a1\u5668\uff0c\u7279\u522b\u662fWeb\u670d\u52a1\u5668\u7684\u6027\u80fd\u81f3\u5173\u91cd\u8981\u3002\u901a\u8fc7\u8c03\u6574Swap\uff0c\u6709\u65f6\u53ef\u4ee5\u8d8a\u8fc7\u7cfb\u7edf\u6027\u80fd\u74f6\u9888\uff0c\u8282\u7701\u7cfb\u7edf\u5347\u7ea7\u8d39\u7528\u3002Swap\u7a7a\u95f4
\r\n\t\u7684\u4f5c\u7528\u53ef\u7b80\u5355\u63cf\u8ff0\u4e3a\uff1a\u5f53\u7cfb\u7edf\u7684\u7269\u7406\u5185\u5b58\u4e0d\u591f\u7528\u7684\u65f6\u5019\uff0c\u5c31\u9700\u8981\u5c06\u7269\u7406\u5185\u5b58\u4e2d\u7684\u4e00\u90e8\u5206\u7a7a\u95f4\u91ca\u653e\u51fa\u6765\uff0c\u4ee5\u4f9b\u5f53\u524d\u8fd0\u884c\u7684\u7a0b\u5e8f\u4f7f\u7528\u3002\u90a3\u4e9b\u88ab\u91ca
\r\n\t\u653e\u7684\u7a7a\u95f4\u53ef\u80fd\u6765\u81ea\u4e00\u4e9b\u5f88\u957f\u65f6\u95f4\u6ca1\u6709\u4ec0\u4e48\u64cd\u4f5c\u7684\u7a0b\u5e8f\uff0c\u8fd9\u4e9b\u88ab\u91ca\u653e\u7684\u7a7a\u95f4\u88ab\u4e34\u65f6\u4fdd\u5b58\u5230Swap\u7a7a\u95f4\u4e2d\uff0c\u7b49\u5230\u90a3\u4e9b\u7a0b\u5e8f\u8981\u8fd0\u884c\u65f6\uff0c\u518d\u4eceSwap\u4e2d\u6062
\r\n\t\u590d\u4fdd\u5b58\u7684\u6570\u636e\u5230\u5185\u5b58\u4e2d\u3002\u8fd9\u6837\uff0c\u7cfb\u7edf\u603b\u662f\u5728\u7269\u7406\u5185\u5b58\u4e0d\u591f\u65f6\uff0c\u624d\u8fdb\u884cSwap\u4ea4\u6362\u3002\u6709\u7684\u7a0b\u5e8f\u4f1a\u6253\u5f00\u4e00\u4e9b\u6587\u4ef6\uff0c\u5bf9\u6587\u4ef6\u8fdb\u884c\u8bfb\u5199\uff0c\u5f53\u9700\u8981\u5c06\u8fd9\u4e9b\u7a0b\u5e8f\u7684\u5185\u5b58\u7a7a\u95f4\u4ea4\u6362\u51fa\u53bb\u65f6\uff0c\u5c31\u6ca1\u6709\u5fc5\u8981\u5c06\u6587\u4ef6\u90e8\u5206\u7684\u6570\u636e\u653e\u5230Swap\u7a7a\u95f4\u4e2d\u4e86\uff0c\u800c\u53ef\u4ee5\u76f4\u63a5\u5c06\u5176\u653e\u5230\u6587\u4ef6\u91cc\u53bb\u3002\u5982\u679c\u662f\u8bfb\u6587\u4ef6\u64cd\u4f5c\uff0c\u90a3\u4e48\u5185\u5b58\u6570\u636e\u88ab\u76f4\u63a5\u91ca\u653e\uff0c\u4e0d\u9700\u8981\u4ea4\u6362\u51fa\u6765\uff0c\u56e0\u4e3a\u4e0b\u6b21\u9700\u8981\u65f6\uff0c\u53ef\u76f4\u63a5\u4ece\u6587\u4ef6\u7cfb\u7edf\u6062\u590d\uff1b\u5982\u679c\u662f\u5199\u6587\u4ef6\uff0c\u53ea\u9700\u8981\u5c06\u53d8\u5316\u7684\u6570\u636e\u4fdd\u5b58\u5230\u6587\u4ef6\u4e2d\uff0c\u4ee5\u4fbf\u6062\u590d\u3002\u4f46\u662f\u90a3\u4e9b\u7528malloc\u548cnew\u51fd\u6570\u751f\u6210\u7684\u5bf9\u8c61\u7684\u6570\u636e\u5219\u4e0d\u540c\uff0c\u5b83\u4eec\u9700\u8981swap\u7a7a-\u95f4\uff0c\u56e0\u4e3a\u5b83\u4eec\u5728\u6587\u4ef6\u7cfb\u7edf\u4e2d\u6ca1\u6709\u76f8\u5e94\u7684“\u50a8\u5907”\u6587\u4ef6\uff0c\u56e0\u6b64\u88ab\u79f0\u4f5c“\u533f\u540d”(Anonymous)\u5185\u5b58\u6570\u636e\u3002\u8fd9\u7c7b\u6570\u636e\u8fd8\u5305\u62ec\u5806\u6808\u4e2d\u7684\u4e00\u4e9b\u72b6\u6001\u548c\u53d8\u91cf\u6570\u636e\u7b49\u3002\u6240\u4ee5\u8bf4\uff0cSwap\u7a7a\u95f4\u662f“\u533f\u540d”\u6570\u636e\u7684\u4ea4\u6362\u7a7a\u95f4\u3002  
\r\n\tswap\u914d\u7f6e\u5bf9\u6027\u80fd\u7684\u5f71\u54cd  
\r\n\t   \u5206\u914d\u592a\u591a\u7684Swap\u7a7a\u95f4\u4f1a\u6d6a\u8d39\u78c1\u76d8\u7a7a\u95f4\uff0c\u800cSwap\u7a7a\u95f4\u592a\u5c11\uff0c\u5219\u7cfb\u7edf\u4f1a\u53d1\u751f\u9519\u8bef\u3002\u5982\u679c\u7cfb\u7edf\u7684\u7269\u7406\u5185\u5b58\u7528\u5149\u4e86\uff0c\u7cfb\u7edf\u5c31\u4f1a\u8dd1\u5f97\u5f88\u6162\uff0c\u4f46\u4ecd\u80fd\u8fd0\u884c\uff1b\u5982\u679cSwap\u7a7a\u95f4\u7528\u5149\u4e86\uff0c\u90a3\u4e48\u7cfb\u7edf\u5c31\u4f1a\u53d1\u751f\u9519\u8bef\u3002\u4f8b\u5982\uff0cWeb\u670d\u52a1\u5668\u80fd\u6839\u636e\u4e0d\u540c\u7684\u8bf7\u6c42\u6570\u91cf\u884d\u751f\u51fa\u591a\u4e2a\u670d\u52a1\u8fdb\u7a0b\uff08\u6216\u7ebf\u7a0b\uff09\uff0c\u5982\u679cSwap\u7a7a\u95f4\u7528\u5b8c\uff0c\u5219\u670d\u52a1\u8fdb\u7a0b\u65e0\u6cd5\u542f\u52a8\uff0c\u901a\u5e38\u4f1a\u51fa\u73b0“application is out ofmemory”\u7684\u9519\u8bef\uff0c\u4e25\u91cd\u65f6\u4f1a\u9020\u6210\u670d\u52a1\u8fdb\u7a0b\u7684\u6b7b\u9501\u3002\u56e0\u6b64Swap\u7a7a\u95f4\u7684\u5206\u914d\u662f\u5f88\u91cd\u8981\u7684\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0cSwap\u7a7a\u95f4\u5e94\u5927\u4e8e\u6216\u7b49\u4e8e\u7269\u7406
\r\n\t\u5185\u5b58\u7684\u5927\u5c0f\uff0c\u6700\u5c0f\u4e0d\u5e94\u5c0f\u4e8e64M\uff0c\u901a\u5e38Swap\u7a7a\u95f4\u7684\u5927\u5c0f\u5e94\u662f\u7269\u7406\u5185\u5b58\u76842-2.5\u500d\u3002 \u53e6\u5916\uff0cSwap\u5206\u533a\u7684\u6570\u91cf\u5bf9\u6027\u80fd\u4e5f\u6709\u5f88\u5927\u7684\u5f71\u54cd\u3002\u56e0\u4e3aSwap\u4ea4\u6362\u7684\u64cd\u4f5c\u662f\u78c1\u76d8IO\u7684\u64cd\u4f5c\uff0c\u5982\u679c\u6709\u591a\u4e2aSwap\u4ea4\u6362\u533a\uff0cSwap\u7a7a\u95f4\u7684\u5206\u914d\u4f1a\u4ee5\u8f6e\u6d41\u7684\u65b9\u5f0f\u64cd\u4f5c\u4e8e\u6240\u6709\u7684Swap\uff0c\u8fd9\u6837\u4f1a\u5927\u5927\u5747\u8861IO\u7684\u8d1f\u8f7d\uff0c\u52a0\u5febSwap\u4ea4\u6362\u7684\u901f\u5ea6\u3002\u5982\u679c\u53ea\u6709\u4e00\u4e2a\u4ea4\u6362\u533a\uff0c\u6240\u6709\u7684\u4ea4\u6362\u64cd\u4f5c\u4f1a\u4f7f\u4ea4\u6362\u533a\u53d8\u5f97\u5f88\u5fd9\uff0c\u4f7f\u7cfb\u7edf\u5927\u591a\u6570\u65f6\u95f4\u5904\u4e8e\u7b49\u5f85\u72b6\u6001\uff0c\u6548\u7387\u5f88\u4f4e\u3002\u7528\u6027\u80fd\u76d1\u89c6\u5de5\u5177\u5c31\u4f1a\u53d1\u73b0\uff0c\u6b64\u65f6\u7684CPU\u5e76\u4e0d\u5f88\u5fd9\uff0c\u800c\u7cfb\u7edf\u5374\u6162\u3002\u8fd9\u8bf4\u660e\uff0c\u74f6\u9888\u5728IO\u4e0a\uff0c\u4f9d\u9760
\r\n\t\u63d0\u9ad8CPU\u7684\u901f\u5ea6\u662f\u89e3\u51b3\u4e0d\u4e86\u95ee\u9898\u7684\u3002
\r\n\t
\r\n\tswap\u5206\u533a
\r\n\t
\r\n\t \u7b2c\u4e00\u79cd\u65b9\u6cd5:
\r\n\t 1.fdisk  /dev/sda
\r\n\t 2.n       (\u65b0\u5efa\u4e00\u4e2a\u5206\u533a\u4e3a/dev/sda6)
\r\n\t 3.t        (\u4fee\u6539\u5206\u533a\u7684id)
\r\n\t 4.82     (swap\u7684id\u4e3a82)
\r\n\t 5.w       (\u91cd\u5199\u5206\u533a\u8868)
\r\n\t 6.partprobe  (\u540c\u6b65\u5185\u5b58\u548c\u5206\u533a\u8868\u4fe1\u606f)
\r\n\t 7.mkswap /dev/sda6   (\u683c\u5f0f\u5316\u6210swap\u5206\u533a)
\r\n\t 8.swapon /dev/sda6   (\u6253\u5f00swap\u5206\u533a)
\r\n\t 9.vim /etc/fstab           (\u5728fstab\u4e2d\u589e\u52a0\u4e00\u6761\u8bb0\u5f55\u5982\u4e0b)
\r\n\t /deva6    swap   swap defaults 0 0
\r\n\t 10.mount -a
\r\n\t
\r\n\t
\r\n\t \u7b2c\u4e8c\u79cd\u65b9\u6cd5:
\r\n\t 1.dd if=/dev/zero of=/opt/swapfile bs=1M count=1000   (\u521b\u5efa\u4e00\u4e2a1G\u7684\u6587\u4ef6\u4f5c\u4e3a\u4ea4\u6362\u5206\u533a\u4f7f\u7528)
\r\n\t 2.mkswap /opt/swapfile   (\u683c\u5f0f\u5316\u6210swap\u5206\u533a)
\r\n\t 3.swapon /opt/swapfile   (\u6253\u5f00swap\u5206\u533a)
\r\n\t 4.vim /etc/fstab           (\u5728fstab\u4e2d\u589e\u52a0\u4e00\u6761\u8bb0\u5f55\u5982\u4e0b)
\r\n\t /opt/swapfile    swap   swap defaults 0 0
\r\n\t 5.mount -a
\r\n\t
\r\n\ttmpfs \u5bf9oracle\u7684\u5f71\u54cd
\r\n\t1.\u521d\u59cb\u5316\u53c2\u6570MEMORY_TARGET\u6216MEMORY_MAX_TARGET\u4e0d\u80fd\u5927\u4e8e\u5171\u4eab\u5185\u5b58(/dev/shm),\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u53ef\u4ee5\u589e\u5927/dev/shm
\r\n\t
\r\n\t\u5728oracle 11g\u4e2d\u65b0\u589e\u7684\u5185\u5b58\u81ea\u52a8\u7ba1\u7406\u7684\u53c2\u6570MEMORY_TARGET,\u5b83\u80fd\u81ea\u52a8\u8c03\u6574SGA\u548cPGA\uff0c\u8fd9\u4e2a\u7279\u6027\u9700\u8981\u7528\u5230/dev/shm\u5171\u4eab\u6587\u4ef6\u7cfb\u7edf\uff0c\u800c\u4e14\u8981\u6c42/dev/shm\u5fc5\u987b\u5927\u4e8eMEMORY_TARGET\uff0c\u5982\u679c/dev/shm\u6bd4MEMORY_TARGET\u5c0f\u5c31\u4f1a\u62a5\u9519
\r\n\t
\r\n\t
\r\n\t 

\r\n"}, {"title": "VMware\u865a\u62df\u673a\u5b89\u88c5CentOS7\u4e24\u5757\u7f51\u7ad9\u8bc6\u522b\u4e0d\u4e86\u89e3\u51b3\u65b9\u6cd5", "desc": "\u672c\u6587\u4f9b\u5bf9VMware Workstation\u865a\u62df\u673a\u719f\u6089\u7684\u540c\u5b66\uff0c\u521a\u5de7\u9047\u5230\u5b89\u88c5CentOS-7-x86_64-Minimal-1611.iso\u8bbe\u7f6e\u4e24\u5757\u7f51\u5361\u53ea\u80fd\u8bc6\u522b\u4e00\u4e2a\u7684\u60c5\u51b5\u7684\u60c5\u51b5\u3002", "content": "

\u95f2\u6765\u65e0\u4e8b\u60f3\u5728VMware Workstation\u91cc\u9762\u5b89\u88c5\u4e00\u4e2aCentos7\u7528\u4e8e\u5b66\u4e60DOCKER\uff0c\u7531\u4e8e\u4eba\u61d2\u4e0d\u60f3\u4e0b\u8f7d\u5b8c\u6574\u7248\u5b89\u88c5\u4ece\u5b98\u7f51\u4e0a\u4e0b\u8f7d\u4e86CentOS-7-x86_64-Minimal-1611.iso\u7cbe\u7b80\u7248\u672c\uff08\u624d680M^_^\uff09\u3002

\r\n

\u7b80\u5355\u8bf4\u4e0b\u865a\u62df\u673a\u7f51\u7edc\u914d\u7f6e

\r\n

\u7f51\u53611\uff1aNAT\u6a21\u5f0f\uff0c\u7528\u4e8e\u548c\u672c\u673aVMware Workstation\u7684\u865a\u62df\u7f51\u5361\u901a\u4fe1\u3002\u3010\u672c\u673a\u865a\u62df\u7f51\u5361\u540d\u79f0VMware Network Adapter VMnet8\uff08\u4f1a\u7528VMware Workstation\u5e94\u8be5\u90fd\u4e0d\u964c\u751f\uff09\uff0c\u672c\u673aip\u5730\u5740192.168.134.1\u3011

\r\n

\u7f51\u53612\uff1a\u6865\u63a5\u6a21\u5f0f\u5e76\u5728"\u590d\u5236\u7269\u7406\u7f51\u7edc\u94fe\u63a5\u72b6\u6001"\u524d\u9762\u6253\u52fe\u9009\u4e2d\uff0c\u7528\u6765\u590d\u5236\u672c\u673a\u7684\u672c\u5730\u8fde\u63a5\u7f51\u7edc\u7528\u6765\u94fe\u63a5\u4e92\u8054\u7f51\u3002

\r\n

\u6ce8\uff1a\u6211\u8bf4\u7684\u672c\u673a\u6307\u7684\u662f\u5b89\u88c5VMware Workstation\u7684\u7535\u8111

\r\n

\u95ee\u9898\u63cf\u8ff0

\r\n

\u5b89\u88c5\u5b8c\u7cbe\u7b80\u7248cenots7,\u6ca1\u6709net-tools\u5de5\u5177\uff0c\u6240\u4ee5\u4e0d\u80fd\u4f7f\u7528ifconfig\u547d\u4ee4\u3002

\r\n

$ip addr show

\r\n

[root@DOCKER ~]# ip addr
\r\n\t1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
\r\n\t    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
\r\n\t    inet 127.0.0.1/8 scope host lo
\r\n\t       valid_lft forever preferred_lft forever
\r\n\t    inet6 ::1/128 scope host
\r\n\t       valid_lft forever preferred_lft forever
\r\n\t2: ens32: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
\r\n\t    link/ether 00:0c:29:ce:a1:04 brd ff:ff:ff:ff:ff:ff
\r\n\t    inet 192.168.12.133/24 brd 192.168.12.255 scope global dynamic ens32
\r\n\t       valid_lft 1522sec preferred_lft 1522sec

\r\n

\u53ea\u663e\u793a\u4e00\u5757\u7f51\u5361\uff0c\u540d\u79f0\u4e3aens32.\u5728VMware Workstation\u5220\u9664\u4e0d\u8bc6\u522b\u7684\u7f51\u5361\uff0c\u91cd\u65b0\u6dfb\u52a0

\r\n

[root@DOCKER ~]# ip addr
\r\n\t1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
\r\n\t    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
\r\n\t    inet 127.0.0.1/8 scope host lo
\r\n\t       valid_lft forever preferred_lft forever
\r\n\t    inet6 ::1/128 scope host
\r\n\t       valid_lft forever preferred_lft forever
\r\n\t2: ens32: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
\r\n\t    link/ether 00:0c:29:ce:a1:04 brd ff:ff:ff:ff:ff:ff
\r\n\t    inet 192.168.134.105/24 brd 192.168.134.255 scope global ens32
\r\n\t       valid_lft forever preferred_lft forever
\r\n\t    inet6 fe80::20c:29ff:fece:a104/64 scope link
\r\n\t       valid_lft forever preferred_lft forever
\r\n\t3: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
\r\n\t    link/ether 00:0c:29:ce:a1:0e brd ff:ff:ff:ff:ff:ff
\r\n\t    inet 192.168.3.104/24 brd 192.168.3.255 scope global dynamic ens33
\r\n\t       valid_lft 6926sec preferred_lft 6926sec
\r\n\t    inet6 fe80::4da2:3bb0:3002:9c4f/64 scope link
\r\n\t       valid_lft forever preferred_lft forever

\r\n

\u4fee\u6539/etc/sysconfig/network-scripts\u4e0bifcfg-XXX\u8bbe\u7f6e\u7f51\u7edc

\r\n"}, {"title": "CentOS7\u65b0\u589esystemctl\u547d\u4ee4\u7528\u6cd5", "desc": "systemctl\u547d\u4ee4start,stop,restart,status,enable,disable,is-enabled\u4ee5APACHE\u7684httpd\u4e3a\u4f8b\u5bf9\u7167\u8001\u547d\u4ee4\u4f7f\u7528\u7406\u89e3", "content": "

\r\n\t1.\u4f7fhttpd\u670d\u52a1\u81ea\u52a8\u542f\u52a8

\r\n

\u8001\u547d\u4ee4\uff1achkconfig --level 3 httpd on

\r\n

\u65b0\u547d\u4ee4\uff1asystemctl enable httpd.service

\r\n

\r\n\t2.httpd\u670d\u52a1\u4e0d\u81ea\u52a8\u542f\u52a8

\r\n

\u8001\u547d\u4ee4\uff1achkconfig --level 3 httpd off

\r\n

\u65b0\u547d\u4ee4\uff1asystemctl disable httpd.service

\r\n

\r\n\t3.\u68c0\u67e5\u670d\u52a1\u72b6\u6001

\r\n

\u8001\u547d\u4ee4\uff1aservice httpd status

\r\n

\u65b0\u547d\u4ee4\uff1asystemctl status httpd.service \uff08\u670d\u52a1\u8be6\u7ec6\u4fe1\u606f\uff09 systemctl is-active httpd.service \uff08\u4ec5\u663e\u793a\u662f\u5426 Active)

\r\n

\r\n\t4.\u663e\u793a\u6240\u6709\u5df2\u542f\u52a8\u7684\u670d\u52a1

\r\n

\u8001\u547d\u4ee4\uff1achkconfig --list

\r\n

\u65b0\u547d\u4ee4\uff1asystemctl list-units --type=service

\r\n

\r\n\t5.\u542f\u52a8httpd\u670d\u52a1

\r\n

\u8001\u547d\u4ee4\uff1aservice httpd start

\r\n

\u65b0\u547d\u4ee4\uff1asystemctl start httpd.service

\r\n

\r\n\t6.\u505c\u6b62httpd\u670d\u52a1

\r\n

\u8001\u547d\u4ee4\uff1aservice httpd stop

\r\n

\u65b0\u547d\u4ee4\uff1asystemctl stop httpd.service

\r\n

\r\n\t7.\u91cd\u65b0\u542f\u52a8httpd\u670d\u52a1

\r\n

\u8001\u547d\u4ee4\uff1aservice httpd restart

\r\n

\u65b0\u547d\u4ee4\uff1asystemctl restart httpd.service

\r\n"}, {"title": "CentOS7\u7cbe\u7b80\u7248\u5b89\u88c5DOCKER", "desc": "\u4e2a\u4eba\u5728\u5b66\u4e60\u5b89\u88c5DOCKER\u7684\u6b65\u9aa4\u4ee5\u53ca\u9047\u5230\u7684\u95ee\u9898\u62a5\u9519\u60c5\u51b5\uff0c\u89e3\u51b3\u65b9\u6cd5\u3002", "content": "

1. //\u67e5\u770b\u5185\u6838
\r\n\t[root@DOCKER ~]# uname -r      
\r\n\t3.10.0-514.el7.x86_64
\r\n\t//\u5efa\u7acb\u5b89\u88c5\u6e90
\r\n\ttee /etc/yum.repos.d/docker.repo <<-'EOF'
\r\n\t[dockerrepo]
\r\n\tname=Docker Repository
\r\n\tbaseurl=https://yum.dockerproject.org/repo/main/centos/7/
\r\n\tenabled=1
\r\n\tgpgcheck=1
\r\n\tgpgkey=https://yum.dockerproject.org/gpg
\r\n\tEOF
\r\n\t
\r\n\t//\u7528\u6e90\u5b89\u88c5

\r\n

[root@DOCKER yum.repos.d]# yum install docker-engine

\r\n

\u62a5\u5982\u4e0b\u9519\u8bef

\r\n

---> Package libcgroup.x86_64 0:0.41-6.el7 will be installed
\r\n\t---> Package libsemanage-python.x86_64 0:2.1.10-16.el7 will be installed
\r\n\t--> Processing Dependency: libsemanage = 2.1.10-16.el7 for package: libsemanage-python-2.1.10-16.el7.x86_64
\r\n\t---> Package policycoreutils-python.x86_64 0:2.2.5-11.el7 will be installed
\r\n\t--> Processing Dependency: policycoreutils = 2.2.5-11.el7 for package: policycoreutils-python-2.2.5-11.el7.x86_64
\r\n\t---> Package python-IPy.noarch 0:0.75-6.el7 will be installed
\r\n\t---> Package setools-libs.x86_64 0:3.3.7-46.el7 will be installed
\r\n\t--> Finished Dependency Resolution
\r\n\tError: Package: policycoreutils-python-2.2.5-11.el7.x86_64 (base)
\r\n\t           Requires: policycoreutils = 2.2.5-11.el7
\r\n\t           Installed: policycoreutils-2.5-8.el7.x86_64 (@anaconda)
\r\n\t               policycoreutils = 2.5-8.el7
\r\n\t           Available: policycoreutils-2.2.5-11.el7.x86_64 (base)
\r\n\t               policycoreutils = 2.2.5-11.el7
\r\n\tError: Package: libsemanage-python-2.1.10-16.el7.x86_64 (base)
\r\n\t           Requires: libsemanage = 2.1.10-16.el7
\r\n\t           Installed: libsemanage-2.5-4.el7.x86_64 (@anaconda)
\r\n\t               libsemanage = 2.5-4.el7
\r\n\t           Available: libsemanage-2.1.10-16.el7.x86_64 (base)
\r\n\t               libsemanage = 2.1.10-16.el7
\r\n\tError: Package: audit-libs-python-2.3.3-4.el7.x86_64 (base)
\r\n\t           Requires: audit-libs = 2.3.3-4.el7
\r\n\t           Installed: audit-libs-2.6.5-3.el7.x86_64 (@anaconda)
\r\n\t               audit-libs = 2.6.5-3.el7
\r\n\t           Available: audit-libs-2.3.3-4.el7.x86_64 (base)
\r\n\t               audit-libs = 2.3.3-4.el7
\r\n\t You could try using --skip-broken to work around the problem
\r\n\t You could try running: rpm -Va --nofiles --nodigest
\r\n\t\u4e0b\u8f7d\u76f8\u5173\u5305\u5931\u8d25\u62a5\u7684\u9519

\r\n

\u5148\u67e5\u770bpython

\r\n

[root@DOCKER ~]# rpm -qa python
\r\n\tpython-2.7.5-48.el7.x86_64

\r\n

\u5b89\u88c5\u7248\u672c\u6bd4\u9700\u6c42\u7248\u672c\u9ad8\u3002

\r\n"}, {"title": "windows2008R2\u6fc0\u6d3b\u8f6f\u4ef6\u5bfc\u81f4\u7684\u7ecf\u5e38\u5173\u673a", "desc": "\u7531\u4e8e\u6fc0\u6d3b\u8f6f\u4ef6\u6ca1\u6709\u5b8c\u5168\u6fc0\u6d3b\uff0c\u6216\u8005\u662f\u5b89\u88c5\u67d0\u4e9b\u8f6f\u4ef6\u51b2\u7a81\u5bfc\u81f4\u8fdb\u7a0b wlms.exe\u8fdb\u7a0b\u81ea\u52a8\u5173\u95ed\u670d\u52a1\u5668\u3002\r\n", "content": "

windows\u4e8b\u4ef6\u67e5\u770b\u5668\u4fe1\u606f

\r\n

\u8fdb\u7a0b wlms.exe \u4e3a\u7528\u6237 NT AUTHORITY\\SYSTEM \u5f00\u59cb\u8ba1\u7b97\u673a WIN-CD1JNB4SVFA \u7684 \u5173\u95ed\u7535\u6e90\uff0c\u539f\u56e0\u5982\u4e0b: \u5176\u4ed6(\u8ba1\u5212\u5916)
\r\n\t \u539f\u56e0\u4ee3\u7801: 0x0
\r\n\t \u5173\u673a\u7c7b\u578b: \u5173\u95ed\u7535\u6e90
\r\n

\r\n

\u89e3\u51b3\u65b9\u6cd5\uff1a

\r\n

1.\u91cd\u65b0\u627e\u6fc0\u6d3b\u8f6f\u4ef6\u6fc0\u6d3b

\r\n

2.\u7f16\u4e2a\u5c0f\u811a\u672c\u8ba9\u7cfb\u7edf\u6bcf\u6b21\u5f00\u673a\u6267\u884c\u4e00\u6b21\u5c31OK\u628a\u4ee5\u4e0b\u5185\u5bb9\u4fdd\u5b58\u4e3a.bat\u6587\u4ef6\uff0c\u5f53\u6bcf\u6b21\u5f00\u673a\u540e\uff0c\u53f3\u51fb\u8fd9\u4e2a\u6587\u4ef6\uff0c\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\uff0c\u8fd9\u6837\u7cfb\u7edf\u5c31\u4e0d\u4f1a\u81ea\u52a8\u5173\u673a\u4e86\u3002

\r\n
\r\n\t
\r\n\r\ntaskkill /f /im wlms.exe\r\nping -n 4 127.0.0.1\r\nshutdown -a\r\n
\r\n
\r\n"}, {"title": "Linux\u4e0bORACLE\u6570\u636e\u5e93\u670d\u52a1\u5668\u4e00\u5929\u4e09\u6b21\u5907\u4efd\uff0c\u4e09\u5929\u8986\u76d6\u4e00\u6b21", "desc": "\u672c\u6587\u901a\u8fc7Linux\u7cfb\u7edf\u4e0b crontab\u5b9a\u65f6\u6267\u884c\u4efb\u52a1\u6267\u884cSH\u811a\u672c\u5b9e\u73b0\u6570\u636e\u6bcf\u5929\u4e09\u65f6\u3001\u5341\u4e09\u65f6\u3001\u4e8c\u5341\u4e09\u65f6\u5907\u4efd\uff0c\u4e09\u5929\u8986\u76d6\u4e00\u6b21\u4ee5\u8282\u7701\u78c1\u76d8\u7a7a\u95f4\u3002", "content": "

1.\u5728root\u4e0b\u521b\u5efa\u5907\u4efd\u76ee\u5f55

\r\n

mkdir /datebak
\r\n\tchown oracle:oinstall /datebak
\r\n\tchmod 755 /datebak

\r\n

2.\u521b\u5efa\u5907\u4efd\u811a\u672crman_bakup.sh

\r\n

su - oracle        //\u5207\u6362\u81f3oracle\u8d26\u6237\u4e0b
\r\n\tmkdir bin
\r\n\tcd bin/
\r\n\ttouch rman_bakup.sh
\r\n\tchmod 755 rman_bakup.sh
\r\n\tvi rman_bakup.sh

\r\n

2.1\u5728\u5907\u4efd\u811a\u672c\u4e0b\u6dfb\u52a0\u4e00\u4e0b\u5185\u5bb9

\r\n
\r\n\t
\r\n\r\n#!/bin/bash\r\nsource /home/oracle/.bash_profile\r\n/usr/local/oracle/product/11.2.0/dbhome_1/bin/rman target / nocatalog cmdfile=/home/oracle/bin/rman_cmd  log=/datebak/rman_full_`date +%Y%m%d%H%M`.log\r\n
\r\n
\r\n

\u6ce8\u610f\uff1a/usr/local/oracle/product/11.2.0/dbhome_1\u8981\u6362\u6210\u4f60\u81ea\u5df1\u7684ORACLE\u5b89\u88c5\u76ee\u5f55

\r\n

3.\u521b\u5efarman\u7684\u5907\u4efd\u811a\u672c

\r\n

cd ~/bin
\r\n\ttouch rman_cmd
\r\n\tvi rman_cmd

\r\n

3.1\u5728rman_cmd\u4e0b\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9

\r\n
\r\n\t
\r\n\r\nrun{ \r\nCONFIGURE RETENTION POLICY TO REDUNDANCY 9; \r\nconfigure controlfile autobackup on;\r\nconfigure controlfile autobackup format for device type disk to '/datebak/%F';\r\nallocate channel d1 device type disk format '/datebak/BAK_db_%d_%s_%p_%t_%T';\r\nbackup database format '/datebak/BAK_db_%d_%s_%p_%t_%T'\r\n  skip inaccessible \r\n  plus archivelog filesperset 20 \r\n  delete all input \r\n  format '/datebak/log_%d_%s_%p_%T';\r\nrelease channel d1; \r\n}\r\nallocate channel for maintenance device type disk;\r\ncrosscheck backupset;\r\ndelete noprompt obsolete; \r\n
\r\n
\r\n

4.\u67e5\u770b\u811a\u672c\u6267\u884c\u662f\u5426\u6210\u529f

\r\n

\u5728oracle\u7528\u6237\u4e0b\u6267\u884c./rman_bakup.sh\u770b\u662f\u5426\u6267\u884c\u6210\u529f

\r\n

5.\u5982\u679c\u6210\u529f\u4f7f\u7528oracle\u7528\u6237\u6dfb\u52a0\u8ba1\u5212\u4efb\u52a1\u3002\u6bcf\u59293\u6b21

\r\n

\u5728oracle\u7528\u6237\u73af\u5883\u4e0b\u6267\u884c
\r\n\tcrontab -e

\r\n

\u6dfb\u52a0\u4e0b\u9762\u4e09\u6761\u5907\u4efd\u8bb0\u5f55
\r\n\t0 3 * * * /home/oracle/bin/rman_bakup.sh
\r\n\t0 13 * * * /home/oracle/bin/rman_bakup.sh
\r\n\t0 23 * * * /home/oracle/bin/rman_bakup.sh

\r\n

6.\u67e5\u770b\u76d1\u63a7\u65e5\u5fd7\u786e\u8ba4\u4efb\u52a1\u8ba1\u5212\u662f\u5426\u6267\u884c

\r\n

\u5728root\u4e0b\u6267\u884ctail -f /var/log/cron\u76d1\u63a7\u65e5\u5fd7

\r\n

 

\r\n"}, {"title": "Linux\u7cfb\u7edf\u4e0bLVM\u5206\u533a\u6269\u5bb9", "desc": "LVM\u662f Logical Volume Manager\uff08\u903b\u8f91\u5377\u7ba1\u7406\uff09\u7684\u7b80\u5199\uff0c\u5b83\u662fLinux\u73af\u5883\u4e0b\u5bf9\u78c1\u76d8\u5206\u533a\u8fdb\u884c\u7ba1\u7406\u7684\u4e00\u79cd\u673a\u5236\uff0c\u5b83\u7531Heinz Mauelshagen\u5728Linux 2.4\u5185\u6838\u4e0a\u5b9e\u73b0\uff0c\u76ee\u524d\u6700\u65b0\u7248\u672c\u4e3a\uff1a\u7a33\u5b9a\u72481.0.5\uff0c\u5f00\u53d1\u7248 1.1.0-rc2\uff0c\u4ee5\u53caLVM2\u5f00\u53d1\u7248\u3002", "content": "

1.\u4e86\u89e3\u4ec0\u4e48\u662fLVM

\r\n

Linux\u7528\u6237\u5b89\u88c5Linux\u64cd\u4f5c\u7cfb\u7edf\u65f6\u9047\u5230\u7684\u4e00\u4e2a\u5e38\u89c1\u7684\u96be\u4ee5\u51b3\u5b9a\u7684\u95ee\u9898\u5c31\u662f\u5982\u4f55\u6b63\u786e\u5730\u8bc4\u4f30\u5404\u5206\u533a\u5927\u5c0f\uff0c\u4ee5\u5206\u914d\u5408\u9002\u7684\u786c\u76d8\u7a7a\u95f4\u3002\u666e\u901a\u7684\u78c1\u76d8\u5206\u533a\u7ba1\u7406\u65b9\u5f0f\u5728\u903b\u8f91\u5206\u533a\u5212\u5206\u597d\u4e4b\u540e\u5c31\u65e0\u6cd5\u6539\u53d8\u5176\u5927\u5c0f\uff0c\u5f53\u4e00\u4e2a\u903b\u8f91\u5206\u533a\u5b58\u653e\u4e0d\u4e0b\u67d0\u4e2a\u6587\u4ef6\u65f6\uff0c\u8fd9\u4e2a\u6587\u4ef6\u56e0\u4e3a\u53d7\u4e0a\u5c42\u6587\u4ef6\u7cfb\u7edf\u7684\u9650\u5236\uff0c\u4e5f\u4e0d\u80fd\u8de8\u8d8a\u591a\u4e2a\u5206\u533a\u6765\u5b58\u653e\uff0c\u6240\u4ee5\u4e5f\u4e0d\u80fd\u540c\u65f6\u653e\u5230\u522b\u7684\u78c1\u76d8\u4e0a\u3002\u800c\u9047\u5230\u51fa\u73b0\u67d0\u4e2a\u5206\u533a\u7a7a\u95f4\u8017\u5c3d\u65f6\uff0c\u89e3\u51b3\u7684\u65b9\u6cd5\u901a\u5e38\u662f\u4f7f\u7528\u7b26\u53f7\u94fe\u63a5\uff0c\u6216\u8005\u4f7f\u7528\u8c03\u6574\u5206\u533a\u5927\u5c0f\u7684\u5de5\u5177\uff0c\u4f46\u8fd9\u53ea\u662f\u6682\u65f6\u89e3\u51b3\u529e\u6cd5\uff0c\u6ca1\u6709\u4ece\u6839\u672c\u4e0a\u89e3\u51b3\u95ee\u9898\u3002\u968f\u7740Linux\u7684\u903b\u8f91\u5377\u7ba1\u7406\u529f\u80fd\u7684\u51fa\u73b0\uff0c\u8fd9\u4e9b\u95ee\u9898\u90fd\u8fce\u5203\u800c\u89e3\uff0c\u7528\u6237\u5728\u65e0\u9700\u505c\u673a\u7684\u60c5\u51b5\u4e0b\u53ef\u4ee5\u65b9\u4fbf\u5730\u8c03\u6574\u5404\u4e2a\u5206\u533a\u5927\u5c0f\u3002

\r\n

2.LVM\u672f\u8bed\u5de5\u4f5c\u539f\u7406

\r\n

LVM\u662f\u5728\u78c1\u76d8\u5206\u533a\u548c\u6587\u4ef6\u7cfb\u7edf\u4e4b\u95f4\u6dfb\u52a0\u7684\u4e00\u4e2a\u903b\u8f91\u5c42\uff0c\u6765\u4e3a\u6587\u4ef6\u7cfb\u7edf\u5c4f\u853d\u4e0b\u5c42\u78c1\u76d8\u5206\u533a\u5e03\u5c40\uff0c\u63d0\u4f9b\u4e00\u4e2a\u62bd\u8c61\u7684\u5b58\u50a8\u5377\uff0c\u5728\u5b58\u50a8\u5377\u4e0a\u5efa\u7acb\u6587\u4ef6\u7cfb\u7edf\u3002

\r\n
*\u7269\u7406\u5b58\u50a8\u4ecb\u8d28\uff08PhysicalStorageMedia\uff09
\r\n\t\u6307\u7cfb\u7edf\u7684\u7269\u7406\u5b58\u50a8\u8bbe\u5907\uff1a\u78c1\u76d8\uff0c\u5982\uff1a/dev/hda\u3001/dev/sda\u7b49\uff0c\u662f\u5b58\u50a8\u7cfb\u7edf\u6700\u5e95\u5c42\u7684\u5b58\u50a8\u5355\u5143\u3002
\r\n\t*\u7269\u7406\u5377\uff08Physical Volume\uff0cPV\uff09
\r\n\t\u6307\u78c1\u76d8\u5206\u533a\u6216\u4ece\u903b\u8f91\u4e0a\u4e0e\u78c1\u76d8\u5206\u533a\u5177\u6709\u540c\u6837\u529f\u80fd\u7684\u8bbe\u5907\uff08\u5982RAID\uff09\uff0c\u662fLVM\u7684\u57fa\u672c\u5b58\u50a8\u903b\u8f91\u5757\uff0c\u4f46\u548c\u57fa\u672c\u7684\u7269\u7406\u5b58\u50a8\u4ecb\u8d28\uff08\u5982\u5206\u533a\u3001\u78c1\u76d8\u7b49\uff09\u6bd4\u8f83\uff0c\u5374\u5305\u542b\u6709\u4e0eLVM\u76f8\u5173\u7684\u7ba1\u7406\u53c2\u6570\u3002
\r\n\t*\u5377\u7ec4\uff08Volume Group\uff0cVG\uff09
\r\n\t\u7c7b\u4f3c\u4e8e\u975eLVM\u7cfb\u7edf\u4e2d\u7684\u7269\u7406\u78c1\u76d8\uff0c\u5176\u7531\u4e00\u4e2a\u6216\u591a\u4e2a\u7269\u7406\u5377PV\u7ec4\u6210\u3002\u53ef\u4ee5\u5728\u5377\u7ec4\u4e0a\u521b\u5efa\u4e00\u4e2a\u6216\u591a\u4e2aLV\uff08\u903b\u8f91\u5377\uff09\u3002
\r\n\t*\u903b\u8f91\u5377\uff08Logical Volume\uff0cLV\uff09
\r\n\t\u7c7b\u4f3c\u4e8e\u975eLVM\u7cfb\u7edf\u4e2d\u7684\u78c1\u76d8\u5206\u533a\uff0c\u903b\u8f91\u5377\u5efa\u7acb\u5728\u5377\u7ec4VG\u4e4b\u4e0a\u3002\u5728\u903b\u8f91\u5377LV\u4e4b\u4e0a\u53ef\u4ee5\u5efa\u7acb\u6587\u4ef6\u7cfb\u7edf\uff08\u6bd4\u5982/home\u6216\u8005/usr\u7b49\uff09\u3002
\r\n\t*\u7269\u7406\u5757\uff08Physical Extent\uff0cPE\uff09
\r\n\t\u6bcf\u4e00\u4e2a\u7269\u7406\u5377PV\u88ab\u5212\u5206\u4e3a\u79f0\u4e3aPE\uff08Physical Extents\uff09\u7684\u57fa\u672c\u5355\u5143\uff0c\u5177\u6709\u552f\u4e00\u7f16\u53f7\u7684PE\u662f\u53ef\u4ee5\u88abLVM\u5bfb\u5740\u7684\u6700\u5c0f\u5355\u5143\u3002PE\u7684\u5927\u5c0f\u662f\u53ef\u914d\u7f6e\u7684\uff0c\u9ed8\u8ba4\u4e3a4MB\u3002\u6240\u4ee5\u7269\u7406\u5377\uff08PV\uff09\u7531\u5927\u5c0f\u7b49\u540c\u7684\u57fa\u672c\u5355\u5143PE\u7ec4\u6210\u3002
\r\n\t*\u903b\u8f91\u5757\uff08Logical Extent\uff0cLE\uff09
\r\n\t\u903b\u8f91\u5377LV\u4e5f\u88ab\u5212\u5206\u4e3a\u53ef\u88ab\u5bfb\u5740\u7684\u57fa\u672c\u5355\u4f4d\uff0c\u79f0\u4e3aLE\u3002\u5728\u540c\u4e00\u4e2a\u5377\u7ec4\u4e2d\uff0cLE\u7684\u5927\u5c0f\u548cPE\u662f\u76f8\u540c\u7684\uff0c\u5e76\u4e14\u4e00\u4e00\u5bf9\u5e94\u3002
\r\n\t
\r\n\t\u548c\u975eLVM\u7cfb\u7edf\u5c06\u5305\u542b\u5206\u533a\u4fe1\u606f\u7684\u5143\u6570\u636e\u4fdd\u5b58\u5728\u4f4d\u4e8e\u5206\u533a\u7684\u8d77\u59cb\u4f4d\u7f6e\u7684\u5206\u533a\u8868\u4e2d\u4e00\u6837\uff0c\u903b\u8f91\u5377\u4ee5\u53ca\u5377\u7ec4\u76f8\u5173\u7684\u5143\u6570\u636e\u4e5f\u662f\u4fdd\u5b58\u5728\u4f4d\u4e8e\u7269\u7406\u5377\u8d77\u59cb\u5904\u7684VGDA\uff08\u5377\u7ec4\u63cf\u8ff0\u7b26\u533a\u57df\uff09\u4e2d\u3002VGDA\u5305\u62ec\u4ee5\u4e0b\u5185\u5bb9\uff1aPV\u63cf\u8ff0\u7b26\u3001VG\u63cf\u8ff0\u7b26\u3001LV\u63cf\u8ff0\u7b26\u3001\u548c\u4e00\u4e9bPE\u63cf\u8ff0\u7b26\u3002
\r\n\t\u7cfb\u7edf\u542f\u52a8LVM\u65f6\u6fc0\u6d3bVG\uff0c\u5e76\u5c06VGDA\u52a0\u8f7d\u81f3\u5185\u5b58\uff0c\u6765\u8bc6\u522bLV\u7684\u5b9e\u9645\u7269\u7406\u5b58\u50a8\u4f4d\u7f6e\u3002\u5f53\u7cfb\u7edf\u8fdb\u884cI/O\u64cd\u4f5c\u65f6\uff0c\u5c31\u4f1a\u6839\u636eVGDA\u5efa\u7acb\u7684\u6620\u5c04\u673a\u5236\u6765\u8bbf\u95ee\u5b9e\u9645\u7684\u7269\u7406\u4f4d\u7f6e\u3002
\r\n

3.LVM\u5206\u533a\u7a7a\u95f4\u6269\u5bb9

\r\n
3.1\u521b\u5efapv ,\u901a\u8fc7pvcreate\u547d\u4ee4\u5c06\u78c1\u76d8/dev/sdb\u521b\u5efa\u4e3a\u4e00\u4e2a\u7cfb\u7edfPV
\r\n
# pvcreate /dev/xvdb 1        //\u5c06\u78c1\u76d8sbd\u521b\u5efa\u4e3aPV
\r\n
 
\r\n
[root@iZ35fysdmc9Z ~]# pvdisplay   //\u67e5\u770bPV
\r\n\t  --- Physical volume ---
\r\n\t  PV Name               /dev/xvdb1
\r\n\t  VG Name               vg01
\r\n\t  PV Size               499.99 GiB / not usable 1.40 MiB
\r\n\t  Allocatable           yes
\r\n\t  PE Size               4.00 MiB
\r\n\t  Total PE              127998
\r\n\t  Free PE               75548
\r\n\t  Allocated PE          52450
\r\n\t  PV UUID               NQdKn5-E1IF-wYl9-MGeu-PeEX-wArw-MgdwnF
\r\n
3.2\u5c06 PV /dev/xvdb1\u6dfb\u52a0\u5230\u5377\u7ec4vg01\u4e2d\u3002
\r\n\t
\r\n\t# vgextend  vg01  /dev/xvdb1
\r\n
 
\r\n

\r\n\t[root@iZ35fysdmc9Z ~]# vgdisplay    //\u67e5\u770bVG
\r\n\t  --- Volume group ---
\r\n\t  VG Name               vg01
\r\n\t  System ID             
\r\n\t  Format                lvm2
\r\n\t  Metadata Areas        1
\r\n\t  Metadata Sequence No  3
\r\n\t  VG Access             read/write
\r\n\t  VG Status             resizable
\r\n\t  MAX LV                0
\r\n\t  Cur LV                1
\r\n\t  Open LV               1
\r\n\t  Max PV                0
\r\n\t  Cur PV                1
\r\n\t  Act PV                1
\r\n\t  VG Size               499.99 GiB
\r\n\t  PE Size               4.00 MiB
\r\n\t  Total PE              127998
\r\n\t  Alloc PE / Size       52450 / 204.88 GiB
\r\n\t  Free  PE / Size       75548 / 295.11 GiB
\r\n\t  VG UUID               NLJtsV-bfKu-7GKe-KmY1-1Lvx-GdaS-h1yR6y
\r\n
 
\r\n
3.3\u4e3aLV /dev/vg01/web1\u589e\u52a010G\u7a7a\u95f4
\r\n
# lvextend -L +10G -n  /dev/vg01/web1
\r\n
 
\r\n
[root@iZ35fysdmc9Z ~]# lvdisplay    //\u67e5\u770b\u5f53\u524dLV\u4fe1\u606f
\r\n\t  --- Logical volume ---
\r\n\t  LV Path                /dev/vg01/web1
\r\n\t  LV Name                web1
\r\n\t  VG Name                vg01
\r\n\t  LV UUID                BTeC1v-V28J-rPzl-T7G0-xJdS-yaGc-mRlD0z
\r\n\t  LV Write Access        read/write
\r\n\t  LV Creation host, time iZ35fysdmc9Z, 2016-04-14 16:16:54 +0800
\r\n\t  LV Status              available
\r\n\t  # open                 1
\r\n\t  LV Size                204.88 GiB
\r\n\t  Current LE             52450
\r\n\t  Segments               1
\r\n\t  Allocation             inherit
\r\n\t  Read ahead sectors     auto
\r\n\t  - currently set to     256
\r\n\t  Block device           253:0
\r\n
3.4\u5237\u65b0LV\u5bb9\u91cf\u4f7f\u4e4b\u751f\u6548
\r\n

\u903b\u8f91\u5377\u6269\u5c55\u540e\u5e76\u4e0d\u4f1a\u9a6c\u4e0a\u751f\u6548\uff0c\u9700\u8981\u4f7f\u7528“resize2fs”\u547d\u4ee4\u91cd\u65b0\u52a0\u8f7d\u903b\u8f91\u5377\u7684\u5927\u5c0f,\u56fe\u4e2d\u53ef\u77e5\uff0c/soft\u5df2\u7ecf\u6dfb\u52a030G\u7a7a\u95f4
\r\n\t
\r\n\t# resize2fs  /dev/vg01/web1

\r\n

4.\u5c06/dev/vg01/web1\u6302\u8f7d\u5230/opt\u76ee\u5f55\u5e76\u4e14\u8bbe\u7f6e\u542f\u52a8

\r\n

4.1\u6302\u8f7d\u5230/opt\u76ee\u5f55

\r\n

[root@iZ35fysdmc9Z etc]#mount  /dev/vg01/web1 /opt

\r\n

[root@iZ35fysdmc9Z etc]# df -hT     //\u67e5\u770b\u6302\u8f7d\u4fe1\u606f
\r\n\tFilesystem           Type   Size  Used Avail Use% Mounted on
\r\n\t/dev/xvda1           ext4    40G  2.2G   36G   6% /
\r\n\ttmpfs                tmpfs  3.9G     0  3.9G   0% /dev/shm
\r\n\t/dev/mapper/vg01-web1
\r\n\t                     ext4   202G  2.3G  190G   2% /opt\u67e5\u770b\u67e5\u770b\u6302\u8f7d\u4fe1\u606f

\r\n

4.2\u5c06\u6302\u8f7d\u4fe1\u606f\u6dfb\u52a0\u5230/etc/fstab\u6587\u4ef6\u4e2d

\r\n

[root@iZ35fysdmc9Z etc]#vi /etc/fstab

\r\n

\u5728\u6700\u4e0b\u9762\u6dfb\u52a0\u4e0b\u9762\u4e00\u884c\u4fdd\u5b58\u9000\u51fa

\r\n

/dev/mapper/vg01-web1  /opt                        etx4   defaults        0 0

\r\n"}, {"title": "Windows\u901a\u8fc7\u8bbe\u7f6eORACLE\u73af\u5883\u53d8\u91cf\u5b89\u88c5\u7eff\u8272\u724812C\u5ba2\u6237\u7aef", "desc": "\u672c\u65b9\u6cd5\u4e0d\u7528\u5b89\u88c5ORACLE\u5ba2\u6237\u7aef\u4e0d\u4fee\u6539\u6ce8\u518c\u8868\uff0c\u901a\u8fc7\u914d\u7f6e\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u5b9e\u73b0PLSQL Developer\u548cCMD\u547d\u4ee4\u63d0\u793a\u7b26\u4e0b\u7528sqlplus\u94fe\u63a5\u6570\u636e\u5e93\u3002\u9002\u5408\u548c\u6211\u4e00\u6837\u6709\u8d85\u7ea7\u5f3a\u8feb\u75c7\u7684\u540c\u5b66\u4f7f\u7528\uff0c\u4e0b\u9762\u9644\u5e26\u6211\u5e38\u7528\u5ba2\u6237\u7aef\u767e\u5ea6\u7f51\u76d8\u5730\u5740\u3002", "content": "

1.\u4e0b\u8f7dORCLE\u7eff\u8272\u7248\u5ba2\u6237\u7aef

\r\n

\u53ef\u4ee5\u4ece\u5df2\u5b89\u88c5\u8fc7\u5ba2\u6237\u7aef\u7684\u7535\u8111\u4e0a\u628aORACLE\u76ee\u5f55\u76f4\u63a5\u590d\u5236\u8fc7\u6765\u6216\u8005\u7528\u6211\u7ecf\u5e38\u4f7f\u7528\u7684\u5ba2\u6237\u7aef\u4e5f\u884c\u6211\u7684\u662f12C\u54df

\r\n

\u767e\u5ea6\u4e91\u76d8\u5730\u5740\uff1ahttp://pan.baidu.com/s/1o8O0D5K   \u5bc6\u7801\uff1a5mc2

\r\n

2.\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf(F:\\oracle\\dbhome_1\u8981\u6362\u6210\u4f60\u81ea\u5df1\u7684ORACLE\u6839\u76ee\u5f55)

\r\n

2.1\u5728\u7cfb\u7edf\u53d8\u91cfPath\u6700\u540e\u9762\u8ffd\u52a0F:\\oracle\\dbhome_1\\BIN;
\r\n\t\u6ce8\u610f;\u53f7\u8981\u4fdd\u7559\u662f\u82f1\u6587\u72b6\u6001\u4e0b\u7684\u534a\u89d2\u5206\u53f7\u3002

\r\n

2.2\u65b0\u5efaORACLE_HOME\u7cfb\u7edf\u53d8\u91cf\uff0c\u53d8\u91cf\u503cF:\\oracle\\dbhome_1

\r\n

2.3\u65b0\u5efaNLS_LANG\u7cfb\u7edf\u53d8\u91cf\uff0c\u53d8\u91cf\u503cSIMPLIFIED CHINESE_CHINA.ZHS16GBK

\r\n

\u6ce8\u610f\uff1a\u8fd9\u4e2a\u4e0d\u5efa\u4e0d\u5f71\u54cd\u4f7f\u7528\uff0c\u4f46\u662f\u5ba2\u6237\u7aef\u4f1a\u663e\u793a\u82f1\u6587\u7684

\r\n

2.4\u65b0\u5efaTNS_ADMIN\u7cfb\u7edf\u53d8\u91cf\uff0c\u53d8\u91cf\u503cF:\\oracle\\dbhome_1

\r\n

3.\u6d4b\u8bd5\u8bbe\u7f6e\u662f\u5426\u6210\u529f\uff08\u914d\u7f6e\u5b8c\u4e86\u5728\u6253\u5f00CMD\u6d4b\u8bd5)

\r\n

\u6253\u5f00CMD\u547d\u4ee4\u63d0\u793a\u7b26\u8f93\u5165sqlplus \u6309\u56de\u8f66\uff0c\u51fa\u73b0\u4e0b\u9762\u63d0\u793a\u8f93\u5165\u7528\u6237\u540d\u4fe1\u606f\u8868\u793a\u914d\u7f6e\u6210\u529f

\r\n

C:\\Users\\Centos>sqlplus
\r\n\t
\r\n\tSQL*Plus: Release 12.1.0.2.0 Production on \u661f\u671f\u4e09 11\u6708 30 17:18:02 2016
\r\n\t
\r\n\tCopyright (c) 1982, 2014, Oracle.  All rights reserved.
\r\n\t
\r\n\t\u8bf7\u8f93\u5165\u7528\u6237\u540d:
\r\n\t 

\r\n"}, {"title": "Linux\uff08Centos\uff09\u8bbe\u7f6e\u672c\u5730yum\u6e90", "desc": "YUM\u662f\u201cYellow dog Updater, Modified\u201d\u7684\u7f29\u5199\uff0c\u662f\u4e00\u4e2a\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\uff0cYUM\u4ece\u6307\u5b9a\u7684\u5730\u65b9\uff08\u76f8\u5173\u7f51\u7ad9\u7684rpm\u5305\u5730\u5740\u6216\u672c\u5730\u7684rpm\u8def\u5f84\uff09\u81ea\u52a8\u4e0b\u8f7dRPM\u5305\u5e76\u4e14\u5b89\u88c5\uff0c\u80fd\u591f\u5f88\u597d\u7684\u89e3\u51b3\u4f9d\u8d56\u5173\u7cfb\u95ee\u9898\u3002", "content": "

\r\n\t1\u3001\u5228\u6839\u95ee\u5e95---\u4ec0\u4e48\u662fyum\u6e90

\r\n

\u8bf4\u5230yum\u6e90\u5c31\u5fc5\u987b\u8bf4\u5230linux\u7cfb\u7edf\u4e2d\u7279\u6709\u7684\u4f9d\u8d56\u5173\u7cfb\u95ee\u9898\uff0cyum\u5c31\u662f\u4e3a\u4e86\u89e3\u51b3\u4f9d\u8d56\u5173\u7cfb\u800c\u5b58\u5728\u7684\u3002yum\u6e90\u5c31\u76f8\u5f53\u662f\u4e00\u4e2a\u76ee\u5f55\u9879\uff0c\u5f53\u6211\u4eec\u4f7f\u7528yum\u673a\u5236\u5b89\u88c5\u8f6f\u4ef6\u65f6\uff0c\u82e5\u9700\u8981\u5b89\u88c5\u4f9d\u8d56\u8f6f\u4ef6\uff0c\u5219yum\u673a\u5236\u5c31\u4f1a\u6839\u636e\u5728yum\u6e90\u4e2d\u5b9a\u4e49\u597d\u7684\u8def\u5f84\u67e5\u627e\u4f9d\u8d56\u8f6f\u4ef6\uff0c\u5e76\u5c06\u4f9d\u8d56\u8f6f\u4ef6\u5b89\u88c5\u597d\u3002
\r\n\tYUM\u662f“Yellow dog Updater, Modified”\u7684\u7f29\u5199\uff0c\u662f\u4e00\u4e2a\u8f6f\u4ef6\u5305\u7ba1\u7406\u5668\uff0cYUM\u4ece\u6307\u5b9a\u7684\u5730\u65b9\uff08\u76f8\u5173\u7f51\u7ad9\u7684rpm\u5305\u5730\u5740\u6216\u672c\u5730\u7684rpm\u8def\u5f84\uff09\u81ea\u52a8\u4e0b\u8f7dRPM\u5305\u5e76\u4e14\u5b89\u88c5\uff0c\u80fd\u591f\u5f88\u597d\u7684\u89e3\u51b3\u4f9d\u8d56\u5173\u7cfb\u95ee\u9898\u3002

\r\n

\r\n\t2\u3001yum\u7684\u5de5\u4f5c\u539f\u7406\uff1f

\r\n

YUM\u7684\u57fa\u672c\u5de5\u4f5c\u673a\u5236\u5982\u4e0b\uff1a
\r\n\t\u670d\u52a1\u5668\u7aef\uff1a\u5728\u670d\u52a1\u5668\u4e0a\u9762\u5b58\u653e\u4e86\u6240\u6709\u7684RPM\u8f6f\u4ef6\u5305\uff0c\u7136\u540e\u4ee5\u76f8\u5173\u7684\u529f\u80fd\u53bb\u5206\u6790\u6bcf\u4e2aRPM\u6587\u4ef6\u7684\u4f9d\u8d56\u6027\u5173\u7cfb\uff0c\u5c06\u8fd9\u4e9b\u6570\u636e\u8bb0\u5f55\u6210\u6587\u4ef6\u5b58\u653e\u5728\u670d\u52a1\u5668\u7684\u67d0\u7279\u5b9a\u76ee\u5f55\u5185\u3002
\r\n\t\u5ba2\u6237\u7aef\uff1a\u5982\u679c\u9700\u8981\u5b89\u88c5\u67d0\u4e2a\u8f6f\u4ef6\u65f6\uff0c\u5148\u4e0b\u8f7d\u670d\u52a1\u5668\u4e0a\u9762\u8bb0\u5f55\u7684\u4f9d\u8d56\u6027\u5173\u7cfb\u6587\u4ef6(\u53ef\u901a\u8fc7WWW\u6216FTP\u65b9\u5f0f)\uff0c\u901a\u8fc7\u5bf9\u670d\u52a1\u5668\u7aef\u4e0b\u8f7d\u7684\u7eaa\u5f55\u6570\u636e\u8fdb\u884c\u5206\u6790\uff0c\u7136\u540e\u53d6\u5f97\u6240\u6709\u76f8\u5173\u7684\u8f6f\u4ef6\uff0c\u4e00\u6b21\u5168\u90e8\u4e0b\u8f7d\u4e0b\u6765\u8fdb\u884c\u5b89\u88c5\u3002

\r\n

yum\u6587\u4ef6\uff1a[root@linux-6 ~]#cd /etc/yum.repos.d/       //\u5728yum.repos.d \u76ee\u5f55\u4e0b\u5b58\u653e\u7684\u5c31\u662fyum\u6e90\u7684\u8bbe\u5b9a\u6587\u4ef6\u3002
\r\n\t[root@linux-6 ~]# vim /etc/yum.repos.d/rhel-source.repo     //\u6253\u5f00\u4e00\u4e2a\u6587\u4ef6\u540d\u53ebrhel-source.repo\u7684yum\u6e90\u7684\u8bbe\u5b9a\u6587\u4ef6
\r\n\t[rhel-source-beta]     //yum\u6e90\u7684\u540d\u79f0\uff0c\u8d77\u5230\u6807\u8bb0yum\u6e90\u7684\u4f5c\u7528\uff0c
\r\n\tname=Red Hat Enterprise Linux $releasever Beta - $basearch - Source  //\u4ec5\u4ec5\u662f\u5bf9yum\u7684\u63cf\u8ff0\uff0c\u4f5c\u7528\u662f\u4f7f\u7528\u6237\u53ef\u4ee5\u66f4\u5bb9\u6613\u7684\u8bfb\u61c2\u8be5\u6587\u4ef6\u3002
\r\n\tbaseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/$releasever/en/os/SRPMS/  //\u6211\u4eec\u6307\u5b9a\u7684\u67e5\u627e\u4f9d\u8d56\u5173\u7cfb\u8f6f\u4ef6\u7684\u8def\u5f84\uff0c\uff08\u8be5\u8def\u5f84\u53ef\u4ee5\u662f\u4e00\u4e2a\u7f51\u5740\u8def\u5f84\uff0c\u4e5f\u53ef\u4ee5\u662f\u672c\u673a\u4e0a\u7684\u4e00\u4e2a\u8def\u5f84\u3002\uff09ftp://   \u8868\u793a\u4f7f\u7528\u7684\u662fftp\u534f\u8bae\u8fde\u63a5\u8def\u5f84\uff0c\u8be5\u534f\u8bae\u4e00\u822c\u7528\u4e8e\u975e\u672c\u5730\u8fde\u63a5\uff0c\u672c\u5730yum\u4f7f\u7528\u7684\u534f\u8bae\u662f\uff1a"file://"\u6587\u4ef6\u534f\u8bae
\r\n\tenabled=0       //enabled \u662f\u80fd\u591f\u4f7f\u7528\u7684\u610f\u601d\uff0c0\u8868\u793abaseurl\u5b9a\u4e49\u7684\u8def\u5f84\u662f\u4e0d\u53ef\u7528\u7684\uff0c1\u8868\u793a\u53ef\u7528\u7684\u3002
\r\n\tgpgcheck=1  //gpgcheck\u8868\u793a\u662f\u5426\u8fdb\u884cgpg\u68c0\u6d4b\uff0c0\u8868\u793a\u4e0d\u8fdb\u884c\u68c0\u6d4b\uff0c1\u8868\u793a\u8fdb\u884c\u68c0\u6d4b\u3002gpg\u68c0\u67e5\u5c31\u662f\u5728\u4f7f\u7528yum\u5b89\u88c5\u8f6f\u4ef6\u662f\u5bf9\u8f6f\u4ef6\u8f93\u5165\u516c\u94a5\u8fdb\u884c\u9a8c\u8bc1\uff0c\u770b\u662f\u5426\u6765\u6e90\u5b89\u5168\u3002
\r\n\tgpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta   //\u8fdb\u884cgpg\u68c0\u67e5\u65f6\uff0c\u4f7f\u7528file\u534f\u8bae\u5bfc\u5165\u516c\u94a5\uff0c\u540e\u9762\u63a5\u7684\u8def\u5f84\u5c31\u662f\u7cfb\u7edf\u81ea\u5e26\u7684\u516c\u94a5\u5b58\u653e\u8def\u5f84\u3002

\r\n

\r\n\t3\u3001\u4e24\u79cdyum\u6e90\uff1a\u672c\u5730yum\u6e90\u548c\u7f51\u7edcyum\u6e90\uff08ftp://\u534f\u8bae\u94fe\u63a5\u3001HTTP://\u534f\u8bae\uff09

\r\n

\u672c\u6b21\u4e3b\u8981\u8bb2\u672c\u5730yum\u6e90
\r\n\t\u642d\u5efa\u672c\u5730yum\u6e90\uff0c\u6211\u4eec\u9996\u5148\u5c31\u8981\u6709\u63d0\u4f9b\u6e90\u7684\u6587\u4ef6\u5305\uff0c\u4e00\u822c\u7684Linux\u7cfb\u7edf\u7684\u955c\u50cf\u6587\u4ef6iso\u4e2d\u5c31\u542b\u6709\u642d\u5efayum\u6e90\u6240\u9700\u7684rpm\u6587\u4ef6\u3002\u82e5\u662f\u6ca1\u6709\u5efa\u8bae\u5230\u7f51\u4e0a\u4e0b\u8f7d\uff0c\u6ce8\u610f\u8981\u548c\u81ea\u8eab\u4f7f\u7528\u7684\u7cfb\u7edf\u7248\u672c\u4e00\u81f4\u3002
\r\n\t
\r\n\t3.1\u786e\u5b9aiso\u955c\u50cf\u6587\u4ef6\u7684\u4f4d\u7f6e    //\u5176\u5b9e\u662f\u56e0\u4e3aiso\u6587\u4ef6\u4e2d\u6709yum\u6e90\u6240\u9700\u7684rpm\u5305\uff0c\u597d\u5728\u4e0b\u4e00\u6b65\u4e2d\u5b9e\u65bd\u6302\u8f7d\uff0c\u82e5\u662f\u77e5\u9053\u4f60\u7535\u8111\u4e0a\u7684iso\u6587\u4ef6\u5728\u4ec0\u4e48\u5730\u65b9\uff0c\u5219\u65e0\u9700\u8fd9\u6b65\u3002
\r\n\t
\r\n\t3.2\u65b0\u5efa\u4e00\u4e2a\u4ed3\u5e93\u76ee\u5f55                  //\u7528\u6765\u5b58\u653e\u672c\u5730yum\u6e90\u3002
\r\n\t[root@linux-6 ~]# mkdir  /iso    //\u65b0\u5efaiso\u76ee\u5f55\u7528\u4f5c\u6302\u8f7d\u955c\u50cf\u6587\u4ef6
\r\n\t
\r\n\t3.3.1\u6302\u8f7d\u955c\u50cf\u6587\u4ef6\u5230/iso\u76ee\u5f55        //\u4e3b\u8981\u662f\u83b7\u5f97iso\u8f6f\u4ef6
\r\n\t[root@linux-6 ~]# mount -o loop /***.iso  /iso       // /***.iso \u8868\u793a\u955c\u50cf\u6587\u4ef6\u6240\u5728\u672c\u673a\u4e0a\u7684\u7edd\u5bf9\u8def\u5f84\u3002
\r\n\t3.3.2\u5982\u679c\u4f60\u6709\u5149\u9a71\u4e5f\u6709\u5149\u76d8\uff0c\u5e76\u4e14\u5149\u9a71\u5df2\u7ecf\u6302\u8f7d\uff0c\u5219\u53ea\u9700\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4:
\r\n\t[root@linux-6 ~]# mount  /dev/cdrom  /iso

\r\n

\r\n\t4.\u67e5\u770b\u6302\u8f7d       //\u4e3b\u8981\u662f\u786e\u8ba4\u6302\u8f7d\u662f\u5426\u6210\u529f

\r\n

[root@teacher ~]# df -Th
\r\n\tFilesystem    Type    Size  Used Avail Use% Mounted on
\r\n\t/dev/sda3     ext4    321G  142G  163G  47% /
\r\n\ttmpfs        tmpfs    1.9G  336K  1.9G   1% /dev/shm
\r\n\t/dev/sda1     ext4     92G  233M   87G   1% /boot
\r\n\t/var/ftp/software/iso/rhel6.3.x86.iso
\r\n\t          iso9660    2.9G  2.9G     0 100% /iso
\r\n\t[root@teacher ~]# 

\r\n

\r\n\t5.\u5728yum\u6e90\u6587\u4ef6\u4e2d\u6307\u5b9aiso\u955c\u50cf\u6587\u4ef6\u6240\u6302\u8f7d\u5230\u7684\u76ee\u5f55\u7684\u8def\u5f84\uff0c\u5e76\u5c06\u4f7f\u7528\u7684\u534f\u8bae\u6539\u6210file\u534f\u8bae\u3002

\r\n

[root@teacher ~]#  vim /etc/yum.repos.d/rhel-source.repo
\r\n\t
\r\n\t[rhel-source-beta]
\r\n\tname=Red Hat Enterprise Linux $releasever Beta - $basearch - Source
\r\n\tbaseurl=file\uff1a///iso           //\u8fd9\u662f\u4e3b\u8981\u7684\u4e0d\u540c\u4e4b\u5904\uff0c\u4f7f\u7528\u7684\u662ffile\u534f\u8bae\uff0c\u6307\u5b9a\u7684\u8def\u5f84\u662f/iso
\r\n\tenabled=1
\r\n\tgpgcheck=0
\r\n\tgpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

\r\n

\r\n\t6.\u6e05\u9664\u7f13\u5b58\uff0c\u4f7f\u6700\u65b0\u7684yum\u914d\u7f6e\u751f\u6548\u3002

\r\n

[root@linux-6 ~]# yum clean all
\r\n\t
\r\n\t[root@linux-6 ~]# yum list

\r\n"}]