當前操做在root
用戶下執行sql
yum -y groupinstall "Development tools" yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
cd /opt wget http://www.sqlite.org/2015/sqlite-autoconf-3081101.tar.gz #下載安裝包 tar zxvf sqlite-autoconf-3081101.tar.gz #進行解壓
cd sqlite-autoconf-3081101/ ./configure make && make install yum install sqlite-devel
cd #回到用戶目錄 sqlite3 #連接sqlite3
sqlite3連接成功後,執行以下:shell
sqlite> .quit #退出sqlite3