Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
srvpro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
srvpro
Commits
9b77070c
Commit
9b77070c
authored
Jun 11, 2018
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update doc
parent
feb09bca
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
276 additions
and
4 deletions
+276
-4
README.md
README.md
+5
-2
docs/install_centos_6.sh
docs/install_centos_6.sh
+1
-1
docs/install_centos_7.sh
docs/install_centos_7.sh
+91
-0
docs/install_ubnutu_14.sh
docs/install_ubnutu_14.sh
+1
-1
docs/install_ubnutu_16.sh
docs/install_ubnutu_16.sh
+89
-0
docs/install_ubnutu_18.sh
docs/install_ubnutu_18.sh
+89
-0
No files found.
README.md
View file @
9b77070c
...
...
@@ -28,8 +28,11 @@
### 使用方法
*
可参考
[
wiki
](
https://github.com/mercury233/ygopro-server/wiki
)
安装
*
一键安装:
*
CentOS 7
`curl -sL https://purerosefallen.github.io/ygopro-server/install_centos.sh | sudo -E bash -`
*
Ubnutu 16
`curl -sL https://purerosefallen.github.io/ygopro-server/install_ubnutu.sh | sudo -E bash -`
*
CentOS 7
`curl -sL https://purerosefallen.github.io/ygopro-server/install_centos_7.sh | sudo -E bash -`
*
CentOS 6
`curl -sL https://purerosefallen.github.io/ygopro-server/install_centos_6.sh | sudo -E bash -`
*
Ubnutu 18
`curl -sL https://purerosefallen.github.io/ygopro-server/install_ubnutu_18.sh | sudo -E bash -`
*
Ubnutu 16
`curl -sL https://purerosefallen.github.io/ygopro-server/install_ubnutu_16.sh | sudo -E bash -`
*
Ubnutu 14
`curl -sL https://purerosefallen.github.io/ygopro-server/install_ubnutu_14.sh | sudo -E bash -`
*
更新数据
`curl -sL https://purerosefallen.github.io/ygopro-server/update.sh | sudo -E bash -`
*
手动安装:
*
`git clone https://github.com/moecube/srvpro.git`
...
...
docs/install_centos.sh
→
docs/install_centos
_6
.sh
View file @
9b77070c
...
...
@@ -7,7 +7,7 @@ sudo -E systemctl stop firewalld
sudo
-E
yum update
-y
sudo
-E
yum
install
epel-release yum-utils
-y
sudo
-E
rpm
--import
"http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
sudo
-E
yum-config-manager
--add-repo
http://download.mono-project.com/repo/centos7/
curl https://download.mono-project.com/repo/centos6-stable.repo |
sudo
-E
tee
/etc/yum.repos.d/mono-centos6-stable.repo
curl
--silent
--location
https://rpm.nodesource.com/setup_10.x |
sudo
-E
bash -
sudo
-E
yum
install
nodejs git gcc gcc-c++ sqlite-devel readline-devel openssl-devel wget mono-complete
-y
sudo
-E
npm
install
pm2
-g
...
...
docs/install_centos_7.sh
0 → 100644
View file @
9b77070c
#!/bin/bash
# install script for CentOS 7
sudo
-E
systemctl stop firewalld
sudo
-E
yum update
-y
sudo
-E
yum
install
epel-release yum-utils
-y
sudo
-E
rpm
--import
"http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
curl https://download.mono-project.com/repo/centos7-stable.repo |
sudo
-E
tee
/etc/yum.repos.d/mono-centos7-stable.repo
curl
--silent
--location
https://rpm.nodesource.com/setup_10.x |
sudo
-E
bash -
sudo
-E
yum
install
nodejs git gcc gcc-c++ sqlite-devel readline-devel openssl-devel wget mono-complete
-y
sudo
-E
npm
install
pm2
-g
mkdir
lib
cd
lib
wget https://nchc.dl.sourceforge.net/project/p7zip/p7zip/16.02/p7zip_16.02_src_all.tar.bz2
--no-check-certificate
tar
jxvf p7zip_16.02_src_all.tar.bz2
cd
p7zip_16.02
sudo
-E
make all3
install
cd
..
wget http://download.redis.io/releases/redis-4.0.9.tar.gz
--no-check-certificate
tar
xzfv redis-4.0.9.tar.gz
cd
redis-4.0.9
make
sudo
-E
make
install
sudo
-E
cp
-rf
src/redis-server /usr/bin/
cd
..
pm2 start redis-server
wget
'http://www.lua.org/ftp/lua-5.3.4.tar.gz'
--no-check-certificate
tar
zxf lua-5.3.4.tar.gz
cd
lua-5.3.4
sudo
-E
make linux
test install
cd
..
wget
'http://downloads.sourceforge.net/project/premake/Premake/4.4/premake-4.4-beta5-src.zip?r=&ts=1457170593&use_mirror=nchc'
-O
premake-4.4-beta5-src.zip
--no-check-certificate
7z x
-y
premake-4.4-beta5-src.zip
cd
premake-4.4-beta5/build/gmake.unix/
make
cd
../../bin/release/
sudo
-E
cp
premake4 /usr/bin/
cd
../../../
wget
'https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz'
-O
libevent-2.0.22-stable.tar.gz
--no-check-certificate
tar
xf libevent-2.0.22-stable.tar.gz
cd
libevent-2.0.22-stable/
./configure
make
sudo
-E
make
install
sudo
-E
ln
-s
/usr/local/lib/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5
sudo
-E
ln
-s
/usr/local/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5
sudo
-E
ln
-s
/usr/local/lib/libevent_pthreads-2.0.so.5 /usr/lib/libevent_pthreads-2.0.so.5
sudo
-E
ln
-s
/usr/local/lib/libevent_pthreads-2.0.so.5 /usr/lib64/libevent_pthreads-2.0.so.5
cd
..
cd
..
git clone https://github.com/purerosefallen/ygopro-server ygopro-server
cd
ygopro-server
npm
install
cp
-rf
config_build config
mkdir
decks decks_save replays
git clone https://github.com/purerosefallen/ygopro
--branch
=
server
--recursive
cd
ygopro/
git submodule foreach git checkout master
premake4 gmake
cd
build/
make
config
=
release
cd
..
ln
-s
bin/release/ygopro ./
strip ygopro
mkdir
replay
cd
..
git clone
--depth
=
1 https://github.com/purerosefallen/windbot
cd
windbot
echo
y | xbuild /property:Configuration
=
Release
ln
-s
bin/Release/WindBot.exe
.
ln
-s
../ygopro/cards.cdb
.
pm2 start pm2.json
cd
..
pm2 start ygopro-server.js
pm2 start ygopro-webhook.js
pm2 save
sudo
-E
pm2 startup
docs/install_ubnutu.sh
→
docs/install_ubnutu
_14
.sh
View file @
9b77070c
...
...
@@ -3,7 +3,7 @@
# install script for Ubnutu 16
sudo
-E
apt-key adv
--keyserver
hkp://keyserver.ubuntu.com:80
--recv-keys
3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo
"deb http://download.mono-project.com/repo/ubuntu
xenial main"
|
sudo
-E
tee
/etc/apt/sources.list.d/mono-official
.list
echo
"deb http://download.mono-project.com/repo/ubuntu
stable-trusty main"
|
sudo
-E
tee
/etc/apt/sources.list.d/mono-official-stable
.list
echo
y |
sudo
-E
apt-get update
-y
echo
y |
sudo
-E
apt-get upgrade
-y
curl
-sL
https://deb.nodesource.com/setup_10.x |
sudo
-E
bash -
...
...
docs/install_ubnutu_16.sh
0 → 100644
View file @
9b77070c
#!/bin/bash
# install script for Ubnutu 16
sudo
-E
apt-key adv
--keyserver
hkp://keyserver.ubuntu.com:80
--recv-keys
3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo
"deb http://download.mono-project.com/repo/ubuntu stable-xenial main"
|
sudo
-E
tee
/etc/apt/sources.list.d/mono-official-stable.list
echo
y |
sudo
-E
apt-get update
-y
echo
y |
sudo
-E
apt-get upgrade
-y
curl
-sL
https://deb.nodesource.com/setup_10.x |
sudo
-E
bash -
echo
y |
sudo
-E
apt-get
install
-y
curl git build-essential libreadline-dev libsqlite3-dev mono-complete nodejs
sudo
-E
npm
install
pm2
-g
mkdir
lib
cd
lib
wget https://nchc.dl.sourceforge.net/project/p7zip/p7zip/16.02/p7zip_16.02_src_all.tar.bz2
--no-check-certificate
tar
jxvf p7zip_16.02_src_all.tar.bz2
cd
p7zip_16.02
sudo
-E
make all3
install
cd
..
wget http://download.redis.io/releases/redis-4.0.9.tar.gz
--no-check-certificate
tar
xzfv redis-4.0.9.tar.gz
cd
redis-4.0.9
make
sudo
-E
make
install
sudo
-E
cp
-rf
src/redis-server /usr/bin/
cd
..
pm2 start redis-server
wget
'http://www.lua.org/ftp/lua-5.3.4.tar.gz'
--no-check-certificate
tar
zxf lua-5.3.4.tar.gz
cd
lua-5.3.4
sudo
-E
make linux
test install
cd
..
wget
'http://downloads.sourceforge.net/project/premake/Premake/4.4/premake-4.4-beta5-src.zip?r=&ts=1457170593&use_mirror=nchc'
-O
premake-4.4-beta5-src.zip
--no-check-certificate
7z x
-y
premake-4.4-beta5-src.zip
cd
premake-4.4-beta5/build/gmake.unix/
make
cd
../../bin/release/
sudo
-E
cp
premake4 /usr/bin/
cd
../../../
wget
'https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz'
-O
libevent-2.0.22-stable.tar.gz
--no-check-certificate
tar
xf libevent-2.0.22-stable.tar.gz
cd
libevent-2.0.22-stable/
./configure
make
sudo
-E
make
install
sudo
-E
ln
-s
/usr/local/lib/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5
sudo
-E
ln
-s
/usr/local/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5
sudo
-E
ln
-s
/usr/local/lib/libevent_pthreads-2.0.so.5 /usr/lib/libevent_pthreads-2.0.so.5
sudo
-E
ln
-s
/usr/local/lib/libevent_pthreads-2.0.so.5 /usr/lib64/libevent_pthreads-2.0.so.5
cd
..
cd
..
git clone https://github.com/purerosefallen/ygopro-server ygopro-server
cd
ygopro-server
npm
install
cp
-rf
config_build config
mkdir
decks decks_save replays
git clone https://github.com/purerosefallen/ygopro
--branch
=
server
--recursive
cd
ygopro/
git submodule foreach git checkout master
premake4 gmake
cd
build/
make
config
=
release
cd
..
ln
-s
bin/release/ygopro ./
strip ygopro
mkdir
replay
cd
..
git clone https://github.com/purerosefallen/windbot
cd
windbot
echo
y | xbuild /property:Configuration
=
Release
ln
-s
bin/Release/WindBot.exe
.
ln
-s
../ygopro/cards.cdb
.
pm2 start pm2.json
cd
..
pm2 start ygopro-server.js
pm2 start ygopro-webhook.js
pm2 save
sudo
-E
pm2 startup
docs/install_ubnutu_18.sh
0 → 100644
View file @
9b77070c
#!/bin/bash
# install script for Ubnutu 16
sudo
-E
apt-key adv
--keyserver
hkp://keyserver.ubuntu.com:80
--recv-keys
3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo
"deb http://download.mono-project.com/repo/ubuntu stable-bionic main"
|
sudo
-E
tee
/etc/apt/sources.list.d/mono-official-stable.list
echo
y |
sudo
-E
apt-get update
-y
echo
y |
sudo
-E
apt-get upgrade
-y
curl
-sL
https://deb.nodesource.com/setup_10.x |
sudo
-E
bash -
echo
y |
sudo
-E
apt-get
install
-y
curl git build-essential libreadline-dev libsqlite3-dev mono-complete nodejs
sudo
-E
npm
install
pm2
-g
mkdir
lib
cd
lib
wget https://nchc.dl.sourceforge.net/project/p7zip/p7zip/16.02/p7zip_16.02_src_all.tar.bz2
--no-check-certificate
tar
jxvf p7zip_16.02_src_all.tar.bz2
cd
p7zip_16.02
sudo
-E
make all3
install
cd
..
wget http://download.redis.io/releases/redis-4.0.9.tar.gz
--no-check-certificate
tar
xzfv redis-4.0.9.tar.gz
cd
redis-4.0.9
make
sudo
-E
make
install
sudo
-E
cp
-rf
src/redis-server /usr/bin/
cd
..
pm2 start redis-server
wget
'http://www.lua.org/ftp/lua-5.3.4.tar.gz'
--no-check-certificate
tar
zxf lua-5.3.4.tar.gz
cd
lua-5.3.4
sudo
-E
make linux
test install
cd
..
wget
'http://downloads.sourceforge.net/project/premake/Premake/4.4/premake-4.4-beta5-src.zip?r=&ts=1457170593&use_mirror=nchc'
-O
premake-4.4-beta5-src.zip
--no-check-certificate
7z x
-y
premake-4.4-beta5-src.zip
cd
premake-4.4-beta5/build/gmake.unix/
make
cd
../../bin/release/
sudo
-E
cp
premake4 /usr/bin/
cd
../../../
wget
'https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz'
-O
libevent-2.0.22-stable.tar.gz
--no-check-certificate
tar
xf libevent-2.0.22-stable.tar.gz
cd
libevent-2.0.22-stable/
./configure
make
sudo
-E
make
install
sudo
-E
ln
-s
/usr/local/lib/libevent-2.0.so.5 /usr/lib/libevent-2.0.so.5
sudo
-E
ln
-s
/usr/local/lib/libevent-2.0.so.5 /usr/lib64/libevent-2.0.so.5
sudo
-E
ln
-s
/usr/local/lib/libevent_pthreads-2.0.so.5 /usr/lib/libevent_pthreads-2.0.so.5
sudo
-E
ln
-s
/usr/local/lib/libevent_pthreads-2.0.so.5 /usr/lib64/libevent_pthreads-2.0.so.5
cd
..
cd
..
git clone https://github.com/purerosefallen/ygopro-server ygopro-server
cd
ygopro-server
npm
install
cp
-rf
config_build config
mkdir
decks decks_save replays
git clone https://github.com/purerosefallen/ygopro
--branch
=
server
--recursive
cd
ygopro/
git submodule foreach git checkout master
premake4 gmake
cd
build/
make
config
=
release
cd
..
ln
-s
bin/release/ygopro ./
strip ygopro
mkdir
replay
cd
..
git clone https://github.com/purerosefallen/windbot
cd
windbot
echo
y | xbuild /property:Configuration
=
Release
ln
-s
bin/Release/WindBot.exe
.
ln
-s
../ygopro/cards.cdb
.
pm2 start pm2.json
cd
..
pm2 start ygopro-server.js
pm2 start ygopro-webhook.js
pm2 save
sudo
-E
pm2 startup
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment