环境安装脚本LNP环境Nginx+PHP+Composer+Supervisor适用于Laravel环境包含:Nginx,PHP7.2,Composer,SupervisorPHP模块:fileinfo,imap,ldap,redis,memcached,swoole安装#安装Nginx+PHP,下面4个行要一起复制执行wget-chttp://mirrors.linuxeye.com/oneinstack-full.tar.gz\&&tarxzfoneinstack-full.tar.gz&&./oneinstack/install.sh\--nginx_option1--php_option7--phpcache_option1\--php_extensionsfileinfo,imap,ldap,redis,memcached,swoole#安装Composeryuminstallcomposer#安装SupervisoryuminstallsupervisorServiceManagement#注册服务systemctlenablenginxsystemctlenablephp-fpmsystemctlenablesupervisor#启动服务systemctlstartnginxsystemctlstartphp-fpmsystemctlstartsupervisor#重启服务systemctlrestartnginxsystemctlrestartphp-fpmsystemctlrestartsupervisor#查看服务状态systemctlstatusnginxsystemctlstatusphp-fpmsystemctlstatussupervisorPHP模块和配置按需添加模块#先进入oneinstack目录,然后执行##添加redis./install.sh--php_extensionsredis##添加swoole./install.sh--php_extensionsswoole##addfileinfo./install.sh--php_extensionsfileinfoenableproc_open;;Laravelschedule需要系统进程权限proc_open,proc_get_status;;查找disable_functions=passthru,exec,system,chroot,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server,fsocket,popen;;更改为disable_functions=passthru,exec,system,chroot,chgrp,chown,shell_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server,fsocket,popen参考交互式安装-https://oneinstack。com/install/automaticinstallation-https://oneinstack.com/auto/安装Nginx;选择PHP版本7.3;选择PHP扩展imagick、fileinfo、imap、ldap、redis、swoole;未安装数据库;其他功能没有安装。如果之前没有安装组件,后续补装,统一入口为./install.sh,不再提供addons.sh脚本。如果之前没有安装phpredis扩展,补充安装命令:./install.sh--php_extensionsredis和之前一样没有安装phpfileinfo扩展,添加安装命令:./install.sh--php_extensionsfileinfo
