最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【记录】手动交互模式去安装OneinStack以搭建Web服务器

安装 crifan 924浏览 0评论
折腾:
【记录】阿里云ECS的CentOS中搭建用于WordPress的web服务器的LNMP环境
打算去
交互安装 – OneinStack
用SecureCRT通过SSH登录ECS服务器,然后去:
[root@izj6cefkuu3496m71s907xz ~]# yum -y install wget screen curl python
Loaded plugins: fastestmirror
base                                                                                                                                                            | 3.6 kB  00:00:00     
epel                                                                                                                                                            | 3.2 kB  00:00:00     
extras                                                                                                                                                          | 3.4 kB  00:00:00     
updates                                                                                                                                                         | 3.4 kB  00:00:00     
(1/7): epel/x86_64/group_gz                                                                                                                                     |  88 kB  00:00:00     
(2/7): base/7/x86_64/group_gz                                                                                                                                   | 166 kB  00:00:00     
(3/7): extras/7/x86_64/primary_db                                                                                                                               | 186 kB  00:00:00     
(4/7): epel/x86_64/updateinfo                                                                                                                                   | 938 kB  00:00:00     
(5/7): base/7/x86_64/primary_db                                                                                                                                 | 5.9 MB  00:00:00     
(6/7): epel/x86_64/primary                                                                                                                                      | 3.6 MB  00:00:00     
(7/7): updates/7/x86_64/primary_db                                                                                                                              | 5.2 MB  00:00:00     
Determining fastest mirrors
epel                                                                                                                                                                       12660/12660
Resolving Dependencies
--> Running transaction check
---> Package curl.x86_64 0:7.29.0-42.el7 will be updated
---> Package curl.x86_64 0:7.29.0-46.el7 will be an update
--> Processing Dependency: libcurl = 7.29.0-46.el7 for package: curl-7.29.0-46.el7.x86_64
---> Package python.x86_64 0:2.7.5-58.el7 will be updated
---> Package python.x86_64 0:2.7.5-69.el7_5 will be an update
--> Processing Dependency: python-libs(x86-64) = 2.7.5-69.el7_5 for package: python-2.7.5-69.el7_5.x86_64
---> Package screen.x86_64 0:4.1.0-0.25.20120314git3c2946.el7 will be installed
---> Package wget.x86_64 0:1.14-15.el7 will be updated
---> Package wget.x86_64 0:1.14-15.el7_4.1 will be an update
--> Running transaction check
---> Package libcurl.x86_64 0:7.29.0-42.el7 will be updated
---> Package libcurl.x86_64 0:7.29.0-46.el7 will be an update
---> Package python-libs.x86_64 0:2.7.5-58.el7 will be updated
---> Package python-libs.x86_64 0:2.7.5-69.el7_5 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================================================================
 Package                                  Arch                                Version                                                       Repository                            Size
=======================================================================================================================================================================================
Installing:
 screen                                   x86_64                              4.1.0-0.25.20120314git3c2946.el7                              base                                 552 k
Updating:
 curl                                     x86_64                              7.29.0-46.el7                                                 base                                 268 k
 python                                   x86_64                              2.7.5-69.el7_5                                                updates                               93 k
 wget                                     x86_64                              1.14-15.el7_4.1                                               base                                 547 k
Updating for dependencies:
 libcurl                                  x86_64                              7.29.0-46.el7                                                 base                                 220 k
 python-libs                              x86_64                              2.7.5-69.el7_5                                                updates                              5.6 M

Transaction Summary
=======================================================================================================================================================================================
Install  1 Package
Upgrade  3 Packages (+2 Dependent packages)

Total download size: 7.3 M
Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/6): python-2.7.5-69.el7_5.x86_64.rpm                                                                                                                         |  93 kB  00:00:00     
(2/6): libcurl-7.29.0-46.el7.x86_64.rpm                                                                                                                         | 220 kB  00:00:00     
(3/6): curl-7.29.0-46.el7.x86_64.rpm                                                                                                                            | 268 kB  00:00:00     
(4/6): screen-4.1.0-0.25.20120314git3c2946.el7.x86_64.rpm                                                                                                       | 552 kB  00:00:00     
(5/6): wget-1.14-15.el7_4.1.x86_64.rpm                                                                                                                          | 547 kB  00:00:00     
(6/6): python-libs-2.7.5-69.el7_5.x86_64.rpm                                                                                                                    | 5.6 MB  00:00:00     
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                  8.4 MB/s | 7.3 MB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : libcurl-7.29.0-46.el7.x86_64                                                                                                                                       1/11 
  Updating   : python-libs-2.7.5-69.el7_5.x86_64                                                                                                                                  2/11 
  Updating   : python-2.7.5-69.el7_5.x86_64                                                                                                                                       3/11 
  Updating   : curl-7.29.0-46.el7.x86_64                                                                                                                                          4/11 
  Installing : screen-4.1.0-0.25.20120314git3c2946.el7.x86_64                                                                                                                     5/11 
  Updating   : wget-1.14-15.el7_4.1.x86_64                                                                                                                                        6/11 
  Cleanup    : python-2.7.5-58.el7.x86_64                                                                                                                                         7/11 
  Cleanup    : curl-7.29.0-42.el7.x86_64                                                                                                                                          8/11 
  Cleanup    : libcurl-7.29.0-42.el7.x86_64                                                                                                                                       9/11 
  Cleanup    : python-libs-2.7.5-58.el7.x86_64                                                                                                                                   10/11 
  Cleanup    : wget-1.14-15.el7.x86_64                                                                                                                                           11/11 
  Verifying  : wget-1.14-15.el7_4.1.x86_64                                                                                                                                        1/11 
  Verifying  : curl-7.29.0-46.el7.x86_64                                                                                                                                          2/11 
  Verifying  : screen-4.1.0-0.25.20120314git3c2946.el7.x86_64                                                                                                                     3/11 
  Verifying  : python-2.7.5-69.el7_5.x86_64                                                                                                                                       4/11 
  Verifying  : python-libs-2.7.5-69.el7_5.x86_64                                                                                                                                  5/11 
  Verifying  : libcurl-7.29.0-46.el7.x86_64                                                                                                                                       6/11 
  Verifying  : wget-1.14-15.el7.x86_64                                                                                                                                            7/11 
  Verifying  : python-2.7.5-58.el7.x86_64                                                                                                                                         8/11 
  Verifying  : curl-7.29.0-42.el7.x86_64                                                                                                                                          9/11 
  Verifying  : python-libs-2.7.5-58.el7.x86_64                                                                                                                                   10/11 
  Verifying  : libcurl-7.29.0-42.el7.x86_64                                                                                                                                      11/11 

Installed:
  screen.x86_64 0:4.1.0-0.25.20120314git3c2946.el7                                                                                                                                     

Updated:
  curl.x86_64 0:7.29.0-46.el7                                python.x86_64 0:2.7.5-69.el7_5                                wget.x86_64 0:1.14-15.el7_4.1                               

Dependency Updated:
  libcurl.x86_64 0:7.29.0-46.el7                                                          python-libs.x86_64 0:2.7.5-69.el7_5                                                         

Complete!
[root@izj6cefkuu3496m71s907xz ~]# yum info python
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Installed Packages
Name        : python
Arch        : x86_64
Version     : 2.7.5
Release     : 69.el7_5
Size        : 79 k
Repo        : installed
From repo   : updates
Summary     : An interpreted, interactive, object-oriented programming language
URL         : 
http://www.python.org/
License     : Python
Description : Python is an interpreted, interactive, object-oriented programming
            : language often compared to Tcl, Perl, Scheme or Java. Python includes
            : modules, classes, exceptions, very high level dynamic data types and
            : dynamic typing. Python supports interfaces to many system calls and
            : libraries, as well as to various windowing systems (X11, Motif, Tk,
            : Mac and MFC).
            : 
            : Programmers can write new built-in modules for Python in C or C++.
            : Python can be used as an extension language for applications that need
            : a programmable interface.
            : 
            : Note that documentation for Python is provided in the python-docs
            : package.
            : 
            : This package provides the "python" executable; most of the actual
            : implementation is within the "python-libs" package.

[root@izj6cefkuu3496m71s907xz ~]# yum info screen
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Installed Packages
Name        : screen
Arch        : x86_64
Version     : 4.1.0
Release     : 0.25.20120314git3c2946.el7
Size        : 914 k
Repo        : installed
From repo   : base
Summary     : A screen manager that supports multiple logins on one terminal
URL         : 
http://www.gnu.org/software/screen
License     : GPLv2+
Description : The screen utility allows you to have multiple logins on just one
            : terminal. Screen is useful for users who telnet into a machine or are
            : connected via a dumb terminal, but want to use more than just one
            : login.
            : 
            : Install the screen package if you need a screen manager that can
            : support multiple logins on one terminal.

[root@izj6cefkuu3496m71s907xz ~]# yum info curl
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Installed Packages
Name        : curl
Arch        : x86_64
Version     : 7.29.0
Release     : 46.el7
Size        : 528 k
Repo        : installed
From repo   : base
Summary     : A utility for getting files from remote servers (FTP, HTTP, and others)
URL         : 
http://curl.haxx.se/
License     : MIT
Description : curl is a command line tool for transferring data with URL syntax, supporting
            : FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS, FILE, IMAP,
            : SMTP, POP3 and RTSP.  curl supports SSL certificates, HTTP POST, HTTP PUT, FTP
            : uploading, HTTP form based upload, proxies, cookies, user+password
            : authentication (Basic, Digest, NTLM, Negotiate, kerberos...), file transfer
            : resume, proxy tunneling and a busload of other useful tricks.

[root@izj6cefkuu3496m71s907xz ~]# yum info wget
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Installed Packages
Name        : wget
Arch        : x86_64
Version     : 1.14
Release     : 15.el7_4.1
Size        : 2.0 M
Repo        : installed
From repo   : base
Summary     : A utility for retrieving files using the HTTP or FTP protocols
URL         : 
http://www.gnu.org/software/wget/
License     : GPLv3+
Description : GNU Wget is a file retrieval utility which can use either the HTTP or
            : FTP protocols. Wget features include the ability to work in the
            : background while you are logged out, recursive retrieval of
            : directories, file name wildcard matching, remote file timestamp
            : storage and comparison, use of Rest with FTP servers and Range with
            : HTTP servers to retrieve files over slow or unstable connections,
            : support for Proxy servers, and configurability.
然后:
速度不错,有10M/s多
[root@izj6cefkuu3496m71s907xz ~]# wget 
http://mirrors.linuxeye.com/oneinstack-full.tar.gz
--2018-08-26 21:12:39--  
http://mirrors.linuxeye.com/oneinstack-full.tar.gz
Resolving 
mirrors.linuxeye.com
 (
mirrors.linuxeye.com
)... 45.79.84.47, 2405:fd80:110:0:d63d:7eff:fe73:11, 2405:fd80:110:0:d63d:7eff:fe73:12, ...
Connecting to 
mirrors.linuxeye.com
 (
mirrors.linuxeye.com)|45.79.84.47|:80
... connected.
HTTP request sent, awaiting response... 200 OK
Length: 243454613 (232M) [application/octet-stream]
Saving to: neinstack-full.tar.gz

100%[=============================================================================================================================================>] 243,454,613 10.1MB/s   in 24s    

2018-08-26 21:13:04 (9.65 MB/s) - neinstack-full.tar.gzsaved [243454613/243454613]

[root@izj6cefkuu3496m71s907xz ~]# ls
oneinstack-full.tar.gz
[root@izj6cefkuu3496m71s907xz ~]# pwd
/root
[root@izj6cefkuu3496m71s907xz ~]# ls -lha
total 233M
dr-xr-x---.  5 root root 4.0K Aug 26 21:12 .
dr-xr-xr-x. 18 root root 4.0K Aug 26 21:12 ..
-rw-------   1 root root  184 Aug 26 21:11 .bash_history
-rw-r--r--.  1 root root   18 Dec 29  2013 .bash_logout
-rw-r--r--.  1 root root  176 Dec 29  2013 .bash_profile
-rw-r--r--.  1 root root  176 Dec 29  2013 .bashrc
drwx------   3 root root 4.0K Oct 15  2017 .cache
-rw-r--r--.  1 root root  100 Dec 29  2013 .cshrc
-rw-r--r--   1 root root 233M Aug 21 11:22 oneinstack-full.tar.gz
drwxr-xr-x   2 root root 4.0K Oct 15  2017 .pip
-rw-r--r--   1 root root   64 Oct 15  2017 .pydistutils.cfg
drwx------   2 root root 4.0K Aug 16 21:32 .ssh
-rw-r--r--.  1 root root  129 Dec 29  2013 .tcshrc
[root@izj6cefkuu3496m71s907xz ~]# cd oneinstack
[root@izj6cefkuu3496m71s907xz oneinstack]# ll
total 244
-rwxr-xr-x 1 root root 21954 Aug 21 11:22 addons.sh
-rwxr-xr-x 1 root root 18364 Aug 21 11:22 backup_setup.sh
-rwxr-xr-x 1 root root  7857 Aug 21 11:22 backup.sh
drwxr-xr-x 2 root root  4096 Aug 21 11:22 config
drwxr-xr-x 2 root root  4096 Aug 21 11:22 include
drwxr-xr-x 2 root root  4096 Aug 21 11:22 init.d
-rwxr-xr-x 1 root root 43159 Aug 21 11:22 install.sh
-rw-r--r-- 1 root root 11358 Aug 21 11:22 LICENSE
-rw-r--r-- 1 root root  2382 Aug 21 11:22 options.conf
-rwxr-xr-x 1 root root  5367 Aug 21 11:22 pureftpd_vhost.sh
-rw-r--r-- 1 root root  5455 Aug 21 11:22 README.md
-rwxr-xr-x 1 root root  4964 Aug 21 11:22 reset_db_root_password.sh
drwxr-xr-x 2 root root  4096 Aug 21 11:22 src
-rwxr-xr-x 1 root root 10359 Aug 21 11:22 ss.sh
drwxr-xr-x 2 root root  4096 Aug 21 11:22 tools
-rwxr-xr-x 1 root root 15494 Aug 21 11:22 uninstall.sh
-rwxr-xr-x 1 root root  4460 Aug 21 11:22 upgrade.sh
-rw-r--r-- 1 root root  1747 Aug 21 11:22 versions.txt
-rwxr-xr-x 1 root root 45302 Aug 21 11:22 vhost.sh
[root@izj6cefkuu3496m71s907xz oneinstack]# cat options.conf 
# Nginx Apache and PHP-FPM process is run as $run_user(Default "www"), you can freely specify
run_user=www

# set the default install path, you can freely specify
nginx_install_dir=/usr/local/nginx
tengine_install_dir=/usr/local/tengine
openresty_install_dir=/usr/local/openresty
apache_install_dir=/usr/local/apache
tomcat_install_dir=/usr/local/tomcat

mysql_install_dir=/usr/local/mysql
mariadb_install_dir=/usr/local/mariadb
percona_install_dir=/usr/local/percona
alisql_install_dir=/usr/local/alisql
pgsql_install_dir=/usr/local/pgsql
mongo_install_dir=/usr/local/mongodb

php_install_dir=/usr/local/php

pureftpd_install_dir=/usr/local/pureftpd

memcached_install_dir=/usr/local/memcached

redis_install_dir=/usr/local/redis

python_install_dir=/usr/local/python

openssl_install_dir=/usr/local/openssl
imagick_install_dir=/usr/local/imagemagick
gmagick_install_dir=/usr/local/graphicsmagick
curl_install_dir=/usr/local/curl

# Add modules
nginx_modules_options=''
php_modules_options=''

#########################################################################
# database data storage directory, you can freely specify
mysql_data_dir=/data/mysql
mariadb_data_dir=/data/mariadb
percona_data_dir=/data/percona
alisql_data_dir=/data/alisql
pgsql_data_dir=/data/pgsql
mongo_data_dir=/data/mongodb

# web directory, you can customize
wwwroot_dir=/data/wwwroot

# nginx Generate a log storage directory, you can freely specify.
wwwlogs_dir=/data/wwwlogs

#########################################################################
# [MySQL/MariaDB/Percona/AliSQL] automatically generated, You can't change
dbrootpwd=

# [PostgreSQL] automatically generated, You can't change
dbpostgrespwd=

# [MongoDB] automatically generated, You can't change
dbmongopwd=

#########################################################################
# Backup Dest directory, change this if you have someother location
backup_dir=/data/backup

# How many days before the backup directory will be removed
expired_days=5

# local ; remote ; upyun ; local,upyun
backup_destination=

# db ; web, You can't change
backup_content=

# aliyun OSS Bucket, You can't change
oss_bucket=

# qiniu Bucket, You can't change
qiniu_bucket=

# The backup of the database, You can't change
db_name=

# The backup of the website, You can't change
website_name=

# oneinstack.tar.gz md5, You can't change
oneinstack_md5=
[root@izj6cefkuu3496m71s907xz oneinstack]#
screen -S oneinstack
 
然后开始安装:
./install.sh
结果还是很卡:
导致输入内容,都不能及时看到,很是郁闷
【未解决】阿里云香港ECS服务器SSH连接卡顿
然后继续安装:
[root@izj6cefkuu3496m71s907xz oneinstack]# ./install.sh 

#######################################################################
#       OneinStack for CentOS/RadHat 6+ Debian 7+ and Ubuntu 12+      #
#       For more information please visit 
OneinStack - 一键PHP/JAVA安装工具
      # ####################################################################### Please input SSH port(Default: 22): Do you want to enable iptables? [y/n]: n Do you want to install Web server? [y/n]: y Please select Nginx server:         1. Install Nginx         2. Install Tengine         3. Install OpenResty         4. Do not install Please input a number:(Default 1 press Enter) 1 Please select Apache server:         1. Install Apache-2.4         2. Install Apache-2.2         3. Do not install Please input a number:(Default 3 press Enter) Please select tomcat server:         1. Install Tomcat-9         2. Install Tomcat-8         3. Install Tomcat-7         4. Install Tomcat-6         5. Do not install Please input a number:(Default 5 press Enter) Do you want to install Database? [y/n]: y Please select a version of the Database:          1. Install MySQL-8.0          2. Install MySQL-5.7          3. Install MySQL-5.6          4. Install MySQL-5.5          5. Install MariaDB-10.3          6. Install MariaDB-10.2          7. Install MariaDB-10.1          8. Install MariaDB-10.0          9. Install MariaDB-5.5         10. Install Percona-5.7         11. Install Percona-5.6         12. Install Percona-5.5         13. Install AliSQL-5.6         14. Install PostgreSQL         15. Install MongoDB Please input a number:(Default 2 press Enter) 2 Please input the root password of MySQL(default: ADDoQjyH): xxx Please choose installation of the database:         1. Install database from binary package.         2. Install database from source package. Please input a number:(Default 1 press Enter) 1 Do you want to install PHP? [y/n]: y Please select a version of the PHP:         1. Install php-5.3         2. Install php-5.4         3. Install php-5.5         4. Install php-5.6         5. Install php-7.0         6. Install php-7.1         7. Install php-7.2 Please input a number:(Default 5 press Enter) 7 Do you want to install opcode cache of the PHP? [y/n]: y Do you want to install ionCube? [y/n]: n Do you want to install ImageMagick or GraphicsMagick? [y/n]: y Please select ImageMagick or GraphicsMagick:         1. Install ImageMagick         2. Install GraphicsMagick Please input a number:(Default 1 press Enter) Do you want to install Pure-FTPd? [y/n]: y Do you want to install phpMyAdmin? [y/n]: y Do you want to install redis? [y/n]: y Do you want to install memcached? [y/n]: y Do you want to install HHVM? [y/n]: n
然后就是一堆刷屏的进度显示了:
400900K .......... .......... .......... .......... .......... 63%  476M 22s
400950K .......... .......... .......... .......... .......... 63%  465M 22s
401000K .......... .......... .......... .......... .......... 63%  390M 22s
401050K .......... .......... .......... .......... .......... 63%  433M 22s
401100K .......... .......... .......... .......... .......... 63%  438M 22s
401150K .......... .......... .......... .......... .......... 63%  474M 22s
继续:
629250K .......... .......... .......... .......... ......    100%  378M=61s

2018-08-26 21:33:32 (10.0 MB/s) - ysql-5.7.23-linux-glibc2.12-x86_64.tar.gzsaved [644399365/644399365]

[mysql-5.7.23-linux-glibc2.12-x86_64.tar.gz.md5] found
PHP common...
[libiconv-1.15.tar.gz] found
[curl-7.61.0.tar.gz] found
[libmcrypt-2.5.8.tar.gz] found
[mhash-0.9.9.9.tar.gz] found
[mcrypt-2.6.8.tar.gz] found
[libiconv-glibc-2.16.patch] found
[php-7.2.9.tar.gz] found
[argon2-20171227.tar.gz] found
[libsodium-1.0.16.tar.gz] found
Download ImageMagick...
[ImageMagick-6.9.10-10.tar.gz] found
Download imagick...
[imagick-3.4.3.tgz] found
Download pureftpd...
[pure-ftpd-1.0.47.tar.gz] found
Download phpMyAdmin...
[phpMyAdmin-4.8.2-all-languages.tar.gz] found
Download redis...
[redis-4.0.11.tar.gz] found
Download redis pecl...
[redis-4.1.1.tgz] found
Download start-stop-daemon.c for CentOS...
[start-stop-daemon.c] found
Download memcached...
[memcached-1.5.10.tar.gz] found
Download pecl memcache for php 7.x...
[pecl-memcache-php7.tgz] found
Download pecl memcached for php 7.x...
[memcached-3.0.4.tgz] found
Download libmemcached...
[libmemcached-1.0.18.tar.gz] found
Download jemalloc...
[jemalloc-5.1.0.tar.bz2] found
Download tmux for CentOS...
[libevent-2.0.22-stable.tar.gz] found
[tmux-2.7.tar.gz] found
Download htop for CentOS...
[htop-2.2.0.tar.gz] found
~/oneinstack ~/oneinstack
Loaded plugins: fastestmirror
Cleaning repos: base epel extras updates
Cleaning up everything
Maybe you want: rm -rf /var/cache/yum, to also free up space taken by orphaned data from disabled or removed repos
Cleaning up list of fastest mirrors
Loaded plugins: fastestmirror
Determining fastest mirrors
然后就一直等待各种log输出了。
后来断线了,重连:
screen -R oneinstack
去看看结果:
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------

Build complete.
Don't forget to run 'make test'.

Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/
~/oneinstack/src ~/oneinstack ~/oneinstack
PHP memcached module installed successfully! 
~/oneinstack ~/oneinstack
[tz_e.zip] found
[ocp.php] found
~/oneinstack ~/oneinstack
Starting MySQL.                                            [  OK  ]
####################Congratulations########################
Total OneinStack Install Time: 20 minutes

Nginx install dir:              /usr/local/nginx

Database install dir:           /usr/local/mysql
Database data dir:              /data/mysql
Database user:                  root
Database password:              xxx

PHP install dir:                /usr/local/php
Opcache Control Panel URL:      
http://172.31.51.106/ocp.php

Pure-FTPd install dir:          /usr/local/pureftpd
Create FTP virtual script:      ./pureftpd_vhost.sh

phpMyAdmin dir:                 /data/wwwroot/default/phpMyAdmin
phpMyAdmin Control Panel URL:   
http://172.31.51.106/phpMyAdmin

redis install dir:              /usr/local/redis

memcached install dir:          /usr/local/memcached

Index URL:                      
http://172.31.51.106/

Please restart the server and see if the services start up fine.
然后重启服务器,看看是否能正常访问web页
结果:
http://172.31.51.106/
始终打不开:
突然发现,访问域名:
http://xxx.com/
倒是可以打开的:
Congratulations, OneinStack installed successfully!

OneinStack Linux+Nginx/Tengine+MySQL/MariaDB/Percona

+PHP+Pureftpd+phpMyAdmin+redis+memcached+jemalloc.

Check environment:  Proberv phpinfo Opcache phpMyAdmin
Create Web virtual running script:  ./vhost.sh
Create FTP virtual running script:  ./pureftpd_vhost.sh
For feedback, questions, and to follow the progress of the project:   https://oneinstack.com
Telegram Group:   t.me/oneinstack
Donate:      
          Paypal:  [email protected]   Alipay:  [email protected]
OneinStack by LinuxEye
PHP Prober
phpinfo()
OCP – Opcache Control Panel
再去看看为何IP无法打开页面
➜  ~ ping 
xxx.com
PING 
xxx.com
 (47.52.190.220): 56 data bytes
64 bytes from 47.52.190.220: icmp_seq=0 ttl=48 time=39.282 ms
64 bytes from 47.52.190.220: icmp_seq=1 ttl=48 time=38.491 ms
64 bytes from 47.52.190.220: icmp_seq=2 ttl=48 time=40.470 ms
64 bytes from 47.52.190.220: icmp_seq=3 ttl=48 time=39.158 ms
^C
--- 
xxx.com
 ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 38.491/39.350/40.470/0.713 ms
的确是正确的IP啊
突然发现了:
原来OneinStack安装后的IP是内网IP:
换成公网IP:
http://47.52.190.220/
就可以了:
然后接着去添加域名:
【未解决】用OneinStack去添加主机域名
【总结】
此处,就是参考:
交互安装 – OneinStack
去安装即可,配置上,基本上就是默认的配置,除了:
MySQL:选了  5.7 版本
注意:
安装后,默认生成的url首页地址是内网的,换成自己的公网IP,即可正常打开页面,看到OneinStack的页面信息

转载请注明:在路上 » 【记录】手动交互模式去安装OneinStack以搭建Web服务器

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
89 queries in 0.227 seconds, using 22.24MB memory