Skip to content

Commit

Permalink
feat: add daemon start script
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanLiu2968 committed Nov 6, 2019
1 parent 92eee38 commit 40125b9
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 38 deletions.
34 changes: 27 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,33 @@ brew services start mongodb

##### Linux(CentOS7) start
```bash
# redis install
sudo apt-get update
sudo apt-get install redis-server
# redis start
redis-server
# test success
redis-cli
# redis install [yum install redis](https://www.cnblogs.com/rslai/p/8249812.html)
yum install redis

# control
systemctl start redis.service
systemctl stop redis.service

# install mysql
# https://stackoverflow.com/questions/9083408/fatal-error-cant-open-and-lock-privilege-tables-table-mysql-host-doesnt-ex
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum install mysql-server

# edit config
vim /etc/my.cnf
datadir=/data/mysql
# mysql control
systemctl start mysqld

# login
# cat /var/log/mysqld.log|grep 'A temporary password'
mysql -u root -p
use mysql
update mysql.user set authentication_string = password("123456") where user="root";
GRANT ALL ON *.* to root@'%' IDENTIFIED BY 'root'; # to allow remote connect
flush privileges;
quit;

# download mongodb package

Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@
"eslint": "^4.11.0",
"eslint-config-egg": "^6.0.0",
"mocha": "^5.2.0",
"sequelize-cli": "^5.5.1",
"webstorm-disable-index": "^1.2.0"
"sequelize-cli": "^5.5.1"
},
"engines": {
"node": "^8.1.3"
"node": ">=8.1.3"
},
"scripts": {
"start": "egg-scripts start --title=eShowCase.eLearning.Api.external --cluster 1",
"start": "egg-scripts start --daemon --title=eShowCase.eLearning.Api.external --cluster 1",
"stop": "egg-scripts stop --title=eShowCase.eLearning.Api.external",
"dev": "egg-bin dev",
"debug": "egg-bin debug",
Expand Down
29 changes: 2 additions & 27 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4270,7 +4270,7 @@ lodash.flattendeep@^4.4.0:
version "4.4.0"
resolved "https://registry.yarnpkg.com/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz#fb030917f86a3134e5bc9bec0d69e0013ddfedb2"

lodash@^4.17.13, lodash@^4.17.15, lodash@^4.17.2, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.0, lodash@^4.3.0:
lodash@^4.17.13, lodash@^4.17.15, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.0, lodash@^4.3.0:
version "4.17.15"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"

Expand Down Expand Up @@ -4618,7 +4618,7 @@ mz-modules@^2.1.0:
pump "^3.0.0"
rimraf "^2.6.1"

mz@^2.6.0, mz@^2.7.0:
mz@^2.7.0:
version "2.7.0"
resolved "https://registry.yarnpkg.com/mz/-/mz-2.7.0.tgz#95008057a56cafadc2bc63dde7f9ff6955948e32"
dependencies:
Expand Down Expand Up @@ -5718,10 +5718,6 @@ safe-timers@^1.1.0:
version "2.1.2"
resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"

sax@=0.4.2:
version "0.4.2"
resolved "https://registry.yarnpkg.com/sax/-/sax-0.4.2.tgz#39f3b601733d6bec97105b242a2a40fd6978ac3c"

sax@^1.2.4:
version "1.2.4"
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
Expand Down Expand Up @@ -6552,16 +6548,6 @@ vary@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc"

webstorm-disable-index@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/webstorm-disable-index/-/webstorm-disable-index-1.2.0.tgz#03d55abe05aff34a6af12b7bfddcaee145c64bd0"
dependencies:
co "^4.6.0"
lodash "^4.17.2"
mkdirp "^0.5.1"
mz "^2.6.0"
xml-mapping "^1.7.1"

which-module@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f"
Expand Down Expand Up @@ -6647,17 +6633,6 @@ wt@^1.2.0:
ndir "^0.1.5"
sdk-base "^2.0.1"

xml-mapping@^1.7.1:
version "1.7.1"
resolved "https://registry.yarnpkg.com/xml-mapping/-/xml-mapping-1.7.1.tgz#65689659e5085833c7d2bec57dac2842ccbbc286"
dependencies:
sax "=0.4.2"
xml-writer ">=1.0.4"

xml-writer@>=1.0.4:
version "1.7.0"
resolved "https://registry.yarnpkg.com/xml-writer/-/xml-writer-1.7.0.tgz#b76f1d591c16a2634ebdb703c7bdbd0fd6819065"

[email protected]:
version "2.0.0"
resolved "https://registry.yarnpkg.com/xregexp/-/xregexp-2.0.0.tgz#52a63e56ca0b84a7f3a5f3d61872f126ad7a5943"
Expand Down

0 comments on commit 40125b9

Please sign in to comment.