版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、ShopNC B2B2C 商城安裝手ShopNC B2B2C 商城安裝手2015 1 1 / 1. 系統(tǒng)介ShopNC B2B2CShopNC2014技術(shù)為基礎(chǔ),采用OOP(2. 運(yùn)行環(huán)Linux1. 系統(tǒng)介ShopNC B2B2CShopNC2014技術(shù)為基礎(chǔ),采用OOP(2. 運(yùn)行環(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# 注意開(kāi)放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 ,只能在本機(jī)(3.2.2 安裝ShopNC Linux ShopNCB2B2C 1 ,只能在本機(jī)(、*.localhost)ip 使用。若服務(wù)器是windows 19 / 64位 非線程安全 64位 非線程安全 64位 非線程安全 64位 非線程安全 windows32位 非線程安全 windows32位 非線程安全 windows32位 非線程安全 windows32位 非線程安全 windows32位 線程安windo
22、ws32位 線程安windows32位 線程安windows32位 線程安vi#=擴(kuò)展目錄-fpm 2 -cgi請(qǐng) s。 s s。 Windows 2 -cgi請(qǐng) s。 s s。 Windows web目錄中新建一個(gè)內(nèi)容為。 是ext到 20 / A c extentoaccelerateShopNCapplications shopnc = enabledAuthor=ShopNC= info再 次 確 認(rèn) , _shopnc.dll 文 件 是 否 找 對(duì) ( 如 , 5.4 、 nts 對(duì) 應(yīng) 的 dll info再 次 確 認(rèn) , _shopnc.dll 文 件 是 否 找 對(duì) ( 如
23、 , 5.4 、 nts 對(duì) 應(yīng) 的 dll .iniweb .ini 文件中的目錄的 ext 子目web 64 x64 版本(64 如果確認(rèn)操作沒(méi)問(wèn)題但仍然沒(méi)有安裝成功,可以考慮重啟一下電腦(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è)置定時(shí)任Linux設(shè)置定時(shí)任Linux27/# 可執(zhí)行文件所在路# # 主要是商品上架、商品促銷價(jià)格、但系統(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小時(shí)執(zhí)行一次10 * * # 3:20 20 3 * * * /usr/local/# 每月 1號(hào) 3:30執(zhí)行30 3 1* 開(kāi)啟緩3.7.1 安裝redis開(kāi)
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開(kāi)啟即時(shí)通)開(kāi)啟即時(shí)通)32 / varconfig=0;/數(shù)據(jù)庫(kù)地址 = 3306;/數(shù)據(jù)庫(kù)端口= shopnc;/數(shù)據(jù)庫(kù)用戶名 = = shopnc;/= shopnc_;/表前綴 =true;/兼容
30、低版本 = false;/默認(rèn) falseexports.hostname=連接或IP,為空不限tarzxfnode-v0.10.28-linux-mvnode-v0.10.28-linux-x64= = = 不啟用redis =# 啟用redis = = = node nodenode框,說(shuō)明 IM 開(kāi)啟全文搜node nodenode框,說(shuō)明 IM 開(kāi)啟全文搜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ù)器所用,默認(rèn)8090,也可自定exports.config=,將 和IP34 / # 啟動(dòng) xunsearch /usr/local/xunsearch/bin/xs-ctl.sh-binethourxs_clear # 創(chuàng)建索引(第一次配置時(shí)執(zhí)行一次即可,以后只需要定時(shí)更新即可)hour # 項(xiàng)目名稱(不需要更改=# 默認(rèn)字符集 (該項(xiàng)要與當(dāng)前商城字符集一致project.default_charset=UTF-# 索引服務(wù)端配置,默認(rèn)端口 server.index=# 搜索服務(wù)端配置,默認(rèn)端口 server.search:8
32、384 # 后面內(nèi)容省略全文檢索配置,支持true(開(kāi)啟或 false(關(guān)閉)需編輯 dataapixsappshopnc.iniserver.index和 server.search IP=全文檢索配置文件名(shopnc,不需要更改=3.10開(kāi)啟偽址和偽靜態(tài)兩種 URL )為 true 偽靜態(tài),url_mode 為 3.10開(kāi)啟偽址和偽靜態(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方式運(yùn)行,加入以下內(nèi) RewriteEngine onRewriteCond%REQUEST_FILENAME!-RewriteCond%REQUEST_FILENAME!-goods_idINgoods_nameLIKE女裝= 13.11設(shè)置隊(duì) redis配 置 文 件 )
34、 中 , $configqueueopen true 表 示 啟 用 隊(duì) 列 , 為 redisIP 3.12設(shè)36 / CONFIG3.11設(shè)置隊(duì) redis配 置 文 件 ) 中 , $configqueueopen true 表 示 啟 用 隊(duì) 列 , 為 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登錄賬號(hào)中8位數(shù)字4、API JS3.13設(shè)置支付方城的異步通知 URL 告知。如商城地址是, 則它的異步通知URL jsapi 配jsapi端4 3登錄賬號(hào)中8位數(shù)字4、API JSAPI 網(wǎng)頁(yè)服務(wù) 網(wǎng)頁(yè)賬號(hào) 網(wǎng)頁(yè)37/IMC IM IM CSS,JS,IMG API API )4. 附配置文件介 全局配置文件2API API )4. 附配置文件介 全局配置文件2管理、圈子、CMS全局配置文件
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度木屋安全監(jiān)控系統(tǒng)安裝合同4篇
- 2025年蘇教版必修1歷史下冊(cè)月考試卷含答案
- 2025年蘇科版九年級(jí)歷史上冊(cè)月考試卷
- 二零二五版美容院化妝品生產(chǎn)線技術(shù)合作合同3篇
- 2025年粵教新版高三歷史下冊(cè)月考試卷含答案
- 二零二五年度農(nóng)產(chǎn)品品牌營(yíng)銷策劃合同4篇
- 安徽農(nóng)民工就業(yè)指導(dǎo)與職業(yè)規(guī)劃合同范本(2025)2篇
- 二零二五年度民商法擔(dān)保合同爭(zhēng)議調(diào)解規(guī)則4篇
- 二零二五版美容美發(fā)行業(yè)技師職稱評(píng)定合同3篇
- 二零二五年度新型農(nóng)藥農(nóng)膜研發(fā)與應(yīng)用合作合同2篇
- 第十七章-阿法芙·I·梅勒斯的轉(zhuǎn)變理論
- 焊接機(jī)器人在汽車制造中應(yīng)用案例分析報(bào)告
- 合成生物學(xué)在生物技術(shù)中的應(yīng)用
- 中醫(yī)門診病歷
- 廣西華銀鋁業(yè)財(cái)務(wù)分析報(bào)告
- 無(wú)違法犯罪記錄證明申請(qǐng)表(個(gè)人)
- 大學(xué)生勞動(dòng)教育PPT完整全套教學(xué)課件
- 繼電保護(hù)原理應(yīng)用及配置課件
- 《殺死一只知更鳥(niǎo)》讀書分享PPT
- 蓋洛普Q12解讀和實(shí)施完整版
- 2023年Web前端技術(shù)試題
評(píng)論
0/150
提交評(píng)論