




下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、ShopNC B2B2C 商城安裝手ShopNC B2B2C 商城安裝手2015 1 1 / 1. 系統(tǒng)介ShopNC B2B2CShopNC2014技術(shù)為基礎(chǔ),采用OOP(2. 運行環(huán)Linux1. 系統(tǒng)介ShopNC B2B2CShopNC2014技術(shù)為基礎(chǔ),采用OOP(2. 運行環(huán)LinuxNginx3. 安裝詳 + 提示:2 / yum -y install gcc gcc-c+ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 e2fsprogse2f
2、sprogs-develkrb5krb5-devellibidn libidn-developensslopenssl-developenldapopenldap-devel LinuxWindows8GApache_file_uploadsOnupload_max_filesize=安裝服務(wù)控制:servicenginx安裝服務(wù)控制:servicenginx3 / cd/usr/local/src tarzxfopenssl-1.0.0l.tar.gz mv openssl-1.0.0l openssl tarzxfzlib-1.2.8.tar.gz mv zlib-1.2.8 zlibwg
3、etftp:/ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.33.tar.gz tar zxf pcre-8.33.tar.gzmvpcre-8.33# 安裝nginx groupadduseradd-r-gwwwwww-s/sbin/nologin cd /usr/local/src/tarzxfnginx-1.4.7.tar.gz cd nginx-1.4.7./configure-prefix=/usr/local/nginxopenldap-c nts openldap-servers gd-devel libjpeg-d
4、evel libpng-devel freetype-devel libxml2-devel curl-devel freetype-develbisongccgcc-c+autoconfautomakezlib*libxml*ncurses-devellibtool-l-devel*pcre-devel zlib-devel gcc-g77 autoconf automake zlib* fiex* libxml* ncurses-devel * libtool- l-devel* perl gettext pcre-develzlib-devellibXpm-devellibXpm icu
5、icu4jlibicu*wgetlrzsz -deve ziplibaiorsyncopenssh-c nts-sbin-path=/usr/local/nginx/sbin/nginx-conf-path=/usr/local/nginx/conf/nginx.conf-error-log-path=/usr/local/nginx/log/error.logs.log- -lock-path=/usr/local/nginx/var/nginx.lockntbody-http-proxy-temp-path=/tmp/proxy-http-fastcgi-temp-path=/tmp/fa
6、stcgi-http-uwsgi-temp-path=/tmp/uwsgi-http-scgi-temp-path=/tmp/scgi-sbin-path=/usr/local/nginx/sbin/nginx-conf-path=/usr/local/nginx/conf/nginx.conf-error-log-path=/usr/local/nginx/log/error.logs.log- -lock-path=/usr/local/nginx/var/nginx.lockntbody-http-proxy-temp-path=/tmp/proxy-http-fastcgi-temp-
7、path=/tmp/fastcgi-http-uwsgi-temp-path=/tmp/uwsgi-http-scgi-temp-path=/tmp/scgi-user=www-group=www-with-file-aio-with-http_realip_module-with-http_ssl_module-with-openssl=/usr/local/src/openssl-with-ic_module-with-zlib=/usr/local/src/zlib-with-us_module-with-pcre=/usr/local/src/pcre-without-select_m
8、odule-without-poll_module-without-http_ssi_module-without-http_userid_module-without-http_geo_module-without-http_empty_gif_module-without-http_map_module4 / 5 / user5 / user www; ses 2;error_log /var/log/nginx/error.log eventsworker_connections 10240; use epoll;multi_accepthttpdefault_type applicat
9、ion/octet-_pop3_module _imap_module make# 注意開放80端# mkdir/usr/local/nginx/conf/vhosts mkdir -p /var/log/nginx/shop mkdir /var/run/nginxn-Rwww:www/var/log/nginx n-Rwww:wwwmkdirccccnt_header_buffers4ccmsie6send_timeouttcp_nopush server_tokensopen_file_cacheindex.htmlccccnt_header_buffers4ccmsie6send_ti
10、meouttcp_nopush server_tokensopen_file_cacheindex.html/tmp/fastcgi_temp12566 / ;25616text/css text/xml l application/x-#realip;25616text/css text/xml l application/x-#realipX-Real-X-Forwarded-7 / 8 / server8 / servers.loglocationexpireslocationexpireslocationlog_format main $remote_addr-$remote_user
11、$time_local$request us $body_bytes_sent $http_referer $http_user_agent $http_x_forwarded_for;include9 / 9 / #nginx-thisscriptstartsandstopsthenginxdaemon # - 85 #description: NginxisanHTTP(S)server,HTTP(S)reverse proxy and IMAP/POP3 proxy server# sname:#config: /usr/local/nginx/conf/nginx.conf #conf
12、ig: /usr/local/nginx/sysconfig/nginx # file: /usr/local/nginx/var/nginx.#Sourcefunction. expireslocation$fastcgi_pass:9000; fastcgi_index index.fastcgi_paramSCRIPT_FILENAME/wwwroot$fastcgi_script_name; include fastcgi_params;#Sourcenetworking. # tnetworkingis$NETWORKING=no#Sourcenetworking. # tnetwo
13、rkingis$NETWORKING=no&exitprog=$(basename -f$sysconfig& .start()-x$nginx|exit-f$NGINX_CONF_FILE|exitecho-n$Starting$prog:daemon$nginx-c$retval -eq0&touchreturn10 / stop()echo-n$prog:killproc-pfile$retval -eq0stop()echo-n$prog:killproc-pfile$retval -eq0&rm -freturnrestart()configtest_q|returnreload()
14、configtest_q|returnecho-n$Reloading$prog:killproc-pfile$prog-configtest()$nginx-t-cconfigtest_q()11 / $nginx-t-q-cus()usus_q()us/dev/null# Upgradethebinarywith$nginx-t-q-cus()usus_q()us/dev/null# Upgradethebinarywithno upgrade()localconfigtest_q|returnecho-n$Upgrading$prog:killproc-pfile$prog-sleepi
15、f-ffile& -ffile; killproc-pfile$prog -s$progonlinereturnfailure$progonline12 / return#lnginx toreopenreopen_logs()configtest_q|returnecho-n$Reopening$proglogs:killprocreturn#lnginx toreopenreopen_logs()configtest_q|returnecho-n$Reopening$proglogs:killproc-pfile$prog-returncase$1us_q&exitus_q|exitus_
16、q|exit13 / 安3.2.1 安基礎(chǔ)-FPM 配置文件:/-fpm14 / 安3.2.1 安基礎(chǔ)-FPM 配置文件:/-fpm14 / odu+xchkconfig-addnginx chkconfig nginx onus_q|exitus_q|exit7 echo $Usage: $0 start|stop|reload|configtest|sexit 2# cd wget/-tar makecd ./configure-l-makeyum -ln -s mkdir ln -s cnt*# cd wget/-tar makecd ./configure-l-makeyum -ln
17、-s mkdir ln -s cnt*# tar -./configure-/etc -=nd-nd =nd15 / -with-libxml-dir-with-pcre-dir-with-mcrypt-with-openssl-with-gd-with-jpeg-dir-with-png-dir-with-xpm-dir-with-gettext-with-freetype-dir-with-bz2-with-iconv-dir-with-libxml-dir-with-pcre-dir-with-mcrypt-with-openssl-with-gd-with-jpeg-dir-with-
18、png-dir-with-xpm-dir-with-gettext-with-freetype-dir-with-bz2-with-iconv-dir-with-zlib-with-zlib-dir-with-curl-with-xmlrpc-enable-fpm-with-fpm-user=www-with-fpm-group=www-with-icu-dir=/usrtl-l -enable-sockets-enable-gd-native-ttf-enable-gd-jis-conv-enable-ftp-enable-zip-enable-calendar16 / -enable-mb
19、string-enable-exif-enable-soap-enable-wddx-cmath-enable-fd-setsize=4096-disable-short-tagsmake# cp -.ini-production cp -fpm.conf.default-# 安裝redisunizp -enable-mbstring-enable-exif-enable-soap-enable-wddx-cmath-enable-fd-setsize=4096-disable-short-tagsmake# cp -.ini-production cp -fpm.conf.default-#
20、 安裝redisunizp ./configure-makeechos/no-debug-non-zts-20100525/redis.so安裝 zendloaderwget HYPERLINK http:/d/ tarzxfZendGuardLoader-cdZendGuardLoader-mvZendGuardLoader.so17 / vi# # mkdir mkdir n-Rwww:www/n-Rwww:www/-fpm配置,vi-=/vi# # mkdir mkdir n-Rwww:www/n-Rwww:www/-fpm配置,vi-=/error_log=user=group= li
21、sten=pm= -fpm#cp -fpm# 相關(guān)路徑-odu+x-chkconfig-fpm18 / 3.2.2 安裝ShopNC Linux ShopNCB2B2C 1 ,只能在本機(3.2.2 安裝ShopNC Linux ShopNCB2B2C 1 ,只能在本機(、*.localhost)ip 使用。若服務(wù)器是windows 19 / 64位 非線程安全 64位 非線程安全 64位 非線程安全 64位 非線程安全 windows32位 非線程安全 windows32位 非線程安全 windows32位 非線程安全 windows32位 非線程安全 windows32位 線程安windo
22、ws32位 線程安windows32位 線程安windows32位 線程安vi#=擴展目錄-fpm 2 -cgi請 s。 s s。 Windows 2 -cgi請 s。 s s。 Windows web目錄中新建一個內(nèi)容為。 是ext到 20 / A c extentoaccelerateShopNCapplications shopnc = enabledAuthor=ShopNC= info再 次 確 認 , _shopnc.dll 文 件 是 否 找 對 ( 如 , 5.4 、 nts 對 應(yīng) 的 dll info再 次 確 認 , _shopnc.dll 文 件 是 否 找 對 ( 如
23、 , 5.4 、 nts 對 應(yīng) 的 dll .iniweb .ini 文件中的目錄的 ext 子目web 64 x64 版本(64 如果確認操作沒問題但仍然沒有安裝成功,可以考慮重啟一下電腦(Windows dll )安fd21 / cdwget htuseradd -r -s _install_db -user=vi /usr/basedir=/usr/local/ datadir = /var/lib/port=server_id=socket=log_error=log-bin=-file=/mkdir mkdir mkdir mkdir n-:/n-:/nserver_id=sock
24、et=log_error=log-bin=-file=/mkdir mkdir mkdir mkdir n-:/n-:/n-:/# bysqld_safe-&visupport-/# cpsupport-.serverdchkconfig-ddd# 設(shè)置ysqladmin-urootpassword22 / 安裝商城程、安裝商城程、 23/ 24/ 24/ 25/ 25/ 設(shè)置 26/設(shè)置 26/設(shè)置定時任Linux設(shè)置定時任Linux27/# 可執(zhí)行文件所在路# # 主要是商品上架、商品促銷價格、但系統(tǒng)壓力也越大,建議執(zhí)行頻率 10分鐘。# 配置SiteUrl B2B2C地址為 B2B2C商
25、城地址加上mobile,例如: 地址為B2B2C商城地址加上配置SiteUrl B2B2C地址為 B2B2C商城地址加上mobile,例如: 地址為B2B2C商城地址加上wap,例如:B2B2C商城AndroidB2B2C商城IOS端WEBWAP28 / server 其它配置 /在location $代碼塊之前增加以下內(nèi)/1# 1# # 主要是按月出賬單,執(zhí)行頻率 1# 10*/10 * * * * /usr/local/# 每 1小時執(zhí)行一次10 * * # 3:20 20 3 * * * /usr/local/# 每月 1號 3:30執(zhí)行30 3 1* 開啟緩3.7.1 安裝redis開
26、啟緩3.7.1 安裝redis3.2 redis29 / cdtarzxfredis-2.8.8.tar.gz cd redis-2.8.8location$ if ($http_user_agent * (mobile|nokia|ipad|android|samsung|htc|blackberry) rewrite /(.*) /wap/index.html permanent;fastcgi_pass:9000; fastcgi_index index.fastcgi_paramSCRIPT_FILENAME/wwwroot$fastcgi_script_name; include f
27、astcgi_params;location .$fastcgi_pass:9000; fastcgi_index index.fastcgi_paramSCRIPT_FILENAME/wwwroot$fastcgi_script_name; include fastcgi_params;# ./src/redis-server# 創(chuàng)建redismkdir cp-rf./src/redis-cli./src/redis-server./redis.confcd # vi# daemonizefile# ./src/redis-server# 創(chuàng)建redismkdir cp-rf./src/re
28、dis-cli./src/redis-server./redis.confcd # vi# daemonizefileportvi # #chkconfig:234580#SimpleRedisinit.dscript conceivedtoworkonLinux # asit doesuseofthe/proccase$1if -fFILEechoFILEexists,sisalreadyrunningorechoStartingRedis30 / 3.7.2 商城配31 / 3.7.2 商城配31 / redisnc_redis# redis $EXECif ! -f $FILE echo
29、FILEdoesnotexist,sisnot=$(cat $echoXEC-p$REDISPORTshutdown while -x /proc/$ echoWaitingforRedistoshutdown. sleep 1echoRedisechoPleaseusestartorstop# chkconfig-addchkconfig redis on serviceredisstart開啟即時通)開啟即時通)32 / varconfig=0;/數(shù)據(jù)庫地址 = 3306;/數(shù)據(jù)庫端口= shopnc;/數(shù)據(jù)庫用戶名 = = shopnc;/= shopnc_;/表前綴 =true;/兼容
30、低版本 = false;/默認 falseexports.hostname=連接或IP,為空不限tarzxfnode-v0.10.28-linux-mvnode-v0.10.28-linux-x64= = = 不啟用redis =# 啟用redis = = = node nodenode框,說明 IM 開啟全文搜node nodenode框,說明 IM 開啟全文搜33/ nohup/usr/local/node/bin/node/usr/local/node/chat.js/usr/local/node/output.log/usr/local/node/bin/nodeinfo -socke
31、t.iostarted exports.port=8090;/服務(wù)器所用,默認8090,也可自定exports.config=,將 和IP34 / # 啟動 xunsearch /usr/local/xunsearch/bin/xs-ctl.sh-binethourxs_clear # 創(chuàng)建索引(第一次配置時執(zhí)行一次即可,以后只需要定時更新即可)hour # 項目名稱(不需要更改=# 默認字符集 (該項要與當(dāng)前商城字符集一致project.default_charset=UTF-# 索引服務(wù)端配置,默認端口 server.index=# 搜索服務(wù)端配置,默認端口 server.search:8
32、384 # 后面內(nèi)容省略全文檢索配置,支持true(開啟或 false(關(guān)閉)需編輯 dataapixsappshopnc.iniserver.index和 server.search IP=全文檢索配置文件名(shopnc,不需要更改=3.10開啟偽址和偽靜態(tài)兩種 URL )為 true 偽靜態(tài),url_mode 為 3.10開啟偽址和偽靜態(tài)兩種 URL )為 true 偽靜態(tài),url_mode 為 false 35 / # apache # 編輯httpd.conf,加載 編輯httpd.conf,讓Apache支持.htac s AllowOverrideNone改為AllowOverr
33、ide All # 在商城目錄下新建.htc s文件,# 若以 -cgi RewriteEngine onRewriteCond %REQUEST_FILENAME !-d RewriteCond %REQUEST_FILENAME !-f RewriteRule (.*)$ index.# 若5apache2_2.dll方式運行,加入以下內(nèi) RewriteEngine onRewriteCond%REQUEST_FILENAME!-RewriteCond%REQUEST_FILENAME!-goods_idINgoods_nameLIKE女裝= 13.11設(shè)置隊 redis配 置 文 件 )
34、 中 , $configqueueopen true 表 示 啟 用 隊 列 , 為 redisIP 3.12設(shè)36 / CONFIG3.11設(shè)置隊 redis配 置 文 件 ) 中 , $configqueueopen true 表 示 啟 用 隊 列 , 為 redisIP 3.12設(shè)36 / CONFIGnohup queueindex/wwwroot/data/log/queue.logRewriteRule(.*)$/$1nginxlocation/if (!-e rewrite/shop/(.*).html$location $ATH_INFO3.13設(shè)置支付方城的異步通知 URL 告知。如商城地址是, 則它的異步通知URL jsapi 配jsapi端4 3登錄賬號中8位數(shù)字4、API JS3.13設(shè)置支付方城的異步通知 URL 告知。如商城地址是, 則它的異步通知URL jsapi 配jsapi端4 3登錄賬號中8位數(shù)字4、API JSAPI 網(wǎng)頁服務(wù) 網(wǎng)頁賬號 網(wǎng)頁37/IMC IM IM CSS,JS,IMG API API )4. 附配置文件介 全局配置文件2API API )4. 附配置文件介 全局配置文件2管理、圈子、CMS全局配置文件
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 酒店中餐擺臺培訓(xùn)
- 重卡銷售培訓(xùn)
- 痛風(fēng)病人飲食護理
- 職業(yè)安全健康管理
- 財會合規(guī)培訓(xùn)
- 腫瘤護理專家共識
- 銷售業(yè)績分解培訓(xùn)
- 加油站全流程診斷體系構(gòu)建
- 稽核監(jiān)察財務(wù)培訓(xùn)
- 互聯(lián)網(wǎng)+教育精準扶貧:2025年實踐案例分析報告
- 2025年湖南湘西州花垣縣事業(yè)單位招聘工作人員71人歷年高頻重點提升(共500題)附帶答案詳解
- 2025年高中歷史畢業(yè)會考全部基礎(chǔ)知識復(fù)習(xí)提綱(完整版)
- 電商平臺品牌授權(quán)使用協(xié)議
- 水泥土擠密樁的施工方案
- 急性粒-單核細胞白血病病因介紹
- 心外科手術(shù)進修匯報
- 集團公司資金池管理制度
- 瑤醫(yī)瑤藥文化
- 設(shè)計院項目設(shè)計流程與規(guī)范
- 西方哲學(xué)智慧2024-西方哲學(xué)智慧超星爾雅答案
- 黨內(nèi)法規(guī)學(xué)-形考任務(wù)一-國開(FJ)-參考資料
評論
0/150
提交評論