Giter Site home page Giter Site logo

oneinstack / oneinstack Goto Github PK

View Code? Open in Web Editor NEW
2.4K 112.0 607.0 16 MB

OneinStack - A PHP/JAVA Deployment Tool

Home Page: https://oneinstack.com/

License: Apache License 2.0

Shell 95.39% HTML 4.33% Roff 0.28%
oneinstack lemp lnmp lamp lnmpa lnmt lnmh nginx tengine tomcat

oneinstack's Introduction

This script is written using the shell, in order to quickly deploy LEMP/LAMP/LNMP/LNMPA/LTMP(Linux, Nginx/Tengine/OpenResty, MySQL in a production environment/MariaDB/Percona, PHP, JAVA), applicable to RHEL 7, 8, 9(including CentOS,RedHat,AlmaLinux,Rocky), Debian 9, 10, 11, 12, Ubuntu 16, 18, 20, 22 and Fedora 27+ of 64.

Script properties:

  • Continually updated, Provide Shell Interaction and Autoinstall
  • Source compiler installation, most stable source is the latest version, and download from the official site
  • Some security optimization
  • Providing a plurality of database versions (MySQL-8.0, MySQL-5.7, MySQL-5.6, MySQL-5.5, MariaDB-10.11, MariaDB-10.5, MariaDB-10.4, MariaDB-5.5, Percona-8.0, Percona-5.7, Percona-5.6, Percona-5.5, PostgreSQL, MongoDB)
  • Providing multiple PHP versions (PHP-8.3, PHP-8.2, PHP-8.1, PHP-8.0, PHP-7.4, PHP-7.3, PHP-7.2, PHP-7.1, PHP-7.0, PHP-5.6, PHP-5.5, PHP-5.4, PHP-5.3)
  • Provide Nginx, Tengine, OpenResty, Caddy, Apache and ngx_lua_waf
  • Providing a plurality of Tomcat version (Tomcat-10, Tomcat-9, Tomcat-8, Tomcat-7)
  • Providing a plurality of JDK version (OpenJDK-8, OpenJDK-11, OpenJDK-17)
  • According to their needs to install PHP Cache Accelerator provides ZendOPcache, xcache, apcu, eAccelerator. And php extensions,include ZendGuardLoader,ionCube,SourceGuardian,imagick,gmagick,fileinfo,imap,ldap,calendar,phalcon,yaf,yar,redis,memcached,memcache,mongodb,swoole,xdebug
  • Installation Nodejs, Pureftpd, phpMyAdmin according to their needs
  • Install memcached, redis according to their needs
  • Jemalloc optimize MySQL, Nginx
  • Providing add a virtual host script, include Let's Encrypt SSL certificate
  • Provide Nginx/Tengine/OpenResty/Apache/Tomcat, MySQL/MariaDB/Percona, PHP, Redis, Memcached, phpMyAdmin upgrade script
  • Provide local,remote(rsync between servers),Aliyun OSS,Qcloud COS,UPYUN,QINIU,Amazon S3,Google Drive and Dropbox backup script

Installation

Install the dependencies for your distro, download the source and run the installation script.

CentOS/Redhat

yum -y install wget screen

Debian/Ubuntu

apt-get -y install wget screen

Download Source and Install

wget http://mirrors.oneinstack.com/oneinstack-full.tar.gz
tar xzf oneinstack-full.tar.gz
cd oneinstack

If you disconnect during installation, you can execute the command screen -r oneinstack to reconnect to the install window

screen -S oneinstack

If you need to modify the directory (installation, data storage, Nginx logs), modify options.conf file before running install.sh

./install.sh

How to install another PHP version

~/oneinstack/install.sh --mphp_ver 54

How to add Extensions

~/oneinstack/addons.sh

How to add a virtual host

~/oneinstack/vhost.sh

How to delete a virtual host

~/oneinstack/vhost.sh --del

How to add FTP virtual user

~/oneinstack/pureftpd_vhost.sh

How to backup

~/oneinstack/backup_setup.sh    // Backup parameters
~/oneinstack/backup.sh    // Perform the backup immediately
crontab -l    // Can be added to scheduled tasks, such as automatic backups every day 1:00
  0 1 * * * cd ~/oneinstack/backup.sh  > /dev/null 2>&1 &

How to manage service

Nginx/Tengine/OpenResty:

systemctl {start|stop|status|restart|reload} nginx

MySQL/MariaDB/Percona:

systemctl {start|stop|restart|reload|status} mysqld

PostgreSQL:

systemctl {start|stop|restart|status} postgresql

MongoDB:

systemctl {start|stop|status|restart|reload} mongod

PHP:

systemctl {start|stop|restart|reload|status} php-fpm

Apache:

systemctl {start|restart|stop} httpd

Tomcat:

systemctl {start|stop|status|restart} tomcat

Pure-FTPd:

systemctl {start|stop|restart|status} pureftpd

Redis:

systemctl {start|stop|status|restart|reload} redis-server

Memcached:

systemctl {start|stop|status|restart|reload} memcached

How to upgrade

~/oneinstack/upgrade.sh

How to uninstall

~/oneinstack/uninstall.sh

Installation

For feedback, questions, and to follow the progress of the project:
Telegram Group
OneinStack

oneinstack's People

Contributors

aceralon avatar beiyanyunyi avatar bypanelcom avatar chesterlee852 avatar cxgreat2014 avatar goatlove avatar godtail avatar hainuo avatar imloli avatar immtelecom avatar jamessmith114 avatar kaneawk avatar kizureina avatar kmvan avatar lcyan avatar linshuboy avatar logig avatar m1screw avatar michaeledi avatar minmemory avatar mrgeneralgoo avatar oneinstack avatar persiliao avatar seonme avatar shuaizend avatar siliconexarch avatar strongdong avatar vforce825 avatar weixiao5 avatar wslsq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

oneinstack's Issues

vhost root 路徑選項

在選擇 rewrite rule 之後,若使用者選擇 laravel,可以_自動_將 root 路徑改為子目錄 public 或者_詢問_使用者。

MySQL启动异常,在CentOS6.4下。

在CentOS6.4下,安装oneinstack环境后,MySQL5.6或MySQL5.5,启动MySQL时出现错误:
Starting MySQL. ERROR! The server quit without updating PID file (/data/mysql/mysql.pid).

详细日志如下:
160403 11:27:33 mysqld_safe Starting mysqld daemon with databases from /data/mysql
2016-04-03 11:27:33 0 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.6.29-log) starting as process 16010 ...
2016-04-03 11:27:33 16010 [Note] Plugin 'FEDERATED' is disabled.
/usr/local/mysql/bin/mysqld: Table 'mysql.plugin' doesn't exist
2016-04-03 11:27:33 16010 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2016-04-03 11:27:33 16010 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-04-03 11:27:33 16010 [Note] InnoDB: The InnoDB memory heap is disabled
2016-04-03 11:27:33 16010 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-04-03 11:27:33 16010 [Note] InnoDB: Memory barrier is not used
2016-04-03 11:27:33 16010 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-04-03 11:27:33 16010 [Note] InnoDB: Using CPU crc32 instructions
�/usr/local/mysql/bin/mysqld: Can't create/write to file '/tmp/ibHjHVz3' (Errcode: 13 - Permission denied)
2016-04-03 11:27:33 7ff670a9b760 InnoDB: Error: unable to create temporary file; errno: 13
2016-04-03 11:27:33 16010 [ERROR] Plugin 'InnoDB' init function returned error.
2016-04-03 11:27:33 16010 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2016-04-03 11:27:33 16010 [ERROR] Unknown/unsupported storage engine: InnoDB
2016-04-03 11:27:33 16010 [ERROR] Aborting

2016-04-03 11:27:33 16010 [Note] Binlog end
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'partition'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'BLACKHOLE'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'ARCHIVE'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_METRICS'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_CMPMEM'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_CMP'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_LOCKS'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'INNODB_TRX'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'MyISAM'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'CSV'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'MRG_MYISAM'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'MEMORY'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'sha256_password'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'mysql_old_password'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'mysql_native_password'
2016-04-03 11:27:33 16010 [Note] Shutting down plugin 'binlog'
2016-04-03 11:27:33 16010 [Note] /usr/local/mysql/bin/mysqld: Shutdown complete

160403 11:27:33 mysqld_safe mysqld from pid file /data/mysql/mysql.pid ended

增加新的HHVM支持

  1. 希望能增加对Debian/Ubuntu的HHVM支持,因为其官网上是支持的。
    2.希望能采用最新的稳定版HHVM,现在Oneinstack自带的HHVM版本有点旧了,今年就要停止支持了。

谢谢~

vhost.sh中的IP与domain匹配检测规则可能导致错误

多IP主机调用get_public_ipaddr.py只可获得单个公网IP
从而导致添加的主机域名如果指向该主机上其余IP会获得错误提示

假设oneinstack都在服务器上使用
ifconfig | perl -nle 's/dr:(\S+)/print $1/e'
可获得所有公网IP但需要过滤127.0.0.*

不知是否有更好的办法

lnmpa 组合下的 tengine concat 失效

惯用 lnmpa 组合,tengine 2.1.2 + apache 2.4。
默认安装下,nginx shared 方式编译了 对应的 so 模块,且 nginx.conf 已动态载入了 ngx_http_concat_module.so 模块
nginx -l 能看到

ngx_http_concat_module:`
    concat
    concat_max_files
    concat_unique
    concat_types
    concat_delimiter
    concat_ignore_file_error

在实际使用中,nginx 的 vhost 的 conf,在 location / 目录配置了 concat on。
但访问的时候,abc.com/??static/a.css,static/b.css,会被跳转到 apache 处理。
日志如下:

127.0.0.1 139.196.128.178 - - [21/Jun/2016:14:39:33 +0800] "GET /??static/a.css,static/b.css HTTP/1.0" 301 -
127.0.0.1 101.200.101.63 - - [21/Jun/2016:14:39:34 +0800] "GET /?static/a_css,static/b_css HTTP/1.0" 200 64043

CURL 的结果如下:

curl -I http://abc.com/??static/a.css,static/b.css

HTTP/1.1 301 Moved Permanently
Server: Tengine
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Connection: keep-alive
Date: Tue, 21 Jun 2016 06:44:20 GMT
Location: http://abc.com/?static/a_css,static/b_css
Strict-Transport-Security: max-age=15768000

经过这样转换后,??变成了一个页面的参数,concat 无法起作用。

检查后发现可能的问题是 nginx 的 vhost conf 文件里面的如下:

location / {
    concat on;
    try_files $uri @apache;
}

尽管开启了 concat,但是仍然将 ?? 的请求转发到了 apache,从而导致 concat 失效。

鉴于上述描述,如何在 lnmpa 组合下,将 concat 开启,还请 @lj2007331 指导为谢。

PHP5.6安装出错

阿里云ECS
Ubuntu 12.04.5 LTS (GNU/Linux 3.2.0-67-generic x86_64)

sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
/bin/cp: cannot stat `sapi/fpm/init.d.php-fpm': No such file or directory
chmod: cannot access `/etc/init.d/php-fpm': No such file or directory
update-rc.d: /etc/init.d/php-fpm: file does not exist
include/php-5.6.sh: line 139: /usr/local/php/etc/php-fpm.conf: No such file or directory
sed: can't read /usr/local/php/etc/php-fpm.conf: No such file or directory
sed: can't read /usr/local/php/etc/php-fpm.conf: No such file or directory
sed: can't read /usr/local/php/etc/php-fpm.conf: No such file or directory
sed: can't read /usr/local/php/etc/php-fpm.conf: No such file or directory
php-fpm: unrecognized service

pcre version upgrade

is it possible upgrade pcre to pcre2??
pcre2 is the latest and they will release everything based on pcre2

libjpeg8 libjpeg8-dev 安装时找不到

libjpeg8 在debian8安装时提示找不到,Unable to locate package libjpeg8,可以用libjpeg-dev代替

libjpeg8-dev安装时提示如下:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libjpeg8-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libjpeg62-turbo-dev

1.4版本Tomcat 8不自动解压war包

我今天按照官网的指南安装了最新版本(看更新日志是添加了PHP7.1的支持)
但是在新建host之后 上传war包发现怎么都不解压
之后实在无奈 看到了更新记录
为了验证是否是版本升级导致的BUG 我下载了以前服务器下的完整安装包安装
安装过程一样 软件版本选择一样
安装完成后 上传同一个war包 过了一会儿就解压了
希望这个BUG能尽快解决

php编译时建议增加参数--with-config-file-scan-dir=/usr/local/php/etc/conf.d

建议增加此参数。
这样无论是安装了memcached,还是mongo等扩展,其配置可以放在/usr/local/php/etc/conf.d中。
只需要看这个目录就知道有那些扩展了。

话说这个参数是从brew的php编译参数中学来的。

然后可以这样:

配置载入扩展

mkdir -p /usr/local/php/etc/conf.d
cat > /usr/local/php/etc/conf.d/ext-memcached.ini<<EOF
[memcached]
extension = "memcached.so"
EOF

cat > /usr/local/php/etc/conf.d/ext-imagick.ini<<EOF
[imagick]
extension = "imagick.so"
EOF

不必去费力的修改php.ini

报告一个关于 ssl 的错误

当启用 SSL 后,WORDPRESS 不能正常工作。
原因在于:wordpress 的资源文件的链接,会在运行时自动输出 http 或者 https。

当在您的 lnmpa 组合上启用 ssl 并替换为 let'sencrypt 的 ssl 证书后,所有传递到 apache 的都是 http 连接了。见如下代码:

location @apache {
proxy_pass http://127.0.0.1:88;
include proxy.conf;
}
location ~ .*.(php|php5|cgi|pl)?$ {
proxy_pass http://127.0.0.1:88;
include proxy.conf;
}

这样带来的问题是,https 的页面,有大量的由 wordpress 输出产生的 http 的 css、js、图片等的链接,导致页面显示错乱,浏览器提醒链接未能全部使用 ssl。

盼修复。

tomcat安装失败

使用01-08版,在阿里云ECS的CentOS7.2下安装时,发生错误:
configure: error: Your version of OpenSSL is not compatible with this version of tcnative
Tomcat install failed, Please contact the author!
不论是使用系统自带的OpenSSL 1.0.1还是升级到1.1.0c都发生该错误。

内容可能重复了

. ./include/check_db.sh
. ./include/check_web.sh

在上面和下面分别出现,是否是重复了?

Percona 5.7 二进制安装有问题

Percona-Server-5.7.14-7-Linux.x86_64.ssl100.tar.gz

在full 包解压后的 src 下 只有5.5和5.6,没有5.7. 但是安装的时候判断的是已经存在该文件,然后就导致安装失败了

ssl rc4

is it possible get A score from ssl labs ssl testing score??
https://www.ssllabs.com/ssltest/

can you please work a little with ssl??
update everything and the latest cipher suite with pem??
SSL is very important SEO and for the security too!!

关于upgrade_yn

在最新的版本中,这个在实际情况中是没有执行的,可能作者疏忽了,upgrade_yn在执行中一直为空,导致init文件的yum -y upgrade是没有执行的。
另外一个关于php的,建议作者加上intl和xls这两个,请作者原谅我自己在脚本中更改了,以供自己实际需求使用。
nginx也是如此,自己做了更改,添加了许多新的库。

pcre版本引用错误导致tengine升级失败

`Configuration summary

  • using PCRE library: ../pcre-8.38

  • using system OpenSSL library

  • md5: using OpenSSL library

  • sha1: using OpenSSL library

  • using system zlib library

  • using system jemalloc library

    nginx path prefix: "/usr/local/tengine"
    nginx binary file: "/usr/local/tengine/sbin/nginx"
    nginx configuration prefix: "/usr/local/tengine/conf"
    nginx configuration file: "/usr/local/tengine/conf/nginx.conf"
    nginx pid file: "/usr/local/tengine/logs/nginx.pid"
    nginx error log file: "/usr/local/tengine/logs/error.log"
    nginx http access log file: "/usr/local/tengine/logs/access.log"
    nginx http client request body temporary files: "client_body_temp"
    nginx dso module path: "/usr/local/tengine/modules/"
    nginx http proxy temporary files: "proxy_temp"
    nginx http fastcgi temporary files: "fastcgi_temp"
    nginx http uwsgi temporary files: "uwsgi_temp"
    nginx http scgi temporary files: "scgi_temp"

make -f objs/Makefile
make[1]: Entering directory /root/oneinstack-github/src/tengine-2.1.2'

cd ../pcre-8.38 \ // <== 实际上应该是cd ../pcre-8.39

&& if [ -f Makefile ]; then make distclean; fi
&& CC="cc" CFLAGS="-O2 -fomit-frame-pointer -pipe "
./configure --disable-shared --enable-jit
/bin/sh: line 0: cd: ../pcre-8.38: No such file or directory
make[1]: *** [../pcre-8.38/Makefile] Error 1
make[1]: Leaving directory /root/oneinstack-github/src/tengine-2.1.2'
make: *** [build] Error 2
Upgrade Tengine failed!
`

qq20161004-0 2x

再提个建议哦,建议说明jdk的版本类型

再提个建议哦,建议说明jdk的版本类型

我安装完毕jdk后,经过对比才发现是sunjdk,建议把这个在说明文档中写清楚哦。当然sunjdk刚好是符合我们应用的要求的。

php 版本无法切换

切换到php7.1 发现前台仍然是5.4 后来检查发现在/etc/init.d/php-fpm 里面吧目录写死了

No entrance for upgrading apache

OneInstack script pack is amazing.
But there's no upgrade script for apache.

What should I do if wanna upgrade apache to the latest version?

建议添加MongoDB

MongoDB越来越流行,与PHP的配合度也越来越好,不少需求都很适合用MongoDB做。如果oneinstack支持MongoDB了,会方便很多

percona xtrabackup or mydumper or myloader adding request

mysqldump is unable for backing up large db like 200GB or 300gb
can't dump all data from the db.
is it possible add mydumper for backup and for restore myloader??
or auto configure mysqldump for dumping extra large db??
i did mysqldump adding max_allowed_packet = 500M both server and mysqldump block
and using:
mysqldump -u USER -pPASS --single-transaction --quick --lock-tables=false TABLE | gzip > TABLE.gz

for reference:
mydumper..

!/bin/sh

DIR_BACKUP=/backup-directory
DB_NAME=database_name
DB_USER=user
DB_PASS=password

DOW=date "+%a"
DB_DUMP=$DIR_BACKUP/dbdump.$DB_NAME.$DOW

mydumper
--database=$DB_NAME
--host=$DB_HOST
--user=$DB_USER
--password=$DB_PASS
--outputdir=$DB_DUMP
--rows=500000
--compress
--build-empty-files
--threads=2
--compress-protocol

myloader:
myloader
--database=$DB_NAME
--directory=$DB_DUMP
--queries-per-transaction=50000
--threads=6
--compress-protocol
--verbose=3

php的配置中短标签的问题

标签 <?=,自 PHP 5.4 起总会被识别并且合法,无论 short_open_tag 的设置是什么,可以安全使用。
即,可以不必再去设置它是否开启了。又省了一行:)

建议支持无人值守

目前的安装过程需要用户交互确认安装哪些选项,如果能无人值守静默安装,那就很方便进行集群自动化部署了

php dependency and MUNIN

while installing PHP with oneinstack found few packages are about 20 years old same like PCRE. Is it possible to remove those 20 years old packages or standalone latest fresh php install??

yes, there is a inbuilt proberv that shows serverstat but add MUNIN or any other tool expecting!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.