代码拉取完成,页面将自动刷新
同步操作将从 EMQX/neuron 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/bash
set -e
neuron_bin="/usr/local/bin/neuron"
neuron_include="/usr/local/include/neuron"
neuron_lib="/usr/local/lib/neuron"
cp neuron.conf /etc/ld.so.conf.d/
mkdir -p /usr/local/lib/cmake/neuron/
cp neuron-config.cmake /usr/local/lib/cmake/neuron/
mkdir -p ${neuron_include}
cp -r include/neuron/* ${neuron_include}/
mkdir -p ${neuron_lib}
cp lib/* ${neuron_lib}/
mkdir -p ${neuron_bin}
mkdir -p ${neuron_bin}/config
mkdir -p ${neuron_bin}/persistence
mkdir -p ${neuron_bin}/plugins
cp ./neuron ${neuron_bin}/
cp config/sdk-zlog.conf ${neuron_bin}/config/zlog.conf
cp config/dev.conf ${neuron_bin}/config/
cp config/neuron.key ${neuron_bin}/config/
cp config/neuron.pem ${neuron_bin}/config/
cp config/default_plugins.json ${neuron_bin}/config/
cp config/*.sql ${neuron_bin}/config/
cp -r plugins/* ${neuron_bin}/plugins/
cp -r dist ${neuron_bin}/
ldconfig
echo "Install neuron header to ${neuron_include}, include_directories ${neuron_include} in CMakeLists.txt."
echo "Install neuron library to ${neuron_lib}, link_directories ${neuron_lib} in CMakeLists.txt."
echo "Install neuron to ${neuron_bin}, the custom plugin is placed in the ${neuron_bin}/plugins directory and the ${neuron_bin}/persistence/plugins.json is modified."
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。