oneinstack交互脚本安装Nginx、php、MySql对接 宝塔 面板进行可视化管理

oneinstack交互脚本安装Nginx、php、MySql对接 宝塔 面板进行可视化管理

简介

最近用ubuntu,和N1进行刷机后,使用宝塔,无法编译成功Nginx、php、MySql。但是用oneinstack缺能成功编辑安装成功。但是oneinstack默认的目录,不对应宝塔的目录,所以无法使用宝塔进行可视化管理。

先安装宝塔面板,在用oneinstack安装Nginx、php、MySql。

方法

方法很简单,oneinstack交互安装文件夹中的options.conf文件修改,将里面Nginx、php、MySql安装目录修改为宝塔的。

使用方法

yum -y install wget screen #for CentOS/Redhat
# apt-get -y install wget screen #for Debian/Ubuntu
wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz #包含源码,国内外均可下载
tar xzf oneinstack-full.tar.gz
cd oneinstack #如果需要修改目录(安装、数据存储、Nginx日志),请修改options.conf文件
screen -S oneinstack #如果网路出现中断,可以执行命令`screen -R oneinstack`重新连接安装窗口
./install.sh

cd oneinstack #如果需要修改目录(安装、数据存储、Nginx日志),请修改options.conf文件。

直接用xftp,将options.conf文件拉到PC本地,用notepad++修改。

贴上我自己修改的,博主只是修改安装目录位置,其他没咋改。

options.conf修改后下载地址:

链接: https://pan.baidu.com/s/1OIqoOC5X9qBLwsNjrZhlmA 提取码: ndd4 复制这段内容后打开百度网盘手机App,操作更方便哦

# set the default timezone
timezone=Asia/Shanghai

# 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=/www/server/nginx
tengine_install_dir=/www/server/tengine
openresty_install_dir=/www/server/openresty
apache_install_dir=/www/server/apache
tomcat_install_dir=/www/server/tomcat

mysql_install_dir=/www/server/mysql
mariadb_install_dir=/www/server/mariadb
percona_install_dir=/www/server/percona
alisql_install_dir=/www/server/alisql
pgsql_install_dir=/www/server/pgsql
mongo_install_dir=/www/server/mongodb
tall_dir=/www/server/php

pureftpd_install_dir=/www/server/pureftpd

memcached_install_dir=/www/server/memcached

redis_install_dir=/www/server/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
php_ins

# Add modules
nginx_modules_options=''
php_modules_options=''

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

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

# nginx Generate a log storage directory, you can freely specify.
wwwlogs_dir=/www/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=/www/backup

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

# local,remote,oss,cos,upyun,qiniu,s3,gdrive,dropbox
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=

# Amazon S3 Bucket, You can't change
s3_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=

 

用xftp,将options.conf上传到 /root/oneinstack 目录中。

在shell中执行

./install.sh

进行交互安装!

oneinstack交互脚本安装Nginx、php、MySql对接 宝塔 面板进行可视化管理

 

 

 

 

 

 

声明: 1.本站为个人非盈利站点,旨在个人学习、欣赏及记录等,故不受狭义的商业性版权限制,除非特别声明; 2.本站主要内容来源为本站编辑撰写、网友投稿(包括原创及非原创)、翻译外文和转载其他网站。
云服务器优惠卷

#腾讯云#领取良心云无门槛10元券,先到先得

2019-3-15 8:36:17

云服务器科学上网

bbr 原版 / 魔改 / plus 锐速 四合一脚本

2019-3-17 8:43:03

搜索