Uninote
Uninote
用户根目录
每日点滴

<!DOCTYPE html> <html><head><meta http-equiv='Content-Type' content='text/html; charset=utf8'><title>mynote_init</title> <script> var g_resRoot = '../../__res/'; var g_json_outline = '{"children":[{"children":[],"level":1,"lvNumber":"1","text":"centos 系统语言改成中文"},{"children":[],"level":1,"lvNumber":"2","text":"安装xhprof扩展"},{"children":[],"level":1,"lvNumber":"3","text":"glibc 安装"},{"children":[],"level":1,"lvNumber":"4","text":"ssh www known_hosts"},{"children":[],"level":1,"lvNumber":"5","text":"mynote init todo"},{"children":[],"level":1,"lvNumber":"6","text":"mysql"},{"children":[{"children":[],"level":2,"lvNumber":"7.1","text":"删除用户"}],"level":1,"lvNumber":"7","text":"清理数据"},{"children":[],"level":1,"lvNumber":"8","text":"do.sh 恢复快照 需要手动执行的命令"},{"children":[],"level":1,"lvNumber":"9","text":"问题 question"},{"children":[],"level":1,"lvNumber":"10","text":"phpMyAdmin"},{"children":[{"children":[],"level":2,"lvNumber":"11.1","text":"阿里云 服务器 注意"}],"level":1,"lvNumber":"11","text":"mynote init note 注意 排错"},{"children":[],"level":1,"lvNumber":"12","text":"klyc php5"},{"children":[],"level":1,"lvNumber":"13","text":"最初/最后需要的 --------------"},{"children":[],"level":1,"lvNumber":"14","text":"cache recent"},{"children":[],"level":1,"lvNumber":"15","text":"log-std"}],"level":0,"lvNumber":"","text":"mynote_init"}'; </script> <link rel='stylesheet' type='text/css' href='../../__res/common.css'><style>.s0{color:#000000;} .s1{color:#000000;} .s2{color:#000000;} .s3{color:#c80000;} .s4{color:#000000;} .s5{color:#0000ff;} .s6{color:#c80000;} .s7{color:#0000ff;} .s8{color:#000000;} .s9{color:#000000;} .s10{color:#0000ff;} .s11{color:#000080;} .s12{color:#000000;} .s13{color:#000000;} .s14{color:#c80000;} </style> </head><body> <script src='../../__res/util.js'></script><div id='outline'> <li><a href='#ol_0' style='font-weight:bold; font-size:22px'>mynote_init</a></li> <li> <a href='#ol_1' >centos 系统语言改成中文</a></li> <li> <a href='#ol_2' >安装xhprof扩展</a></li> <li> <a href='#ol_3' >glibc 安装</a></li> <li> <a href='#ol_4' >ssh www known_hosts</a></li> <li> <a href='#ol_5' >mynote init todo</a></li> <li> <a href='#ol_6' >mysql</a></li> <li> <a href='#ol_7' >清理数据</a></li> <li> <a href='#ol_8' >删除用户</a></li> <li> <a href='#ol_9' >do.sh 恢复快照 需要手动执行的命令</a></li> <li> <a href='#ol_10' >问题 question</a></li> <li> <a href='#ol_11' >phpMyAdmin</a></li> <li> <a href='#ol_12' >mynote init note 注意 排错</a></li> <li> <a href='#ol_13' >阿里云 服务器 注意</a></li> <li> <a href='#ol_14' >klyc php5</a></li> <li> <a href='#ol_15' >最初/最后需要的 --------------</a></li> <li> <a href='#ol_16' >cache recent</a></li> <li> <a href='#ol_17' >log-std</a></li> </div>

<t id='6240c0c2-7466-4c96-b666-d1b9ed0f2bd7'> <pre class='tnd_head'>lv1= lv2= type=</pre> <pre id='ol_0' class='title'>mynote_init</pre> <pre><d class='s0'>〖E:\uninote\mynote-env-init-v2〗</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>linux下php-fpm的启动和关闭</d></pre> <pre><d class='s1'><a href='https://blog.csdn.net/u010716097/article/details/71908096'>https://blog.csdn.net/u010716097/article/details/71908096</a></d></pre> <pre><d class='s1'></d></pre> <h1 id='ol_1'>centos 系统语言改成中文</h1> <pre><d class='s1'><a href='http://www.cnblogs.com/su-root/p/9692426.html'>http://www.cnblogs.com/su-root/p/9692426.html</a></d></pre> <pre><d class='s1'>否则fastadmin gogs都默认成了英文</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>编辑i18n配置文件: vi /etc/sysconfig/i18n</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>进行如下配置并保存退出:</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'> #LANG="en_US.UTF-8"</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>LANG="zh_CN.UTF-8"</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>SYSFONT="latarcyrheb-sun16"</d></pre> <pre><d class='s1'></d></pre> <h1 id='ol_2'>安装xhprof扩展</h1> <pre><d class='s2'><a href='https://github.com/longxinH/xhprof.git'>https://github.com/longxinH/xhprof.git</a></d></pre> <pre><d class='s2'></d></pre> <pre><d class='s1'>NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/xhprof.so' - </d><d class='s3'>/lib64/libc.so.6</d><d class='s1'>: version GLIBC_2.14' not found (required by /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/xhprof.so) in Unknown on line 0</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'># strings /lib64/libc.so.6 |grep GLIBC_</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'># strings xhprof.so |grep GLIB</d></pre> <pre><d class='s3'>GLIBC_2.14</d></pre> <pre><d class='s3'>GLIBC_2.17</d><d class='s1'></d></pre> <pre><d class='s1'>GLIBC_2.2.5</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>没有更新了?</d></pre> <pre><d class='s1'><a href='https://pecl.php.net/package/xhprof'>https://pecl.php.net/package/xhprof</a> </d></pre> <pre><d class='s1'>这个广州人还在更新</d></pre> <pre><d class='s1'><a href='https://github.com/longxinH/xhprof'>https://github.com/longxinH/xhprof</a></d></pre> <pre><d class='s0'></d></pre> <h1 id='ol_3'>glibc 安装</h1> <pre><d class='s1'>Linux/Centos下/lib64/libc.so.6: version GLIBC_2.14' not found</d></pre> <pre><d class='s1'><a href='https://blog.csdn.net/changcsw/article/details/79761620'>https://blog.csdn.net/changcsw/article/details/79761620</a></d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>wget <a href='http://ftp.gnu.org/gnu/glibc/glibc-2.17.tar.gz'>http://ftp.gnu.org/gnu/glibc/glibc-2.17.tar.gz</a> </d></pre> <pre><d class='s1'> </d></pre> <pre><d class='s1'>wget <a href='http://ftp.gnu.org/gnu/glibc/glibc-ports-2.17.tar.gz'>http://ftp.gnu.org/gnu/glibc/glibc-ports-2.17.tar.gz</a> </d></pre> <pre><d class='s1'> </d></pre> <pre><d class='s1'>tar -xvf glibc-2.17.tar.gz </d></pre> <pre><d class='s1'> </d></pre> <pre><d class='s1'>tar -xvf glibc-ports-2.17.tar.gz </d></pre> <pre><d class='s1'> </d></pre> <pre><d class='s1'>mv glibc-ports-2.17 glibc-2.17/ports </d></pre> <pre><d class='s1'> </d></pre> <pre><d class='s1'>mkdir glibc-build-2.17 </d></pre> <pre><d class='s1'> </d></pre> <pre><d class='s1'> </d></pre> <pre><d class='s1'>cd glibc-build-2.17 </d></pre> <pre><d class='s1'> </d></pre> <pre><d class='s1'> </d></pre> <pre><d class='s1'>../glibc-2.17/configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin </d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>make </d></pre> <pre><d class='s1'>make install </d></pre> <pre><d class='s0'></d></pre> <h1 id='ol_4'>ssh www known_hosts</h1> <pre><d class='s4'>脚本添加用的 ssh git@localhost,实际使用的是ip,也会导致运行时需要询问</d><d class='s5'></d></pre> <pre><d class='s6'>192.168.0.121</d><d class='s0'> ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA3PlLDady9AeQ2LrsdXtu8WDczD3PvR9BEhggAlWhHtDR6ir5Wu6HLNzNdPZTUfF9xhNzkqMusB8SyYKb1WzpSUOIXrKLGzp7fKXgpR18Af2fLf6wXtvccyWNB7T+YUeAI5g2FN8EU4xcwSdf3gPRuiF1TMx8pPC4SGIOtbZacqAkERb4Kubw0+MB8o5BhDvblnZEubE1MXOq8zjN6KNZBXyh/782GWIRf5uxdNX9LRMK2yoSvPAgT7ucjR+HxUcx4TXachSkc24d1enMfeO0mgew8xChpagUwN5hwgZtLFycA4ABFO3g6rsLRpuEpyNEM/YjpiqDyHhJjQmqYcZFSQ==</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'><a href='..\linux/ssh.html#690ee0f7-93b7-4eb3-9499-e9cc0889c5ab'>ssh 自动写入known_hosts </a></d></pre> <pre><d class='s0'></d></pre> <t id='5de8ab7e-f7b2-4148-931d-4e3f6db1f199'> <pre class='tnd_head'>lv1= lv2= type=</pre> <h1 id='ol_5'>mynote init todo</h1> <pre><d class='s0'><a href='..\pub/log_query.html#232ef357-0d09-4344-a541-aff474c7dc62'>log query 部署 </a></d></pre> <pre><d class='s0'><a href='mynote-front.html#0af9f526-a485-4747-970c-993e8fdb9ee3'>mynote font 部署 </a></d></pre> <pre><d class='s0'><a href='mynote_init.html#e8980321-bd99-4173-bb8c-aff7dcae5f48'>最初/最后需要的 -------------- </a>这里更多可以自动化</d></pre> <pre><d class='s4'></d></pre> <pre><d class='s4'>分支可以在命令行中需改默认值</d></pre> <pre><d class='s4'></d></pre> <pre><d class='s4'>rpm -i --force</d></pre> <pre><d class='s4'></d></pre> <pre><d class='s4'>gogs默认3000,但可以通过命令行参数改变</d></pre> <pre><d class='s4'></d></pre> <pre><d class='s4'>头像修改不行</d></pre> <pre><d class='s4'></d></pre> <pre><d class='s4'>时间</d></pre> <pre><d class='s4'><a href='http://192.168.0.101:6008/search?s=readme#2'>http://192.168.0.101:6008/search?s=readme#2</a> 报错</d></pre> <pre><d class='s4'>作者页加载更多</d></pre> <pre><d class='s4'>标签</d></pre> <pre><d class='s2'></d></pre> <pre><d class='s2'>mynote init 用户仓库 origin设置问题?</d></pre> <pre><d class='s4'></d></pre> </t> <pre><d class='s0'></d></pre> <h1 id='ol_6'>mysql</h1> <pre><d class='s5'></d></pre> <pre><d class='s2'>mysql -uroot -proot <<EOF</d></pre> <pre><d class='s2'>use mynote;</d></pre> <pre><d class='s2'>GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;</d></pre> <pre><d class='s2'>flush privileges;</d></pre> <pre><d class='s2'>EOF</d></pre> <pre><d class='s2'></d></pre> <pre><d class='s2'></d></pre> <h1 id='ol_7'>清理数据</h1> <pre><d class='s2'></d></pre> <pre><d class='s2'> tmp_path=/tmp/mynote_init.sql</d></pre> <pre><d class='s2'> cat /home/www/mynote/sql/.sql > $tmp_path</d></pre> <pre><d class='s2'> sed -i "s/CREATE DATABASE/-- /" $tmp_path</d></pre> <pre><d class='s2'> Echo_Yellow "请输入数据库密码: "</d></pre> <pre><d class='s2'> mysql -u root -p$db_passwd <<ENDTAG</d></pre> <pre><d class='s2'>CREATE DATABASE mynote DEFAULT charset=utf8;</d></pre> <pre><d class='s2'>use mynote</d></pre> <pre><d class='s2'>source $tmp_path</d></pre> <pre><d class='s2'>ENDTAG</d></pre> <pre><d class='s2'></d></pre> <pre><d class='s2'>E:\fastadmin\fastadmin\application\admin\command\Install\install.lock</d></pre> <pre><d class='s2'>rm -f /home/www/fastadmin/application/admin/command/Install/install.lock</d></pre> <pre><d class='s2'><a href='http://dev.rongyipiao.com:81/install.php'>http://dev.rongyipiao.com:81/install.php</a></d></pre> <pre><d class='s2'></d></pre> <pre><d class='s2'> cd /home/www/fastadmin</d></pre> <pre><d class='s2'> ./curd.sh</d></pre> <pre><d class='s2'></d></pre> <pre><d class='s2'> cd /home/www</d></pre> <pre><d class='s2'> chown -R www:www fastadmin</d></pre> <pre><d class='s2'></d></pre> <pre><d class='s2'>-- </d></pre> <pre><d class='s2'>es</d></pre> <pre><d class='s2'></d></pre> <pre><d class='s2'>-- addi item</d></pre> <pre><d class='s2'>rm -rf /home/www/mynote/basic/runtime</d></pre> <pre><d class='s2'></d></pre> <pre><d class='s2'> cd /home/www</d></pre> <pre><d class='s2'> chown -R www:www additional_item</d></pre> <pre><d class='s2'></d></pre> <pre><d class='s2'> tmp_path=/tmp/additional_item_init.sql</d></pre> <pre><d class='s2'> cat /home/www/additional_item/log_storage/sql/mynote*.sql > $tmp_path</d></pre> <pre><d class='s2'> mysql -u root -p$db_passwd <<ENDTAG</d></pre> <pre><d class='s2'>use mynote</d></pre> <pre><d class='s2'>source $tmp_path</d></pre> <pre><d class='s2'>ENDTAG</d></pre> <pre><d class='s7'></d></pre> <pre><d class='s7'></d></pre> <h2 id='ol_8'>删除用户</h2> <pre><d class='s2'>select id,username from user where mobile = '13320817857'</d></pre> <pre><d class='s2'>delete from user where id = 3</d></pre> <pre><d class='s2'>delete from article where username = '1068799191'</d></pre> <pre><d class='s2'>删除docs/users.txt 对应的username</d></pre> <pre><d class='s2'>删除docs下对应的用户目录</d></pre> <pre><d class='s2'></d></pre> <h1 id='ol_9'>do.sh 恢复快照 需要手动执行的命令</h1> <pre><d class='s1'>--------for centos vm</d></pre> <pre><d class='s1'>service iptables stop</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>git fetch origin master</d></pre> <pre><d class='s1'>git reset --hard FETCH_HEAD</d></pre> <pre><d class='s1'>. install.sh</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>mysql -uroot -proot <<EOF</d></pre> <pre><d class='s1'>GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;</d></pre> <pre><d class='s1'>flush privileges;</d></pre> <pre><d class='s1'>EOF</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s3'>-----for addi_item test</d><d class='s1'></d></pre> <pre><d class='s1'>git remote set-url origin <a href='http://192.168.0.119:3001/unote/mynote-init2.git'>http://192.168.0.119:3001/unote/mynote-init2.git</a></d></pre> <pre><d class='s1'>git fetch origin master</d></pre> <pre><d class='s1'>git reset --hard FETCH_HEAD</d></pre> <pre><d class='s1'>. env.sh</d></pre> <pre><d class='s1'>#Deploy_Addi</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>-----for test.uninote</d></pre> <pre><d class='s1'>git fetch origin master</d></pre> <pre><d class='s1'>git reset --hard FETCH_HEAD</d></pre> <pre><d class='s1'>. install.sh</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>mysql -uroot -proot <<EOF</d></pre> <pre><d class='s1'>GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;</d></pre> <pre><d class='s1'>flush privileges;</d></pre> <pre><d class='s1'>EOF</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>-----</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>copy .git</d></pre> <pre><d class='s1'>ip config</d></pre> <pre><d class='s1'>id_rsa</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s4'>service iptables stop</d></pre> <pre><d class='s4'></d></pre> <pre><d class='s4'>ip static,端口映射</d></pre> <pre><d class='s4'>service network restart </d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>时间:</d></pre> <pre><d class='s0'>.bash_profile</d></pre> <pre><d class='s0'>TZ='Asia/Shanghai'; export TZ</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>--- 安装时手动</d></pre> <pre><d class='s0'>fa 安装</d></pre> <pre><d class='s0'>gogs 安装</d></pre> <pre><d class='s0'>gogs 登录</d></pre> <pre><d class='s0'>www ssh key -> gogs</d></pre> <pre><d class='s0'>gogs 公网访问ip、域名 配置</d></pre> <pre><d class='s0'></d></pre> <h1 id='ol_10'>问题 question</h1> <pre><d class='s1'> echo 'root:$apr1$VEnSRa9p$OTFyusoZY9NOD85k2.XAs0' > /usr/local/nginx/passwd.db ??</d></pre> <pre><d class='s0'></d></pre> <h1 id='ol_11'>phpMyAdmin</h1> <pre><d class='s1'>libraries/config.default.php</d></pre> <pre><d class='s1'>$cfg['Servers'][$i]['host'] = '127.0.0.1';</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'> * phpMyAdmin default configuration, you can copy values from here to your</d></pre> <pre><d class='s1'> * config.inc.php</d></pre> <pre><d class='s1'>config.sample.inc.php copy as config.inc.php</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>phpMyAdmin配置文件现在需要一个短语密码的解决方法</d></pre> <pre><d class='s1'><a href='https://blog.csdn.net/ly_dengle/article/details/52776248'>https://blog.csdn.net/ly_dengle/article/details/52776248</a></d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>解决phpmyadmin mysqli_real_connect(): (HY000/2002): No such file or directory错误</d></pre> <pre><d class='s1'><a href='https://blog.csdn.net/tiny_lxf/article/details/82800116'>https://blog.csdn.net/tiny_lxf/article/details/82800116</a></d></pre> <pre><d class='s1'>$cfg['Servers'][$i]['host'] = 'localhost';</d></pre> <pre><d class='s1'>#改成</d></pre> <pre><d class='s1'>$cfg['Servers'][$i]['host'] = '127.0.0.1';</d></pre> <pre><d class='s0'></d></pre> <h1 id='ol_12'>mynote init note 注意 排错</h1> <pre><d class='s0'><a href='mynote.html#fd4bf8b0-04f1-4da4-b262-37d84790b2d8'>mynote checks </a></d></pre> <pre><d class='s0'></d></pre> <pre><d class='s8'>centos虚拟机测试, do.sh 用的是cyb分支,推送到其他分支无效。</d></pre> <pre><d class='s6'></d></pre> <pre><d class='s4'>obso:function.sh: mynote、fastadmin、additional_item 都拉取master,但最终使用的节点由 config.sh 的 mynote_commit 等配置项决定</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s9'>mynote、fastadmin、additional_item 现在都全量拉取,避免错误。如果出错了可以手动检查一遍 commits</d><d class='s2'></d></pre> <pre><d class='s2'>SHA-1: 22b599a8a67ca2431f356333fc009b4a641ba77c</d></pre> <pre><d class='s2'>* 用 git fetch origin 代替 git fetch origin master,避免配置的 commit 不在 master 分支时出错</d></pre> <pre><d class='s2'></d></pre> <pre><d class='s9'>X:\mytool\m 快捷提交,仅 git add install.sh include/functions.sh</d><d class='s2'></d></pre> <pre><d class='s2'></d></pre> <h2 id='ol_13'>阿里云 服务器 注意</h2> <pre><d class='s4'>1 上传包之后,执行<a href='mynote_init.html#e8980321-bd99-4173-bb8c-aff7dcae5f48'>最初需要的 </a></d><d class='s0'></d></pre> <pre><d class='s4'>2 建立快照,避免多次上传</d></pre> <pre><d class='s4'></d></pre> <t id='de2af3ad-c72d-4def-99a1-5d79cafb5256'> <pre class='tnd_head'>lv1= lv2= type=</pre> <h1 id='ol_14'>klyc php5</h1> <pre><d class='s9'>xjc 要使用php5,并且是mysql,而非mysqli</d></pre> <pre><d class='s9'></d></pre> <pre><d class='s0'><a href='..\linux/linux_cmds.html#804bf958-eb08-4dca-a6e7-407cb131e143'>./configure --prefix --with解释 </a></d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'> cp $config_path/php.ini /usr/local/php5/lib/php.ini</d></pre> <pre><d class='s0'> cp /usr/local/php5/etc/php-fpm.conf.default /usr/local/php5/etc/php-fpm.conf</d></pre> <pre><d class='s0'> cp /usr/local/php5/etc/php-fpm.d/www.conf.default /usr/local/php5/etc/php-fpm.d/www.conf</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'> echo "export PATH=$PATH:/usr/local/php5/bin:/usr/local/php5/sbin:">>/etc/profile</d></pre> <pre><d class='s0'> source /etc/profile</d></pre> <pre><d class='s9'></d></pre> </t> <pre><d class='s0'></d></pre> <t id='e8980321-bd99-4173-bb8c-aff7dcae5f48'> <pre class='tnd_head'>lv1= lv2= type=</pre> <h1 id='ol_15'>最初/最后需要的 --------------</h1> <pre><d class='s4'>切换为root</d></pre> <pre><d class='s4'>确保可以上网、虚拟机tools可用</d></pre> <pre><d class='s4'>配置ip</d></pre> <pre><d class='s0'>yum install -y git </d><d class='s4'>unzip</d><d class='s0'></d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>copy id_rsa/id_rsa.pub</d></pre> <pre><d class='s0'>copy files</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>unzip .git.zip</d></pre> <pre><d class='s0'>git reset --hard</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>如果需要,切换源</d></pre> <pre><d class='s0'>do.sh</d></pre> <pre><d class='s0'>. do.sh</d></pre> <pre><d class='s2'></d></pre> <pre><d class='s0'><a href='mynote_server.html#c30749ca-32b9-48e9-b03e-1fd04e97b6be'>mynote online server </a></d></pre> <pre><d class='s2'></d></pre> <pre><d class='s2'>mynote 端口改为 非80</d></pre> <pre><d class='s0'><a href='..\linux/linux.html#6f5f365b-04ee-4f5e-b8b7-b3f303b64924'>linux 设置虚拟内存 </a></d></pre> <pre><d class='s1'>保证logviewer可读</d></pre> <pre><d class='s3'>chmod 644 /tmp/mysql.log</d></pre> <pre><d class='s3'></d></pre> <pre><d class='s0'><a href='mynote_server.html#03ad7dde-72d1-4bc3-9a2d-2d069952a96c'>mynote 开机自启动 </a></d></pre> <pre><d class='s10'></d></pre> </t> <pre><d class='s0'></d></pre> <h1 id='ol_16'>cache recent</h1> <pre><d class='s2'>X:\mytool\m tool</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>192.168.0.119</d></pre> <pre><d class='s0'><a href='http://192.168.0.119:3001/unote/mynote-init2.git'>http://192.168.0.119:3001/unote/mynote-init2.git</a></d></pre> <pre><d class='s0'>git@192.168.0.119:unote/mynote-init2.git</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>mysql -uroot -proot <<EOF</d></pre> <pre><d class='s0'>GRANT ALL PRIVILEGES ON . TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;</d></pre> <pre><d class='s0'>flush privileges;</d></pre> <pre><d class='s0'>EOF</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s0'>CREATE DATABASE mynote DEFAULT charset=utf8;</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s11'>public function </d><d class='s12'>verify(){</d></pre> <pre><d class='s12'> ob_clean();</d></pre> <pre><d class='s0'></d></pre> <pre><d class='s13'>/sbin/fuser -k -n tcp 8080 # kill</d><d class='s0'> </d><d class='s13'>8080</d><d class='s0'>所在进程</d></pre> <pre><d class='s0'></d></pre> <h1 id='ol_17'>log-std</h1> <pre><d class='s4'># 生成,在终端 t1</d></pre> <pre><d class='s4'>. install.sh >& log-std</d></pre> <pre><d class='s4'># 查看,另起终端 t2:</d></pre> <pre><d class='s4'>tail -f log-std</d></pre> <pre><d class='s4'></d></pre> <pre><d class='s14'>注意,在t2看到提示要输入的时候,在 t1 输入,并且 t1 要严格按照要求输入,不要多一个空格、换行等。</d><d class='s4'></d></pre> </t> </body></html>

mynote_es

mynote_mobile

点赞(0) 阅读(94) 举报
目录
标题