maicong / lnmp Goto Github PK
View Code? Open in Web Editor NEWSupport: Nginx 1.12/1.13 + MySQL 5.5/5.6/5.7/8.0(MariaDB 5.5/10.0/10.1/10.2/10.3) + PHP 5.4/5.5/5.6/7.0/7.1/7.2 + phpMyAdmin(Adminer)
License: MIT License
Support: Nginx 1.12/1.13 + MySQL 5.5/5.6/5.7/8.0(MariaDB 5.5/10.0/10.1/10.2/10.3) + PHP 5.4/5.5/5.6/7.0/7.1/7.2 + phpMyAdmin(Adminer)
License: MIT License
如题
[Notice] Config service ...
mv: 无法获取"/etc/nginx/conf.d/*" 的文件状态(stat): 没有那个文件或目录
chown: 无效的用户: "mysql:mysql"
[Notice] Start service ...
Failed to execute operation: No such file or directory
Created symlink from /etc/systemd/system/multi-user.target.wants/php-fpm.service to /usr/lib/systemd/system/php-fpm.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/nginx.service to /usr/lib/systemd/system/nginx.service.
success
success
success
Failed to start mysqld.service: Unit mysqld.service failed to load: No such file or directory.
lnmp.sh:行407: mysqladmin: 未找到命令
lnmp.sh:行408: mysqladmin: 未找到命令
lnmp.sh:行409: mysql: 未找到命令
[LNMP] Sorry, Install Failed.
麦葱, 你好, 按你的一键脚本安装完成,PHPMYADMIN页面能正常访问,但输入ROOT及密码后,提示#2002 - No such file or directory — The server is not responding (or the local server's socket is not correctly configured).,求解决方法。谢谢
如题。希望能有 Ubuntu 下的一键快速安装 lnmp 脚本。
Great set of scripts.
I have installed on Centos 7 and when I reboot I get "502 Bad Gateway" when visiting PHP pages.
I think this is the error:
[12-Apr-2018 16:11:26] ERROR: Unable to create the PID file (/run/php-fpm/php-fpm-index.pid).: No such file or directory (2)
To get around this I have added the following to /etc/rc.local
mkdir /run/php-fpm
service vhost stop
service vhost start
发现phpMyAdmin文件夹下缺少配置文件,自己创建了配置文件,
的配置文件config.sample.inc.php改成config.inc.php,并更改为$cfg['Servers'][$i]['host'] = '127.0.0.1';
结果还是报错
试过mysql 7, mariaDB, 都不能连接到数据库
是时候更新一波了
如题
默认是一个vhost。现在用service vhost add
再添加一个vhost,比如叫做foo。那么一旦启用foo,重启服务器,所有站点都会502.看log发现是php-fpm的管道没有建立。但是php-fpm不报错。service php-fpm restart
无效。
故障排查,逐个删除vhost,删除index或者foo,只留下一个vhost,service php-fpm restart
,可以正常生成管道文件,网站可以访问。
so,配置文件哪里有冲突么?我是Nginx新手看不出来……
环境:Cent OS 7, OVZ的Minimum模板。
CentOS 7 kernel 3.10.0-514.6.2.e17.x86_64
After yum update I encountered this problem:
MariaDB can't start and
systemctl status mariadb -l
hints
[Warning] Can't create test file /home/mysql/beta.lower-test
This answer on stackoverflow solved it.
在安装的末尾:
Error: Package: php-mcrypt-5.5.38-7.el7.remi.x86_64 (remi-php55)
Requires: libmcrypt.so.4()(64bit)
Error: Package: php-mssql-5.5.38-7.el7.remi.x86_64 (remi-php55)
Requires: libsybdb.so.5()(64bit)
Error: Package: php-mssql-5.5.38-7.el7.remi.x86_64 (remi-php55)
Requires: libct.so.4()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[Notice] Config service ...
mv: cannot stat '/etc/php-fpm.d/': No such file or directory
mv: cannot stat '/etc/php.ini': No such file or directory
mv: cannot stat '/etc/nginx/conf.d/': No such file or directory
mv: cannot stat '/etc/nginx/nginx.conf': No such file or directory
mv: cannot stat '/etc/nginx/fastcgi_params': No such file or directory
[Notice] Start service ...
Created symlink from /etc/systemd/system/mysql.service to /usr/lib/systemd/system/mysqld.service.
Created symlink from /etc/systemd/system/multi-user.target.wants/mysqld.service to /usr/lib/systemd/system/mysqld.service.
Failed to execute operation: No such file or directory
Failed to execute operation: No such file or directory
Job for firewalld.service failed because the control process exited with error code. See "systemctl status firewalld.service" and "journalctl -xe" for details.
Traceback (most recent call last):
File "/usr/bin/firewall-cmd", line 24, in
from gi.repository import GObject
File "/usr/lib64/python2.7/site-packages/gi/init.py", line 37, in
from . import _gi
ImportError: /usr/lib64/python2.7/site-packages/gi/_gi.so: undefined symbol: g_type_check_instance_is_fundamentally_a
Traceback (most recent call last):
File "/usr/bin/firewall-cmd", line 24, in
from gi.repository import GObject
File "/usr/lib64/python2.7/site-packages/gi/init.py", line 37, in
from . import _gi
ImportError: /usr/lib64/python2.7/site-packages/gi/_gi.so: undefined symbol: g_type_check_instance_is_fundamentally_a
Traceback (most recent call last):
File "/usr/bin/firewall-cmd", line 24, in
from gi.repository import GObject
File "/usr/lib64/python2.7/site-packages/gi/init.py", line 37, in
from . import _gi
ImportError: /usr/lib64/python2.7/site-packages/gi/_gi.so: undefined symbol: g_type_check_instance_is_fundamentally_a
Failed to start php-fpm.service: Unit not found.
Failed to start nginx.service: Unit not found.
mysqladmin: connect to server at 'restorevps.com' failed
error: 'Access denied for user 'root'@'restorevps.com' (using password: YES)'
[LNMP] Sorry, Install Failed.
服务器在洛杉矶
How to restore backup file
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/home/userdata/mysqld.sock'
Vultr上有专门的LEMP,国内有lnmp.org这样的专门的网站发布LEMP STACK,看了下喵主的这款,更加精简,如果在博客以外还能有精力来架设一个LNMP的网站专门介绍和发布自己的这款STACK就更好了。
[Notice] Start service ...
lnmp.sh: line 392: systemctl: command not found
lnmp.sh: line 393: systemctl: command not found
lnmp.sh: line 394: systemctl: command not found
lnmp.sh: line 395: systemctl: command not found
lnmp.sh: line 397: systemctl: command not found
lnmp.sh: line 399: firewall-cmd: command not found
lnmp.sh: line 400: firewall-cmd: command not found
lnmp.sh: line 401: firewall-cmd: command not found
lnmp.sh: line 403: systemctl: command not found
lnmp.sh: line 404: systemctl: command not found
lnmp.sh: line 405: systemctl: command not found
lnmp.sh: line 407: mysqladmin: command not found
lnmp.sh: line 408: mysqladmin: command not found
lnmp.sh: line 409: mysql: command not found
例如redis imagick swoole等
您好,使用一键脚本完成环境安装后, 要怎么添加ngx_pagespeed,求安装步骤。万分感谢。。。
安装脚本跑到最后出现如下错误,
Warning: Using a password on the command line interface can be insecure.
Warning: Using a password on the command line interface can be insecure.
mysqladmin: connect to server at 'izbpxxxxxx' failed
error: 'Access denied for user 'root'@'izbpxxxxxx' (using password: YES)'
Warning: Using a password on the command line interface can be insecure.
mysql 5.6安装失败
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.