windows10 激活:https://tieba.baidu.com/p/5016846098
# **小馬快租項目環境部署說明**
* * * * *
**操作系統**:centos7.0x86_64
**系統程序**:apache 2.4.6,php 5.6.30,mysql數據庫,redis 3.2.7緩存數據庫,mongoDB 3.4.2數據庫;
**php擴展**:phpredis-3.1.1 擴展(redis擴展),mongodb-linux-x86_64-rhel62-3.4.2.tgz擴展(mongoDB擴展)
# **各個軟件安裝說明**
> 注:安裝環境時最好是要么全部yum安裝,要么全部源碼安裝
> 注:以下為本人安裝時查找到的資料,不完整,經提供參考。
> 注:apache的安裝環境請百度
* * * * *
#### **redis安裝**
> redis數據庫安裝目錄。
>安裝目錄:/root/redis-3.2.7/src
>解壓命令:tar xzf redis-2.8.17.tar.gz
>安裝redis步驟網站:http://www.runoob.com/redis/redis-install.html。
>安裝完以后配置下redis配置http://www.runoob.com/redis/redis-conf.html
>安裝phpredis擴展:http://www.runoob.com/redis/redis-php.html //extension_dir = "/usr/local/php/lib/php/extensions/no-debug-zts-20090626" 配置文件這個配置好想不用加也可以運行
>啟動redis:./redis-server ../redis.conf
#### **mongoDB安裝**
> mongoDB安裝目錄
>/usr/local/mongodb
>需要進入的目錄啟動mongoDB
>mongoDB加入服務啟動以后啟動異常的解決方法:
https://zhidao.baidu.com/question/242888801517901964.html
>沒有教程內說的mongod.cfg文件時可自己添加
#### **mysql安裝**
> mysql安裝方法:http://www.cnblogs.com/julyme/p/5969626.html (可行)。在這篇文章里面,修改完密碼以后需要重啟MySQL才生效。
>源碼安裝:http://blog.csdn.net/yanbingquan/article/details/60867769
其他參考:http://blog.csdn.net/xyang81/article/details/51792144
http://www.linuxidc.com/Linux/2016-04/130075.htm
#### **php安裝**
> yum安裝:http://blog.sina.com.cn/s/blog_6797a6700102w9p9.html
> 源碼安裝:http://www.centoscn.com/image-text/install/2015/0516/5451.html
源碼安裝PHP出現缺少類似缺少插件的錯誤:http://blog.sina.com.cn/s/blog_75a07c3b0101kcwb.html
http://www.bkjia.com/PHPjc/1008013.html
{出現這個錯誤時:configure: error: jpeglib.h not found. 解決方法:http://www.linuxidc.com/Linux/2014-05/102327.htm}
#### **源碼編譯安裝apache安裝**
http://www.cnblogs.com/freeweb/p/5177516.html
./configure --prefix=/usr/local/apache24 --with-apxs2=/usr/local/apache24/bin/apxs --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/ --with-pcre=/usr/local/pcre --with-mysql --with-mysql-sock --with-mysqli --enable-fpm --with-ncurses --enable-soap --with-XMLrpc --with-openssl --with-mcrypt --with-pcre-regex --with-sqlite3 --with-zlib --enable-bcmath --with-iconv --with-bz2 --enable-calendar --with-curl --with-cdb --enable-dom --enable-exif --enable-fileinfo --enable-filter --with-pcre-dir --enable-ftp --with-gd --with-openssl-dir --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-gd-native-ttf --enable-gd-jis-conv --with-gettext --with-gmp --with-mhash --enable-json --enable-mbstring --disable-mbregex --disable-mbregex-backtrack --with-libmbfl --with-onig --enable-pdo --with-pdo-mysql --with-zlib-dir --with-pdo-sqlite --with-readline --enable-session --enable-shmop --enable-simplexml --enable-sockets --enable-sqlite-utf8 --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-libxml-dir --with-xsl --enable-zip --enable-mysqlnd-compression-support --with-pear --enable-ssl --with-openssl-dir=/usr/local/ssl
#### **安裝環境時可能用到的命令**
> service httpd start apachectl start啟動
> service httpd restart apachectl restart 重新啟動
> service httpd stop apachectl stop 停止服務
> find / -name '' -ls #在目錄下查找名為“elm.cc”的文件,并顯示這些文件的信息
> 設置自動啟動:http://blog.csdn.net/rockstar541/article/details/30245493
> yum命令說明:http://blog.csdn.net/cheng830306/article/details/24780717
/**********刪除ssh連接記錄************/
http://linuxme.blog.51cto.com/1850814/375752
在mac上連接ssh的時候不要使用sudo
配置git出現需要密碼登錄的時候。需要檢查連接的用戶的.ssh目錄與authorized_keys 所屬用戶是否是連接的用戶。
如:上次安裝“菜鳥教程”中的方法搭建。用客戶端連接的時候發現需要密碼。檢查后發現git目錄下的authorized_keys文件所屬用戶不是git的。
解決方法:把git用戶家目錄下的.ssh/authorized_keys所屬用戶設計為git用戶
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@出現這個情況的時候打開~/.ssh/known_hosts對應的服務器密匙刪除掉