File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -153,22 +153,34 @@ killall -9 searchd
153153/usr/local/coreseek/bin/indexer -c /etc/sphinx.conf --all --rotate &&
154154/usr/local/coreseek/bin/searchd -c /etc/sphinx.conf
155155time=`date "+%Y-%m-%d %H:%M:%S "`
156- echo "${time} sphinx restart success" >> /usr/share/nginx/html/crontab/sphinx.log
156+ echo "${time} sphinx restart success" >> /usr/share/nginx/html/blog/ crontab/sphinx.log
157157
158158```
159159然后定时任务中每小时执行一次该脚本:
160160
161161```
162162crontab -e
163- 0 */1 * * * /usr/share/nginx/html/crontab/indexer.sh
163+ 0 */1 * * * /usr/share/nginx/html/blog/ crontab/indexer.sh
164164service crond restart
165165
166166```
167167配置完毕,搜索功能已经可以使用
168168
169169
170170
171-
171+ ## 关于后台的开发
172+ 后台使用react + antdesign开发
173+ 进行二次开发的话需要安装node.js
174+ 这里我们推荐yarn(众所周知的原因)
175+ ```
176+ curl --silent --location https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
177+ yum install yarn
178+ yarn -v
179+ yarn install
180+ npm run watch //实时调试
181+ npm run dev //开发打包
182+ npm run prod //上线打包
183+ ```
172184
173185
174186
You can’t perform that action at this time.
0 commit comments