Related documents:
https://guide.yearning.io/ Yearning Profile
http://python.yearning.io/install/ Yearning installation
Yearning SQL-based platform Vue.js audit and Django package mysql-sql audit platform solutions. Inception of SQL-based testing and execution.
GitHub:https://github.com/cookieY/Yearning
Documentation: https://cookiey.github.io/Yearning-document/
Built environment
MySQL Version: 5.7.24
linux system: CentOS7
Python Version: 3.6
Yearning installation
Download yearning1.4.7 version
git Address: https://github.com/cookieY/Yearning/tree/v1.4.7
Just click the download package to
Create a yearning database
Create a yearning needed in their own database instance database
create database Yearning DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
Installation python dependencies
cd Yearning/src pip install -r requirements.txt
Yearning configuration profiles
Edit Yearning / src / deploy.conf file
[mysql] library name db = created address = address database port = port database password = password database username = database user [Host] ipaddress = server ip address: port (very important !! involving cross-domain settings are incorrect will not land !!) as the local address is 192.168.137.13 nginx set port 80 should be filled in as accessed through the address after 192.168.137.13:80 platform. [Inception] ip = Inception address port = Inception port user = Inception username password = Inception password backupdb = backup of the database address backupport = backup database Port backupuser = backup of the database user name backuppassword = backup database password [LDAP] LDAP settings LDAP_SERVER = LDAP service address LDAP_SCBASE = LDAP dc = xxx settings such as DC, DC = COM LDAP_DOMAIN = the LDAP domain such as xxx.com [Email] push mail settings username = Outgoing mail account such as [email protected] password = Outgoing mail account password smtp_server = stmp mail address, please consult the specific address corresponding to the email provider
Initialize the database
python3 manage.py makemigrations python3 manage.py migrate
This step may be an error
1. There is no use python3,
SyntaxError: Non-ASCII character '\xe6' in file /data/mysql/opdir/Yearning-1.4.7/src/settingConf/settings.py on line 154, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
2. Start python3
ModuleNotFoundError: No module named 'Crypto'
Crypto no module, the module needs to be installed
[Root @ XXX ~] # pip install crypto install the module
Add user initialization
echo "from core.models import Account;Account.objects.create_user(username='admin', password='admin123456', group='admin',is_staff=1)" | python3 manage.py shell
Statically compiled copy files to the directory nginx html
cd /data/mysql/opdir/Yearning-1.4.7/webpage npm install
npm install [email protected] --ignore-scripts (above If you have questions, do this on ok)
If you do not npm, you need to install the preceding paragraph related software
npm yum install npm the Node npm install the Node front-end related installation npm install --global vue-cli npm install -g WebPACK npm install -g WebPACK WebPACK-cli npm install --global vue-cli WebPACK -v whether the installation was successful # view the next vue Check whether the installation is successful -V # nginx own equipment (front-end proxy use) yum install nginx