adminset下载
https://github.com/guohongze/adminset
我自己的下载路径 (cd /data/project),可根据自己时间环境创建相关下载路径
[root@centos-7 project]# git clone https://github.com/guohongze/adminset.git
adminset安装
关闭自带防火墙
systemctl stop firewalld.service
下载完成
[root@centos-7 project]# ls
adminset
测试服务器可以正常联网
[root@centos-7 project]# ping http://www.baidu.com
PING http://www.a.shifen.com (220.181.38.150) 56(84) bytes of data.
64 bytes from 220.181.38.150: icmp_seq=1 ttl=128 time=13.6 ms
64 bytes from 220.181.38.150: icmp_seq=2 ttl=128 time=11.2 ms
自动化安装命令
[root@centos-7 project]# adminset/install/server/auto_install.sh
遇到的错误(1)
Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again
解决方法vim etc/yum.repos.d/epel.repo
注释掉mirrorlist,取消注释baseurl
更新一下YUM源
yum clean all
yum makecache
yum update
完成后尝试再次安装
[root@centos-7 project]# adminset/install/server/auto_install.sh
遇到错误(2)
ERROR: Cannot uninstall 'python-ldap
解决方法
pip install -I python-ldap==3.0.0b1
遇到问题(3)
ERROR: Cannot uninstall 'requests'
解决方法
request模块会报错,修改requirements.txt直接注释掉该模块即可
vim requirements.txt
安装成功
访问网页
默认用户名:admin 默认密码:Adminset123
#####################################################################################################################
安装问题:
Adminset实战
https://zhuanlan.zhihu.com/p/148407842
https://github.com/guhongze/adminset/wiki/AdminSet
https://github.com/guhongze/adminset/wiki/AdminSet
https://www.jianshu.com/p/273c84227f54
问题:
https://blog.csdn.net/weixin_29904489/article/details/112684723?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522161201295116780271570995%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=161201295116780271570995&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduend~default-3-112684723.first_rank_v2_pc_rank_v29&utm_term=adminset&spm=1018.2226.3001.4187
https://blog.csdn.net/qq_41459661/article/details/103100733?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522161201295116780271531826%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=161201295116780271531826&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_v2~rank_v29-6-103100733.first_rank_v2_pc_rank_v29&utm_term=adminset&spm=1018.2226.3001.4187
https://blog.csdn.net/qq_25934401/article/details/89849221?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522161201295116780271531826%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=161201295116780271531826&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_v2~rank_v29-7-89849221.first_rank_v2_pc_rank_v29&utm_term=adminset&spm=1018.2226.3001.4187
下载git的时候提示(这个里面涉及到git的使用:https://jingyan.baidu.com/article/6b97984d7582d75da2b0bf93.html----https://blog.csdn.net/qq_37968132/article/details/81750777----http://www.bubuko.com/infodetail-3268222.html设置git下载大小和速度----https://www.jianshu.com/p/fbe67d5a003a设置只获取最近一次submit的即可,这样下载的总量变小)
[root@localhost project]# git clone https://github.com/guohongze/adminset.git
正克隆到 'adminset'...
remote: Enumerating objects: 8324, done.
error: RPC failed; result=18, HTTP code = 20000 KiB/s
fatal: The remote end hung up unexpectedly
fatal: 过早的文件结束符(EOF)
fatal: index-pack failed
git config --global http.postBuffer 1048576000
git config --global http.postBuffer 524288000
访问:http://192.168.37.138/accounts/login/?next=/navi/navilist
####install adminset####
Collecting pip
Downloading http://mirrors.aliyun.com/pypi/packages/9e/24/bc928987f35dd0167f21b13a1777c21b9c5917c9894cff93f1c1a6cb8f3b/pip-2 1.0.tar.gz (1.5MB)
100% |████████████████████████████████| 1.6MB 6.9MB/s
Installing collected packages: pip
Found existing installation: pip 8.1.2
Uninstalling pip-8.1.2:
Successfully uninstalled pip-8.1.2
Running setup.py install for pip ... done
Successfully installed pip-21.0
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in
load_entry_point('pip==21.0', 'console_scripts', 'pip')()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.7/site-packages/pip/_internal/cli/main.py", line 60
sys.stderr.write(f"ERROR: {exc}")
^
SyntaxError: invalid syntax
问题有可能存在于pip和setuptool(两者有关联关系)的安装上,环境上执行pip和pip2都无效
删除yum remove python-pip在重新安装,执行pip即可成功。经过反复尝试,发现升级pip后不成功,于是将安装脚本中pip升级和setuptool安装命令(这两个手动安装吧)注释即可继续安装
sudo yum -y install epel-release
sudo yum -y install python-pip
安装mysql时出现问题:Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-QWWTuH/pymysql/,因为pip是8版本的,版本太低导致的
那就升级一下pip的版本https://blog.csdn.net/qq_38251616/article/details/81875683
https://www.itbiancheng.com/article/5331.html
pip升级后还是老版本
https://blog.csdn.net/wang603603/article/details/86903719
cat /data/project/adminset/install/server/auto_install.sh
cat /data/project/adminset/requirements.txt
安装django-db的时候一直报错,那就先在/data/project/adminset/requirements.txt将其注释掉,后面先想办法手动安装