[root@host ~]# service nginx status
nginx: unrecognized service
[root@host ~]# service nginx start
nginx: unrecognized service
[root@host ~]# service mysqld start
Starting MariaDB SUCCESS!
[root@host ~]# 180331 18:38:55 mysqld_safe Logging to '/data/mariadb/mysql-error.log'.
180331 18:38:55 mysqld_safe A mysqld process already exists
^C
[root@host ~]# service nginx start
nginx: unrecognized service
[root@host ~]# service php -fpm start
php: unrecognized service
[root@host ~]# service tomcat start
Tomcat is already running (pid: 1397)
[root@host ~]#
不能打开主页,不能打开phpmyadmin
nginx: unrecognized service
[root@host ~]# service nginx start
nginx: unrecognized service
[root@host ~]# service mysqld start
Starting MariaDB SUCCESS!
[root@host ~]# 180331 18:38:55 mysqld_safe Logging to '/data/mariadb/mysql-error.log'.
180331 18:38:55 mysqld_safe A mysqld process already exists
^C
[root@host ~]# service nginx start
nginx: unrecognized service
[root@host ~]# service php -fpm start
php: unrecognized service
[root@host ~]# service tomcat start
Tomcat is already running (pid: 1397)
[root@host ~]#
不能打开主页,不能打开phpmyadmin
7 Answers
这样可以解决
sudo cp /home/ubuntu/oneinstack/init.d/Nginx-init-Ubuntu /etc/init.d/nginx
sudo chmod +x /etc/init.d/nginx
sudo /usr/sbin/update-rc.d -f nginx defaults
sudo service nginx configtest
sudo cp /home/ubuntu/oneinstack/init.d/Nginx-init-Ubuntu /etc/init.d/nginx
sudo chmod +x /etc/init.d/nginx
sudo /usr/sbin/update-rc.d -f nginx defaults
sudo service nginx configtest
Please login or Register to submit your answer