{"id":950,"date":"2015-05-15T09:40:17","date_gmt":"2015-05-15T01:40:17","guid":{"rendered":"http:\/\/163.26.205.2\/~teablog\/tea1001\/?p=950"},"modified":"2018-12-27T14:56:57","modified_gmt":"2018-12-27T06:56:57","slug":"ubuntu-14-04-lts-%e5%ae%89%e8%a3%9d","status":"publish","type":"post","link":"http:\/\/163.26.205.2\/~teablog\/tea1001\/?p=950","title":{"rendered":"Ubuntu 14.04 LTS \u684c\u9762\u7248\u5b89\u88dd"},"content":{"rendered":"<p>Ubuntu 14.04 LTS \u684c\u9762\u7248\u5b89\u88dd<\/p>\n<p>\u5efa\u8b70HD\u5206\u5272\uff1a\/\u2192100G\u3001\/home\u21921000G\u3001\/home2\u2192\u5269\u4e0b<\/p>\n<p>\u8a2d\u5b9a\u7db2\u8def\uff1a<br \/>\nDNS\uff1a163.26.200.1 , 163.26.1.1<br \/>\nDNS\uff1a2001:288:7200:1::1 , 2001:288:7200:1::26<\/p>\n<p>\u66f4\u6539<span class=\"titlename\">\u5c07\u9810\u8a2d\u7684<a href=\"http:\/\/blog.xuite.net\/yh96301\/blog\/242518254-Ubuntu+14.04%E5%B0%87%E9%A0%90%E8%A8%AD%E7%9A%84%E8%BC%B8%E5%85%A5%E6%B3%95%E6%9B%B4%E6%94%B9%E7%82%BA%E8%8B%B1%E6%96%87\">\u8f38\u5165\u6cd5\u66f4\u6539\u9810\u8a2d\u70ba\u82f1\u6587<\/a><\/span>\uff0c<br \/>\n<span style=\"color: #ff0000\">(16.04<\/span> \u65b0\u589e\u4e2d\u6587\u9177\u97f3\u8f38\u5165\u6cd5\uff0c\u7cfb\u7d71\u8a2d\u5b9a\u503c\u2192\u8a9e\u8a00\u652f\u63f4\u2192\u9375\u76e4\u8f38\u5165\u6cd5\u7cfb\u7d71\u2192\u9078\u64c7fcitx(<span style=\"color: #ff0000\">ibus\u7121\u8f38\u5165\u6cd5\u53ef\u9078<\/span>)\u2192\u95dc\u9589(\u9700\u767b\u51fa))<\/p>\n<p>\u8a2d\u5b9a\u684c\u9762\u5de5\u4f5c\u5340:\u7cfb\u7d71\u8a2d\u5b9a\u503c-&gt;\u5916\u89c0-&gt;\u904b\u4f5c\u65b9\u5f0f-&gt;\u555f\u7528\u5de5\u4f5c\u5340<\/p>\n<p>sudo passswd root<\/p>\n<p>su\u767b\u5165(\u8edf\u9ad4\u66f4\u65b0)<\/p>\n<p>(<span style=\"color: #ff0000\">\u6e2c\u8a66\u5148\u88ddmc\u53casynaptic\uff0c\u5176\u4ed6\u7531synaptic\u4f86\u5b89\u88dd<\/span>)<br \/>\napt-get update<br \/>\napt-get upgrade<br \/>\napt-get install <span style=\"color: #0000ff\">tasksel mc synaptic<\/span><br \/>\napt-get clean<\/p>\n<p>tasksel\u5957\u4ef6\u7ba1\u7406\u7a0b\u5f0f\u5b89\u88dd\uff1a<span style=\"color: #0000ff\">openSSH server\u3001LAMP server\u3001Samba file Server<br \/>\n\uff08<span style=\"color: #ff0000\">\u6ce8\u610f\uff1a\u5957\u4ef6\u9078\u53d6\u6642\u6ce8\u610f\u4e0d\u8981\u5c07\u539f\u9078\u53d6\u7684\u5957\u4ef6\u53d6\u6d88\u52fe\u9078\uff0c\u4e0d\u7136\u6703\u79fb\u9664\u8a72\u5957\u4ef6<\/span>\uff09<br \/>\n<\/span><\/p>\n<p>Synaptic\u5957\u4ef6\u7ba1\u7406\u7a0b&gt;\u8a2d\u5b9a&gt;\u504f\u597d\u8a2d\u5b9a&gt;\u767c\u884c\u7248\u672c&gt;\u7e3d\u662f\u504f\u597d\u5df2\u5b89\u88dd\u7248\u672c<br \/>\n\u5b89\u88dd\uff1a\uff08rcconf\u5df2\u7d93\u4e0d\u572818.04\uff09<br \/>\n<span style=\"color: #0000ff\">apt install proftpd-basic x11vnc isc-dhcp-server bridge-utils\u00a0quota<br \/>\n<\/span><\/p>\n<p>\u8a2d\u5b9a\u53ef\u8b93root\u767b\u5165\u684c\u9762\uff1a<br \/>\n\/usr\/share\/lightdm\/lightdm.conf.d\/50-ubuntu.conf<br \/>\n\u589e\u52a0\u4e00\u689d\uff1agreeter-show-manual-login=true<br \/>\n(<span style=\"color: #ff0000\">\u91cd\u65b0\u958b\u6a5froot\u767b\u5165\u51fa\u73fe.profile\u932f\u8aa4\u8a0a\u606f\uff0c\u522a\u9664.\/profile<\/span>)<\/p>\n<table>\n<tbody>\n<tr>\n<td>\u8cc7\u6599\u5eab\u65b0\u589e\u8868\u683c\u5982\u679c\u4e0d\u6307\u5b9a\u7de8\u78bc\uff0c\u9810\u8a2d\u6703\u7528latin1<br \/>\nvi \/etc\/mysql\/my.cnf\u627e\u5230 [client] \u5340\u584a\uff0c\u52a0\u5165default-character-set=utf8\u627e\u5230 [mysqld] \u5340\u584a\uff0c\u00a0\u52a0\u5165<br \/>\ncharacter-set-server=utf8<br \/>\ncollation-server=utf8_general_ci<br \/>\ninit_connect=&#8217;SET NAMES utf8&#8242;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td><strong><span style=\"color: #ff0000\">\u9084\u539f\u8cc7\u6599<\/span><\/strong><br \/>\ngroup,group-,gshadow,gshadow-,passwd,passwd-,shadow,shadow-,<br \/>\n<strong><span style=\"color: #0000ff\"><span style=\"color: #ff0000\">******<\/span>\u6ce8\u610f\uff1a\u82e5\u4ee5openoffice\u4fee\u6539\uff0c\u5fc5\u9808\u518d\u4ee5\u6587\u5b57\u7de8\u8f2f\u5668\u522a\u6389\u64cb\u982d\u7b2c1\u500b&#8221;.&#8221;\uff0c\u4e0d\u7136\u6703\u5f88\u6158\u3002<span style=\"color: #ff0000\">\u52d9\u5fc5\u6aa2\u67e5******\u3001\u5efa\u8b70\u7528gedit\u3002<\/span><\/span><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5099\u4efdcopy \/etc to \u5982\uff1a\/home\/_backup\/2015-1204<\/p>\n<p>\u4fee\u6539\/etc\/default\/rsync\uff0c\u8a2drsync_enable=true<br \/>\n\u8a2d\u5b9a\/etc\/rsync.conf\u53carsync.secret\uff0cadmin:Txxxxxxxx<br \/>\nrsync \u82e5\u5728rcconf\u5df2\u555f\u52d5\u4f46\u5931\u6548\uff0c\u5148\u53d6\u6d88-\u78ba\u5b9a\u5f8c\uff0c\u518d\u555f\u7528<del>\u3002<\/del><\/p>\n<p><del>\/etc\/default\/rcS\uff0c\u7136\u5f8c\u627e\u5230 UTC\uff1d<span style=\"color: #0000ff\">yes<\/span>\u90a3\u4e00\u884c\uff0c\u5c07\u4e4b\u6539\u70ba UTC=<strong><span style=\"color: #ff0000\">no<\/span><\/strong><\/del><br \/>\n<del> \u7de8\u8f2fsshd_config(\u8b93root\u53ef\u4ee5\u767b\u5165)<\/del><br \/>\n<del> $sudo \/etc\/ssh\/sshd_config<\/del><br \/>\n<del> <span style=\"color: #ff0000\">#<\/span>PermitRootLogin\u00a0without-password (<span style=\"color: #0000ff\">14.04\u7248<\/span>)<\/del><br \/>\n<del> <span style=\"color: #ff0000\">#<\/span>PermitRootLogin yes (<span style=\"color: #0000ff\">12.04\u7248<\/span>)<\/del><br \/>\n<del> (<span style=\"color: #ff0000\">16.04<\/span><span style=\"color: #ff6600\">\u5df2\u77e5\u820a\u7248putty\u7121\u6cd5\u767b\u5165\uff0c&#8221;Couldn&#8217;t agree a client-to-server cipher&#8221;\uff0c<span style=\"color: #ff6600\">\u66f4\u65b0\u5f8c\u53ef\u7528\u4e00\u822c\u5e33\u865f\u767b\u5165\u3002<\/span>mobaXterm\u82e5\u7528root\u4e0d\u80fd\u767b\u5165\uff0c\u4f46\u4e00\u822c\u5e33\u865f\u53ef\u4ee5\uff0c\u767b\u5165\u5f8c\u518dsu \u5230root\u3002)<\/span><\/del><\/p>\n<p>\u8907\u88fd\u9632\u706b\u7246\u898f\u5247\u5230\/lib\/ufw<\/p>\n<table>\n<tbody>\n<tr>\n<td>\u8a2d\u5b9ax11vnc\u3001<a href=\"http:\/\/blog.csdn.net\/feierky\/article\/details\/20934335\">\u5b89\u88dd\u8aaa\u660e<\/a>\u3002<br \/>\nx11vnc -storepasswd<br \/>\n\u6ce8\u610f\u5bc6\u78bc\u4f4d\u7f6e\u662f\u5426\u8207\u4e0b\u8ff0\u76f8\u540c\/root\/.vnc\/passwd\u624b\u52d5\u555f\u7528<br \/>\n\u5c07\u4ee5\u4e0b\u5b58\u6210x11v.sh\uff0crc.local\u52a0\u5165\u958b\u6a5f\u555f\u7528<br \/>\n<span style=\"color: #ff0000\">\/usr\/bin\/<\/span>x11vnc\u00a0-display\u00a0:0\u00a0-auth\u00a0\/var\/run\/<span style=\"color: #ff0000\">lightdm<\/span>\/root\/:0\u00a0-forever\u00a0-bg\u00a0-o\u00a0\/var\/log\/x11vnc.log\u00a0-rfbauth\u00a0\/root\/.vnc\/passwd -rfbport\u00a05900\u5982\u679c\u8a2d\u5b9a\u932f\u8aa4\uff0c\u5148kill x11vnc\u518d\u555f\u52d5\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td>samba<br \/>\n\u66f4\u65b0\/var\/lib\/samba\/passdb.tdb(14.04)<br \/>\n\u66f4\u65b0\/var\/lib\/samba\/private\/passdb.tdb(<span style=\"color: #ff0000\">16.04<\/span>)<span class=\"term_command\">\/etc\/init.d\/smbd restart<\/span><br \/>\n<span class=\"term_command\">\/etc\/init.d\/nmbd restart<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table>\n<tbody>\n<tr>\n<td><strong>\u5b89\u88dd webmin<br \/>\n<\/strong><span style=\"color: #0000ff\">(\u5148apt-get install libauthen-pam-perl apt-show-versions)<\/span><strong><br \/>\n<\/strong>1. \u8acb\u81f3<a href=\"http:\/\/www.phpmyadmin.net\/home_page\/downloads.php\">\u5b98\u65b9<\/a>\u7db2\u7ad9\u4e0b\u8f09\u6700\u65b0\u7248\u672c\u3002dpkg -i<br \/>\n2. \u5b58\u6a94\uff0c\u6ed1\u9f20\u53f3\u9375\uff0c\u4ee5\u8edf\u9ad4\u4e2d\u5fc3\u958b\u555f\u3002<br \/>\n3.\u8a2d\u5b9asamba\u8207Unix\u540c\u6b65\uff0c\u8f49\u63dbsys\u5230samba\uff0c\u505c\u6b62samba<br \/>\n(service samba stop)\uff0c\u8907\u88fdpassdb.tdb\u3002<br \/>\n(\u4f4d\u7f6e\u53ef\u80fd\u4e0d\u4e00\u6a23\/var\/lib\/samba)\uff0c\u555f\u52d5samba\u3002<br \/>\n4.\u5148\u8a2d\u5b9awebmin\u7fa4\u7d44\uff0c\u8a2d\u5b9aWebmin \u8207Unix\u540c\u6b65\uff1awebmin&gt;webmin\u4f7f\u7528\u8005&gt;\u8f49\u63dbUnix\u5230Webmin\u4f7f\u7528\u8005&gt;\u7d44\u614bUnix \u4f7f\u7528\u8005\u540c\u6b65&gt;<br \/>\n(\u5efa\u8b70\u4f7f\u7528Unix\u7684\u7fa4\u7d44\u8f49\u63db\u8f03\u65b9\u4fbf)<br \/>\n5.\u8a2d\u5b9a\u53ef\u4f7f\u7528\u6a21\u7d44\uff1a<br \/>\n\u9ede\u9078Webmin\u7fa4\u7d44(\u5982tea_1)&gt;Available Webmin modules&gt;\u9ede\u9078&#8221;\u8b8a\u66f4\u5bc6\u78bc&#8221;(\u4e26\u6253V)&gt;\u00a0\u9ede\u9078&#8221;\u53ea\u6709\u4f7f\u7528\u8005&#8221;<br \/>\n6.Webmin&gt;Webmin \u8a2d\u5b9a(\u6216\u7d44\u614b)&gt;\u7d22\u5f15\u9801\u9078\u9805&gt;\u5982\u679c\u4f7f\u7528\u8005\u53ea\u6709\u4e00\u500b\u6a21\u7d44\u53ef\u4f7f\u7528\u6642\uff0c\u662f\u5426\u76f4\u63a5\u8df3\u5230\u8a72\u6a21\u7d44\u4e2d\uff1f\u9078\u662f<br \/>\n7.\u767b\u5165\u5f8c\uff0c\u76f4\u63a5\u5230\u6a21\u7d44-\u9078&#8221;\u8b8a\u66f4\u5bc6\u78bc&#8221;<br \/>\n<span style=\"color: #0000ff\">8.\u4f5c\u6279\u6b21\u6a94\u532f\u5165\u4f86&#8221;\u65b0\u589e\u3001\u4fee\u6539\u53ca\u522a\u9664&#8221;\u4f7f\u7528\u8005\u6642\uff0c\u9808\u6ce8\u610f\u5148\u5230<span style=\"color: #ff0000\">\u7aef\u6a5f\u6a5f<\/span>\u6a21\u5f0f\uff0c\u6aa2\u67e5\u6a94\u6848\u958b\u982d\u7b2c1\u884c\u524d\u9762\u6709\u7121\u5c0f\u9ede(windowx\u8996\u7a97\u770b\u4e0d\u5230)\uff0c\u6bcf\u5217\u6700\u5f8c\u662f\u5426\u6709&#8221;CTRL+M&#8221;\u3002\u6709\u7684\u8a71\u5fc5\u9808\u522a\u9664\uff0c\u532f\u5165\u624d\u4e0d\u6703\u51fa\u554f\u984c\u3002<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>===========================================<\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"color: #000000\">(14.04)(16.04\u4e0d\u9069\u7528\uff0c\u5df2\u66f4\u65b0\u5230php7.0)<br \/>\n\u5b89\u88dd\u300cApahce2+PHP \u7db2\u9801\u66a8 MySQL\u8cc7\u6599\u5eab\u4f3a\u670d\u5668\u300d<span id=\".E9.83.B5.E4.BB.B6.E4.BC.BA.E6.9C.8D.E5.A5.97.E4.BB.B6.E5.AE.89.E8.A3.9D\" class=\"mw-headline\" style=\"color: #ff0000\">(\u6587\u5b57\u6a21\u5f0f)<\/span><br \/>\napt-get install apache2 php5 php5-gd php-pear php-apc libapache2-mod-php5 php-date imagemagick php5-imagick php5-mcrypt php5-mysql php5-xmlrpc php5-xsl php5-curl mysql-server<br \/>\n<\/span><\/p>\n<ol>\n<li>\u5217\u51fa\u6a21\u7d44\u771f\u5be6\u540d\u7a31<br \/>\nroot@dns:~# <span style=\"color: blue\">cd \/etc\/apache2\/mods-available<\/span><br \/>\nroot@dns:~# <span style=\"color: blue\">ls<\/span><\/li>\n<li>\u555f\u7528\u6240\u627e\u5230\u6a21\u7d44\uff0c\u4f8b\u5982\uff1a\u555f\u7528\u500b\u4eba\u7db2\u9801\u6a21\u7d44<br \/>\n\/etc\/apache2\/mods-available\/userdir.conf<br \/>\nuserdir.conf Directory \u591a\u4e00\u5c64\u8a2d\u5b9a<br \/>\n\u627e\u5230\u7db2\u7ad9\u76ee\u9304\u8a2d\u5b9a\uff08\u6216\u4f7f\u7528\u8005\u7db2\u7ad9\u76ee\u9304\u8a2d\u5b9a\uff09\uff0c\u770b\u770b\u5176\u4e2d\u7684 AllowOverride \u8a2d\u5b9a\u8acb\u5c07\u4e4b\u8a2d\u6210\u300cAllowOverride All\u300d\u6216\u8005\u300cAllowOverride <span style=\"color: #ff0000\">Options <\/span>AuthConfig FileInfo Limit\u300d\uff08\u91cd\u9ede\u5728\u90a3\u500b<span style=\"color: #ff0000\"> Options <\/span>\u4e00\u5b9a\u8981\u6709\uff09<br \/>\nroot@dns:~#<\/p>\n<h4><strong><span style=\"color: #ff0000\">a2enmod userdir rewrite(wordpress\u7528)<\/span><\/strong><\/h4>\n<p><span style=\"color: red\">\u6ce8\u610f1\uff1a\u6a21\u7d44\u8a2d\u5b9a\u6a94\u5927\u591a\u6703\u6709 *.load \u53ca *.conf \u4f46\u555f\u7528\u6642\uff0c\u4e0d\u7528\u8f38\u5165\u526f\u6a94\u540d<br \/>\n<span style=\"color: #ff0000\"><strong>\u6ce8\u610f2\uff1auserdir.conf\u572812.04\u820714.04\u662f\u4e0d\u540c\u7684\uff0c\u4e0d\u8981\u4e92\u7528\u3002<\/strong> <\/span><\/span><\/li>\n<li><span style=\"color: red\"><span style=\"color: #0000ff\">sites-available\/000-default.conf \u4fee\u6539\u8a2d\u5b9aServerName\u3001ServerAdmin\u53caDocumentRoot<\/span><br \/>\n<\/span><\/li>\n<li>\u91cd\u65b0\u555f\u52d5 Apache2<br \/>\nroot@dns:~# <span style=\"color: blue\">service apache2 restart<\/span><\/li>\n<li>\u51fa\u73fe<span style=\"color: #ff0000\">apache2: Could not reliably determine the server&#8217;s fully qualified domain name, using 127.0.0.1. Set the &#8216;ServerName&#8217; directive globally to suppress this message<br \/>\n<span style=\"color: #000000\">\u5c07\/etc\/hostname\u6539\u70baFQDN<\/span><\/span><\/li>\n<\/ol>\n<table>\n<tbody>\n<tr>\n<td>\n<h5>\/etc\/php5\/apache2\/php.ini\u5176\u4e2d\u8acb\u9032\u884c\u4ee5\u4e0b3\u7a2e\u8a2d\u5b9a<\/h5>\n<p><span style=\"color: #ff0000\"><span style=\"color: #0000ff\">short_open_tag = on<\/span> <\/span>(212\u884c)<br \/>\n(\u89e3\u6c7a&lt;? ?&gt; \u8207 &lt;?php ?&gt;\u7684\u554f\u984c)<\/p>\n<p><span style=\"color: #0000ff\">display_errors=On<\/span> (479\u884c)<br \/>\n\u5426\u5247\u7db2\u7ad9\u8b8a\u6210\u7a7a\u767d\u6642\u5c07\u5f88\u96e3\u9032\u884c\u9664\u932f\uff0c\u4e0a\u7dda\u5f8c\u6539\u70ba<span style=\"font-family: Liberation Serif,serif\"><span style=\"font-size: medium\"><span lang=\"en-US\">off<\/span><\/span><\/span>\u3002<\/p>\n<p><span style=\"color: #0000ff\">date.timezone=Asia\/Taipei<\/span> (879\u884c)<br \/>\n\u4e3b\u6a5f\u9810\u8a2d\u6642\u5340\uff0c\u5426\u5247\u7cfb\u7d71\u6293\u5230\u7684\u6642\u9593\u6703\u6709\u8aa4\u5dee\u516b\u5c0f\u6642\u3002<\/p>\n<p><span style=\"color: #0000ff\">post_max_size=48M(663\u884c)<\/span><\/p>\n<p><span style=\"color: #0000ff\">upload_max_filesize=24M(805\u884c)<\/span><\/p>\n<p><span style=\"color: #0000ff\">max_file_upload=200(808\u884c)<\/span><\/p>\n<p><del><span style=\"color: #0000ff\">register_globals=Off<\/span><\/del><\/p>\n<p>&#8230;..<br \/>\n\/etc\/apache2\/mods-available\/php5.conf<br \/>\n# To re-enable php in user directories comment the following lines<br \/>\n# (from &lt;IfModule &#8230;&gt; to &lt;\/IfModule&gt;.) Do NOT set it to On as it<br \/>\n# prevents .htaccess files from disabling it.<br \/>\n<span style=\"color: #ff0000\">#<\/span>\u00a0\u00a0\u00a0\u00a0&lt;IfModule mod_userdir.c&gt;<br \/>\n<span style=\"color: #ff0000\">#<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;Directory \/home\/*\/public_html&gt;<br \/>\n<span style=\"color: #ff0000\">#<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0php_admin_value engine Off<br \/>\n<span style=\"color: #ff0000\">#<\/span>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&lt;\/Directory&gt;<br \/>\n<span style=\"color: #ff0000\">#<\/span>\u00a0\u00a0\u00a0\u00a0&lt;\/IfModule&gt;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table>\n<tbody>\n<tr>\n<td>\u00a07.\u5b89\u88ddproftp(standalone)<br \/>\n\u4fee\u6539proftp\u8a2d\u5b9a\uff0c\u53d6\u6d88# DefaultRoot ~\u7684#\u3002<br \/>\nServerName\u88e1\u9762\u4e0d\u80fd\u6709\u7a7a\u683c\u3002\u53ef\u4ee5\u91cd\u65b0\u555f\u52d5\uff0c\u4f46\u4e0d\u80fd\u9023\u7dda\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table>\n<tbody>\n<tr style=\"height: 240.4px\">\n<td style=\"height: 240.4px\">\u00a0<span id=\".E9.83.B5.E4.BB.B6.E4.BC.BA.E6.9C.8D.E5.A5.97.E4.BB.B6.E5.AE.89.E8.A3.9D\" class=\"mw-headline\">\u90f5\u4ef6\u4f3a\u670d\u5957\u4ef6\u5b89\u88dd<span style=\"color: #ff0000\">(\u6587\u5b57\u6a21\u5f0f)<span style=\"color: #000000\">&#8211;<\/span><\/span><\/span>\u5b89\u88dd SMTP \u53ca POP3\/IMAP \u76f8\u95dc\u5957\u4ef6<br \/>\nroot@mail:~# <span style=\"color: blue\">apt-get install postfix dovecot-pop3d dovecot-imapd<\/span> <del><span style=\"color: #0000ff\">dovecot-postfix<\/span><\/del><\/p>\n<ul>\n<li><span style=\"color: #ff0000\">hostname\uff1as3.htaes.tn.edu.tw<\/span><\/li>\n<li>General type of mail configuration: \u3010<span style=\"color: #ff0000\">Internet Site<\/span>\u3011<\/li>\n<li><span style=\"color: #ff0000\">System mail name: <span style=\"color: #0000ff\">htaes.tn.edu.tw<\/span><br \/>\n\uff08\u8f38\u5165\u60a8\u7684 domain name\uff09<\/span><\/li>\n<li>\/etc\/dovecot\/dovecot.conf<br \/>\nlisten = *, :: <span style=\"color: #ff0000\">(\u53d6\u6d88\u524d\u9762\u7684\uff03)<\/span><\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color: #000000\">6.synaptic <\/span>phpmyadmin<\/p>\n<table style=\"height: 236px\" width=\"521\">\n<tbody>\n<tr>\n<td>\u00a0<strong>\u5b89\u88dd phpMyAdmin(<span style=\"color: #ff0000\">\u904e\u7a0b\u9078\u64c7NO,reinstall<\/span>)<br \/>\n<\/strong>1.\u78ba\u8a8dmysql\u662f\u5426\u555f\u52d5\uff0c\u8907\u88fdconfig.sample.inc.php\u6210config.inc.php\u3002<br \/>\n(<del>\/etc\/phpmyadmin<\/del>,\/usr\/share\/phpmyadmin)<br \/>\n2. \u4fee\u6539config.inc.php<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;auth_type&#8217;] = &#8216;<span style=\"color: #ff0000\">http<\/span>&#8216;;\u00a0\u00a0\/* cookie\u6539\u6210http *\/<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;AllowNoPassword&#8217;] = <span style=\"color: #ff0000\">true<\/span>;\u00a0\u00a0\/*\u8981\u6539\u6210true\uff0c\u56e0\u70baMySQL root\u9810\u8a2d\u70ba\u7a7a\u767d,\u7981\u6b62\u7121\u5bc6\u78bc\u767b\u5165 *\/<br \/>\n3.<span style=\"color: #0000ff\">\u91cd\u65b0\u555f\u52d5reboot<\/span><br \/>\n\u8f38\u5165 http:\/\/localhost\/phpmyadmin\/index.php \uff0c\u5c31\u53ef\u4ee5\u9032\u5165phpmyadmin\u4f86\u7ba1\u7406MySQL\u4e86\u3002<span style=\"color: #ff0000\">\u6ce8\u610f\uff1a\u4e0d\u8981\u7528rcconf\u4f86\u555f\u52d5mysql\uff0cmysqladmin,\/etc\/init\u5df2\u555f\u52d5\u3002<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table>\n<tbody>\n<tr>\n<td>wordpress<\/p>\n<p>1.\u8cc7\u6599\u5eab\u8907\u88fd\u8207\u5b8c\u6574<br \/>\n2.\u572814.04\u66ab\u6642\u522a\u9664.htaccess\uff0c12.04\u4fdd\u7559\u3002<br \/>\n3.wp-config.php\u9700\u4fee\u6539&#8221;define(&#8216;DOMAIN_CURRENT_SITE&#8217;, &#8216;163.026.205<span style=\"color: #0000ff\">.<strong>x<\/strong>&#8216;)<\/span><\/p>\n<p><span style=\"color: #0000ff\">sql\u6a94\u5c07163.26.205.2\u7f6e\u63db\u70ba163.26.205.3<br \/>\n<span style=\"color: #ff0000\">a2enmod rewrite(\u589e\u52a0apache2\u7684\u6a21\u7d44\uff0cwordpress\u7528)<\/span><br \/>\n<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>1.3\u5b89\u88ddGufw\u9632\u706b\u7246\u7ba1\u7406\u7a0b\u5f0f<\/p>\n<p>\u6253\u958b\u9632\u706b\u7246\uff0c\u52a0\u5165\u4ee5\u4e0b\u8a2d\u5b9a (\u898f\u5247\u5728\/lib\/ufw)<br \/>\n\u65b0\u589e873 rsync\uff0c10000 webmin\uff0c5900:5910(\u50c5tcp) x11vnc\uff0c122.117.219.xxx\u3002<\/p>\n<p><span style=\"color: #ff0000\">16.04\u76ee\u524d\u53ef\u5b89\u88dd\u4f46\u7121\u6cd5\u958b\u555f\u8a2d\u5b9a\u3002<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td>&nbsp;<\/p>\n<table>\n<tbody>\n<tr>\n<td>pfn\u5b89\u88dd\u7684\u554f\u984c\uff1a<\/p>\n<p>[PHP] PHP 5.4 \u7684 session \u5beb\u6cd5\u8b8a\u9769<\/p>\n<p>\u524d\u9663\u5b50\u628a PHP \u5347\u7d1a\u52305.4\u5f8c<\/p>\n<p>\u767c\u73fe\u6709\u7528\u5230session\u7684\u7a0b\u5f0f\u90fd\u7206\u4e86<\/p>\n<p>Fatal error: Call to undefined function session_register()<\/p>\n<p>google\u4e00\u4e0b<\/p>\n<p>\u539f\u4f86\u662fPHP 5.4\u7684session\u5beb\u6cd5\u6709\u6539\u8b8a<\/p>\n<p>PHP 5.4 \u79fb\u9664\u4e86 session_is_registered() \u3001 session_register() \u8207 session_unregister() \u4e09\u652ffunction\u3002<\/p>\n<p>Session \u7684\u64cd\u4f5c\u66f4\u7c21\u5316\u4e86\u4e00\u4e9b\u3002<\/p>\n<p>\/\/\u5224\u65b7 Session \u662f\u5426\u5b58\u5728<br \/>\nif( isset($_SESSION[&#8216;foo&#8217;]) )<br \/>\necho &#8216;session is exist&#8217;;<br \/>\n\/\/\u8a3b\u518a Session<br \/>\n$_SESSION[&#8216;foo&#8217;] = &#8216;bar&#8217;;<br \/>\n\/\/\u79fb\u9664 Session<br \/>\nunset($_SESSION[&#8216;foo&#8217;]);<\/p>\n<p>\u9019\u6a23\u64cd\u4f5c\u5176\u5be6\u66f4\u76f4\u89ba\uff0c\u4e5f\u4e0d\u9700\u8981\u984d\u5916\u591a\u8a18\u51fd\u5f0f(\u500b\u4eba\u5f88\u5065\u5fd8)\uff0c\u9019\u4e09\u652f\u51fd\u5f0f\u65e9\u8a72\u79fb\u9664\u4e86\u3002<\/p>\n<p>\u4f46\u662f\u5927\u5927\u5c0f\u5c0f\u7684\u820a\u7cfb\u7d71\u6539\u8d77\u4f86\u4e5f\u662f\u4e0d\u5c11\u9ebb\u7169<\/p>\n<p>\u6240\u4ee5\u53e6\u4e00\u500b\u505a\u6cd5\u5c31\u662f\u628a\u79fb\u9664\u7684function\u5728script\u57f7\u884c\u524d\u5148\u5b9a\u7fa9\u597d\uff1a<\/p>\n<p>&lt;?php<br \/>\nif (!function_exists(&#8216;session_register&#8217;)) {<br \/>\nfunction session_register(){<br \/>\n$args = func_get_args();<br \/>\nforeach ($args as $key){<br \/>\n$_SESSION[ $key ] = $GLOBALS[ $key ];<br \/>\n}<br \/>\n}<br \/>\n}<br \/>\nif (!function_exists(&#8216;session_is_registered&#8217;)) {<br \/>\nfunction session_is_registered( $key ){<br \/>\nreturn isset( $_SESSION[ $key ] );<br \/>\n}<br \/>\n}<br \/>\nif (!function_exists(&#8216;session_unregister&#8217;)) {<br \/>\nfunction session_unregister( $key ){<br \/>\nunset( $_SESSION[ $key ] );<br \/>\n}<br \/>\n}<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table>\n<tbody>\n<tr>\n<td>\u7de8\u8f2ffatab\uff1a\u5728\/home fefaults,<span style=\"color: #ff0000\">usrquota,gruquota<\/span><\/p>\n<p>\u5148\u5b89\u88ddquota(apt-get install quota)<\/p>\n<p>reboot<br \/>\nquotaoff -avug<br \/>\ncd \/home<br \/>\ntouch aquota.user aquota.group<br \/>\nquotacheck -ugavmc<br \/>\nquotaon -avug<\/p>\n<p>edquota\uff0c\u8907\u88fdqupta<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table>\n<tbody>\n<tr>\n<td>\u9808\u5099\u4efd\u9084\u539f\u8cc7\u6599\uff1a<br \/>\nLinux\u53caSamba\u4f7f\u7528\u8005\u5e33\u5bc6\u53ca\u8cc7\u6599<br \/>\nmail\u8a2d\u5b9a<br \/>\nquota\u8a2d\u5b9a&#8212;&#8211;WWW + Mysql&#8212;&#8212;&#8212;<br \/>\nxoops2\u6821\u7db2<br \/>\nteablog(\u6559\u5e2bWordpress\u90e8\u843d\u683c)<br \/>\nengteach(\u82f1\u8a9e\u6559\u5b78\u7db2\u9801tea1039\u90e8\u843d\u683c)<br \/>\ntncmc(\u767b\u5c71\u5354\u6703)<br \/>\nkid_xoops2(\u5e7c\u5152\u5712)<br \/>\npfn(\u8a55\u9451\u5c08\u5340)<br \/>\nstu_xoops2(\u5b78\u751f\u4f5c\u696d)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table>\n<tbody>\n<tr>\n<td>rcconf\u7d50\u675f\u5f8c\u51fa\u73fe\uff1a<br \/>\nCancelled or \/bin\/whiptail execution error(65280)\u89e3\u6c7a\u65b9\u6cd5\u5982\u4e0b\uff1a<br \/>\n1.\u5b89\u88ddwhiptail\uff0capt-get install whiptail<br \/>\n2.\u82e5whiptail\u5df2\u5b89\u88dd\u4ecd\u51fa\u73fe\uff0c\u5247<br \/>\nln -s \/bin\/whiptail \/usr\/bin\/whiptail<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 14.04 LTS \u684c\u9762\u7248\u5b89\u88dd \u5efa\u8b70HD\u5206\u5272\uff1a\/\u2192100G\u3001\/ho &hellip; <a href=\"http:\/\/163.26.205.2\/~teablog\/tea1001\/?p=950\">\u95b1\u8b80\u5168\u6587 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"http:\/\/163.26.205.2\/~teablog\/tea1001\/index.php?rest_route=\/wp\/v2\/posts\/950"}],"collection":[{"href":"http:\/\/163.26.205.2\/~teablog\/tea1001\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/163.26.205.2\/~teablog\/tea1001\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/163.26.205.2\/~teablog\/tea1001\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/163.26.205.2\/~teablog\/tea1001\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=950"}],"version-history":[{"count":6,"href":"http:\/\/163.26.205.2\/~teablog\/tea1001\/index.php?rest_route=\/wp\/v2\/posts\/950\/revisions"}],"predecessor-version":[{"id":1686,"href":"http:\/\/163.26.205.2\/~teablog\/tea1001\/index.php?rest_route=\/wp\/v2\/posts\/950\/revisions\/1686"}],"wp:attachment":[{"href":"http:\/\/163.26.205.2\/~teablog\/tea1001\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=950"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/163.26.205.2\/~teablog\/tea1001\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=950"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/163.26.205.2\/~teablog\/tea1001\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}