麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 數據庫 > 文庫 > 正文

Inception部署測驗

2024-09-07 22:12:43
字體:
來源:轉載
供稿:網友
      如果你想學習inception
      如果你想學習flask~
     那么此篇文章適合你~
 
1、下載
 
2、安裝
     yum -y install cmake  libncurses5-dev libssl-dev g++ bison openssl-devel.x86_64
     unzip inception-master.zip
     cd  inception-master
     sh -x  inception_build.sh debug
 
cd /chunlei/inception/inception
mkdir log
mkdir etc
cd etc
安裝完畢后添加配置文件:
vim inc.cnf
[inception]
general_log=1
general_log_file=/chunlei/inception/inception/log/inception.log
port=7001
socket=/chunlei/inception/inception/inc.socket
character-set-client-handshake=0
character-set-server=utf8
inception_remote_system_password=123456
inception_remote_system_user=root
inception_remote_backup_port=6001
inception_remote_backup_host=127.0.0.1
inception_support_charset=utf8mb4
inception_enable_nullable=0
inception_check_primary_key=1
inception_check_column_comment=1
inception_check_table_comment=1
inception_osc_min_table_size=1
inception_osc_bin_dir=/chunlei/osc
inception_osc_chunk_time=0.1
inception_ddl_support=1
inception_enable_blob_type=1
inception_check_column_default_value=1
3、啟動
/chunlei/inception/inception-master/debug/mysql/bin/Inception --defaults-file=/chunlei/inception/inception/etc/inc.cnf &
 
登錄:
mysql -uroot -h227.0.0.1 -P7001
elcome to the MySQL monitor.  Commands end with ; or /g.
Your MySQL connection id is 2
Server version: Inception2.1.50 1
 
Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
 
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
 
Type 'help;' or '/h' for help. Type '/c' to clear the current input statement.
 
mysql> inception get variables;     測試
  
4、界面
界面化:網上有封裝好的flask
在網上下載一個web封裝的界面安裝過程如下:
下載地址:https://github.com/dbalihui/inception_web
 
安裝flask
easy_install flask
easy_install flask_wtf
 
easy_install flask-script
 
easy_install flask-debugtoolbar
 
數據庫建立庫:
create database sql_check
創建用戶:
GRANT ALL PRIVILEGES ON *.* TO 'dba'@'%' identified by '123456'
 
修改配置文件
cd /chunlei/inception/flask/inception_web-master/app
vi inception.py
修改:
conn=MySQLdb.connect(host='127.0.0.1',user='dba',passwd='123456',db='sql_check',port=7001,use_unicode=True, charset="utf8")
運行:
./run.py runserver --host 172.16.16.2
http://182.61.39.142:5000/
測試:
create table test1 (id int auto_increment,name varchar(10),primary key(id)) 

(編輯:武林網)

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 免费在线观看午夜视频 | 成人做爰s片免费看网站 | 超碰在线97国产 | 美国av免费看 | 久久综合狠狠综合久久 | 欧美性受xxx黑人xyx性爽 | 男女羞羞的视频 | 国产青草网 | 特级黄毛片| 精品国产专区 | 亚洲小视频在线 | 久久精品亚洲成在人线av网址 | 美女羞羞视频网站 | 激情视频免费看 | 久久精品免费国产 | 最近高清无吗免费看 | 免费观看黄色影片 | 久久免费视频3 | 久久精品伊人网 | 免费欧美精品 | 国产成人高清成人av片在线看 | 免费一级欧美在线观看视频 | 久久免费视频一区二区三区 | 成人午夜免费在线观看 | 性生活视频软件 | 亚州欧美在线 | 色人久久| free国产hd老熟bbw | 成人免费电影在线观看 | 羞羞答答视频 | 久久久成人一区二区免费影院 | 国产精品久久久在线观看 | 自拍亚洲伦理 | 亚洲99 | 精品影视一区二区 | 久久久av亚洲男天堂 | 鲁丝一区二区二区四区 | 欧美日韩综合视频 | 美女喷水网站 | 精品国产一区二区三区久久久狼牙 | 久久久三区 |