当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 108

影先生/Aclsm
暂停

forked from weihaoxuan/Aclsm
暂停
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
install.sh 1002 Bytes
一键复制 编辑 原始数据 按行查看 历史
weihaoxuan 提交于 2017-11-24 13:47 . 1
#!/bin/bash
######配置区#######
mysqlusername='root'
mysqlpassword='123456'
mysqlip=127.0.0.1
###################
echo '设置环境变量'
echo 'export PYTHONOPTIMIZE=1' >> /etc/profile
echo 'export C_FORCE_ROOT=1' >> /etc/profile
source /etc/profile
echo '开始创建数据库及账户'
sed -i.bak "s/100.100.100.100/$mysqlip/" xbmanIntegrated/settings.py
mysql -h $mysqlip -u$mysqlusername -p$mysqlpassword <<EOF 2>/dev/null
CREATE DATABASE aclsm CHARACTER SET utf8 COLLATE utf8_general_ci;
grant all privileges on aclsm.* to aclsm@* identified by 'aclsm.com';
flush privileges;
EOF
echo '初始化数据库表和登陆账户'
python manage.py makemigrations
python manage.py migrate
echo "from Integrated.models import UserProfile as User; User.objects.create_superuser(username='ACLSM', email='aclsm@aclsm.com', password='aclsm.com')" | python manage.py shell
echo 'mysql登录账号密码为:aclsm/aclsm.com'
echo '默认登录账号密码为:aclsm@aclsm.com/aclsm.com'
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/buluefox/Aclsm.git
git@gitee.com:buluefox/Aclsm.git
buluefox
Aclsm
Aclsm
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385