Uninote
Uninote
用户根目录
每日点滴
 mynote_init
lv1= lv2= type=
mynote_init
〖E:\uninote\mynote-env-init-v2〗
linux下php-fpm的启动和关闭
https://blog.csdn.net/u010716097/article/details/71908096

centos 系统语言改成中文

http://www.cnblogs.com/su-root/p/9692426.html
否则fastadmin gogs都默认成了英文
编辑i18n配置文件: vi /etc/sysconfig/i18n
进行如下配置并保存退出:
 #LANG="en_US.UTF-8"
LANG="zh_CN.UTF-8"
SYSFONT="latarcyrheb-sun16"

安装xhprof扩展

https://github.com/longxinH/xhprof.git
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' - /lib64/libc.so.6: 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
# strings /lib64/libc.so.6 |grep GLIBC_
# strings xhprof.so |grep GLIB
GLIBC_2.14
GLIBC_2.17
GLIBC_2.2.5
没有更新了?
https://pecl.php.net/package/xhprof 
这个广州人还在更新
https://github.com/longxinH/xhprof

glibc 安装

Linux/Centos下/lib64/libc.so.6: version `GLIBC_2.14' not found
https://blog.csdn.net/changcsw/article/details/79761620
wget http://ftp.gnu.org/gnu/glibc/glibc-2.17.tar.gz  
   
wget http://ftp.gnu.org/gnu/glibc/glibc-ports-2.17.tar.gz  
   
tar -xvf  glibc-2.17.tar.gz  
   
tar -xvf  glibc-ports-2.17.tar.gz  
   
mv glibc-ports-2.17 glibc-2.17/ports  
   
mkdir glibc-build-2.17   
   
   
cd glibc-build-2.17  
   
   
../glibc-2.17/configure  --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin  
make  
make install  

ssh www known_hosts

脚本添加用的 ssh git@localhost,实际使用的是ip,也会导致运行时需要询问
192.168.0.121 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA3PlLDady9AeQ2LrsdXtu8WDczD3PvR9BEhggAlWhHtDR6ir5Wu6HLNzNdPZTUfF9xhNzkqMusB8SyYKb1WzpSUOIXrKLGzp7fKXgpR18Af2fLf6wXtvccyWNB7T+YUeAI5g2FN8EU4xcwSdf3gPRuiF1TMx8pPC4SGIOtbZacqAkERb4Kubw0+MB8o5BhDvblnZEubE1MXOq8zjN6KNZBXyh/782GWIRf5uxdNX9LRMK2yoSvPAgT7ucjR+HxUcx4TXachSkc24d1enMfeO0mgew8xChpagUwN5hwgZtLFycA4ABFO3g6rsLRpuEpyNEM/YjpiqDyHhJjQmqYcZFSQ==
ssh 自动写入known_hosts 
lv1= lv2= type=

mynote init todo

log query 部署 
mynote font 部署 
最初/最后需要的 -------------- 这里更多可以自动化
分支可以在命令行中需改默认值
rpm -i --force
gogs默认3000,但可以通过命令行参数改变
头像修改不行
时间
http://192.168.0.101:6008/search?s=readme#2 报错
作者页加载更多
标签
mynote init 用户仓库 origin设置问题?

mysql

mysql -uroot -proot <<EOF
use mynote;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
flush privileges;
EOF

清理数据

    tmp_path=/tmp/mynote_init.sql
    cat /home/www/mynote/sql/*.sql > $tmp_path
    sed -i "s/CREATE DATABASE*/-- /" $tmp_path
    Echo_Yellow "请输入数据库密码: "
    mysql -u root -p$db_passwd <<ENDTAG
CREATE DATABASE mynote DEFAULT charset=utf8;
use mynote
source $tmp_path
ENDTAG
E:\fastadmin\fastadmin\application\admin\command\Install\install.lock
rm -f /home/www/fastadmin/application/admin/command/Install/install.lock
http://dev.rongyipiao.com:81/install.php
    cd /home/www/fastadmin
    ./curd.sh
    cd /home/www
    chown -R www:www fastadmin
-- 
es
-- addi item
rm -rf /home/www/mynote/basic/runtime
    cd /home/www
    chown -R www:www additional_item
    tmp_path=/tmp/additional_item_init.sql
    cat /home/www/additional_item/log_storage/sql/mynote*.sql > $tmp_path
    mysql -u root -p$db_passwd <<ENDTAG
use mynote
source $tmp_path
ENDTAG

删除用户

select id,username from user where mobile = '13320817857'
delete from user where id = 3
delete from article where username = '1068799191'
删除docs/users.txt 对应的username
删除docs下对应的用户目录

do.sh 恢复快照 需要手动执行的命令

--------for centos vm
service iptables stop
git fetch origin master
git reset --hard FETCH_HEAD
. install.sh
mysql -uroot -proot <<EOF
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
flush privileges;
EOF
-----for addi_item test
git remote set-url origin http://192.168.0.119:3001/unote/mynote-init2.git
git fetch origin master
git reset --hard FETCH_HEAD
. env.sh
#Deploy_Addi
-----for test.uninote
git fetch origin master
git reset --hard FETCH_HEAD
. install.sh
mysql -uroot -proot <<EOF
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
flush privileges;
EOF
-----
copy .git
ip config
id_rsa
service iptables stop
ip static,端口映射
service network restart 
时间:
.bash_profile
TZ='Asia/Shanghai'; export TZ
--- 安装时手动
fa 安装
gogs 安装
gogs 登录
www ssh key -> gogs
gogs 公网访问ip、域名 配置

问题 question

    echo 'root:$apr1$VEnSRa9p$OTFyusoZY9NOD85k2.XAs0' > /usr/local/nginx/passwd.db ??

phpMyAdmin

libraries/config.default.php
$cfg['Servers'][$i]['host'] = '127.0.0.1';
 * phpMyAdmin default configuration, you can copy values from here to your
 * config.inc.php
config.sample.inc.php copy as config.inc.php
phpMyAdmin配置文件现在需要一个短语密码的解决方法
https://blog.csdn.net/ly_dengle/article/details/52776248
解决phpmyadmin mysqli_real_connect(): (HY000/2002): No such file or directory错误
https://blog.csdn.net/tiny_lxf/article/details/82800116
$cfg['Servers'][$i]['host'] = 'localhost';
#改成
$cfg['Servers'][$i]['host'] = '127.0.0.1';

mynote init note 注意 排错

mynote checks 
centos虚拟机测试, do.sh 用的是cyb分支,推送到其他分支无效。
obso:function.sh: mynote、fastadmin、additional_item 都拉取master,但最终使用的节点由 config.sh 的 mynote_commit 等配置项决定
mynote、fastadmin、additional_item 现在都全量拉取,避免错误。如果出错了可以手动检查一遍 commits
SHA-1: 22b599a8a67ca2431f356333fc009b4a641ba77c
* 用 git fetch origin 代替 git fetch origin master,避免配置的 commit 不在 master 分支时出错
X:\mytool\m 快捷提交,仅 git add install.sh include/functions.sh

阿里云 服务器 注意

1 上传包之后,执行最初需要的 
2 建立快照,避免多次上传
lv1= lv2= type=

klyc php5

xjc 要使用php5,并且是mysql,而非mysqli
./configure --prefix --with解释 
    cp $config_path/php.ini /usr/local/php5/lib/php.ini
    cp /usr/local/php5/etc/php-fpm.conf.default /usr/local/php5/etc/php-fpm.conf
    cp /usr/local/php5/etc/php-fpm.d/www.conf.default /usr/local/php5/etc/php-fpm.d/www.conf
    echo "export PATH=$PATH:/usr/local/php5/bin:/usr/local/php5/sbin:">>/etc/profile
    source /etc/profile
lv1= lv2= type=

最初/最后需要的 --------------

切换为root
确保可以上网、虚拟机tools可用
配置ip
yum install -y git unzip
copy id_rsa/id_rsa.pub
copy files
unzip .git.zip
git reset --hard
如果需要,切换源
do.sh
. do.sh
mynote online server 
mynote 端口改为 非80
linux 设置虚拟内存 
保证logviewer可读
chmod 644 /tmp/mysql.log
mynote 开机自启动 

cache recent

X:\mytool\m tool
192.168.0.119
http://192.168.0.119:3001/unote/mynote-init2.git
git@192.168.0.119:unote/mynote-init2.git
mysql -uroot -proot <<EOF
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
flush privileges;
EOF
CREATE DATABASE mynote DEFAULT charset=utf8;
public function verify(){
    ob_clean();
/sbin/fuser -k -n tcp 8080 # kill 8080所在进程

log-std

# 生成,在终端 t1
. install.sh >& log-std
# 查看,另起终端 t2:
tail -f log-std
注意,在t2看到提示要输入的时候,在 t1 输入,并且 t1 要严格按照要求输入,不要多一个空格、换行等。

mynote_es

mynote_mobile

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