一键安装LNMP1.8

PHPer 2022-05-16 411 0 0

服务器配置是1核CPU,1G内存,操作系统Centos8 Stream x64

运行的sh脚本示例,是无人值守的离线安装方式,因为安装时间长。

第一次没弄无人值守,没在跟前,结果链接服务器的ssh断开了,登陆上查了没安装成功。

wget http://soft.vpser.net/lnmp/lnmp1.8.tar.gz -cO lnmp1.8.tar.gz && tar zxf lnmp1.8.tar.gz && cd lnmp1.8 && LNMP_Auto="y" DBSelect="4" DB_Root_Password="123456" InstallInnodb="y" PHPSelect="11" SelectMalloc="1" CheckMirror="n" ./install.sh lnmp
Installed:
  iptables-services-1.8.4-22.el8.x86_64                                         
Complete!
iptables: Saving firewall rules to /etc/sysconfig/iptables:[  OK  ]
Redirecting to /bin/systemctl reload iptables.service
iptables.service is not active, cannot reload.
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Add iptables service at system startup...
Created symlink /etc/systemd/system/multi-user.target.wants/iptables.service → /usr/lib/systemd/system/iptables.service.
Add Startup and Starting LNMP...
Add nginx service at system startup...
Synchronizing state of nginx.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable nginx
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /etc/systemd/system/nginx.service.
Add mysql service at system startup...
Synchronizing state of mysql.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable mysql
Add php-fpm service at system startup...
Synchronizing state of php-fpm.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable php-fpm
Created symlink /etc/systemd/system/multi-user.target.wants/php-fpm.service → /etc/systemd/system/php-fpm.service.
============================== Check install ==============================
Checking ...
Nginx: OK
MySQL: OK
PHP: OK
PHP-FPM: OK
Clean Web Server src directory...
+------------------------------------------------------------------------+
|          LNMP V1.8 for CentOS Linux Server, Written by Licess          |
+------------------------------------------------------------------------+
|           For more information please visit https://lnmp.org           |
+------------------------------------------------------------------------+
|    lnmp status manage: lnmp {start|stop|reload|restart|kill|status}    |
+------------------------------------------------------------------------+
|  phpMyAdmin: http://IP/phpmyadmin/                                     |
|  phpinfo: http://IP/phpinfo.php                                        |
|  Prober:  http://IP/p.php                                              |
+------------------------------------------------------------------------+
|  Add VirtualHost: lnmp vhost add                                       |
+------------------------------------------------------------------------+
|  Default directory: /home/wwwroot/default                              |
+------------------------------------------------------------------------+
|  MySQL/MariaDB root password: AA123456                          |
+------------------------------------------------------------------------+
+-------------------------------------------+
|    Manager for LNMP, Written by Licess    |
+-------------------------------------------+
|              https://lnmp.org             |
+-------------------------------------------+
nginx (pid 653434) is running...
php-fpm is runing!
 SUCCESS! MySQL running (654055)
State  Recv-Q Send-Q Local Address:Port Peer Address:PortProcess
LISTEN 0      128          0.0.0.0:80        0.0.0.0:*          
LISTEN 0      128          0.0.0.0:22        0.0.0.0:*          
LISTEN 0      128             [::]:22           [::]:*          
LISTEN 0      128                *:3306            *:*          
Install lnmp takes 145 minutes.
Install lnmp V1.8 completed! enjoy it.

安装耗时145分钟 ...

立即注册

更新于:2022-05-17 00:26:22
相关内容

今天发现一键转载(采集)简书的内页报错,查了下代码,发现python返回的是b'\x1f\x8b\x08\x00\x00\x00\x00\x00\x04\x03\xc5\

采集的页面地址是:https://www.jianshu.com/p/576dbf44b2ae

腾讯云轻量级服务器搭建

我的服务器是centos7.6

Wordpress插件JWT Authentication for WP REST API安装方法

离开ucloud服务器,丢包太严重了

离开ucloud服务器,丢包太严重了20220519 从下午到晚上11点,一直在丢包,丢包率平均20%,没法用了,向ucloud告别,去阿里云啦,O(∩_∩)O 20220520 04:59

访问https://wokan.chawen.org提示无法访问

openssl ,mod_ssl,都装了,配置文件也配置了,ssl认证的3个文件也放到对应目录了。结果一直服务用https访问网站,后面用命令发现 firewall-cmd --zone=public --list-ports,没有开启443端口,我之前开启了呀 80/tcp 3306/tcp 20/tcp 开启后ok了
推荐内容

如何注册Spotify,注册中遇到的问题

起因是找阿特拉斯耸耸肩3里片尾的歌曲,后面用谷歌插件 aha music找到了歌曲名字和作曲人:The Beginning Elia Cmiral,然后资料在spotify有,于是就注册,甚至通过远程服务器,在服务器上打开浏览器也...

Spotify无法注册,想了很多办法后无果于是联系客服

Spotify无法注册,想了很多办法后无果于是联系客服

客服回答中国地区现在无法注册 If you still need help, contact Spotify Support.

mysql8使用自带全文索引(带中文分词)

如果之前建立全文索引,要先删除建立的索引,然后用下面的重新建立索引,亲测有效,nice 20200408 1307 ALTER TABLE `w_note` DROP INDEX content ALTER TABLE `w_note` ADD FULLT...

MySQL如何重建索引

总结一下MySQL索引重建的方法:1: DROP INDEX + RECREATE INDEX.2: ALTER TABLE方法3: REPAIR TABLE方法,这种方法对于InnoDB存储引擎的表无效。4: OPTI...

linux Centos8邮件服务器的搭建和使用

echo "content" | mail -s "title" xxx@gmail.com vi /etc/postfix/master.cf 更改配置文件把#smtps inet n - - - - smtpd 注释去掉 保存退出,重启postfix服务,报错 [root@vultrguest ~]# sudo systemctl restart ...

webmin和postfix