百度360必应搜狗淘宝本站头条
当前位置:网站首页 > 技术文章 > 正文

凝思系统6.0.80系统常用服务启停

haoteby 2025-01-18 19:57 6 浏览


适用范围

linx-6.0.60

解决方案

1. ftp服务

端口:21

服务启停命令

启动:/etc/init.d/proftpd start或systemctl start proftpd.service

停止:/etc/init.d/proftpd stop 或systemctl stop proftpd.service

重启:/etc/init.d/proftpd restart或systemctl restart proftpd.service

查看状态:/etc/init.d/proftpd status或systemctl status proftpd.service

开机自启和关闭命令

开机自启:systemctl enable proftpd.service

开机不启动:systemctl disable proftpd.service

2. ssh服务

端口:22

服务启停命令

启动:/etc/init.d/ssh start或systemctl start ssh.service

停止:/etc/init.d/ssh stop 或systemctl stop ssh.service

重启:/etc/init.d/ssh restart或systemctl restart ssh.service

查看状态:/etc/init.d/ssh status或systemctl status ssh.service

开机自启和关闭命令

开机自启:systemctl enable ssh.service

开机不启动:systemctl disable ssh.service

3. networking网络服务

服务启停命令

启动:/etc/init.d/networking start或systemctl start networking.service

停止:/etc/init.d/networking stop 或systemctl stop networking.service

重启:/etc/init.d/networking restart或systemctl restart networking.service

查看状态:/etc/init.d/networking status或systemctl status networking.service

开机自启和关闭命令

开机自启:systemctl enable networking.service

开机不启动:systemctl disable networking.service

4. telnet服务

端口:23

服务启停

停止:sed -i "/^telnet/s/^/#/" /etc/inetd.conf

/etc/init.d/openbsd-inetd restart

开启:sed -i "/^#telnet/s/#//" /etc/inetd.conf

/etc/init.d/openbsd-inetd restart

5. dns服务

端口:53

服务启停

启动:/etc/init.d/bind9 start或systemctl start bind9.service

停止:/etc/init.d/bind9 stop 或systemctl stop bind9.service

重启:/etc/init.d/bind9 restart或systemctl restart bind9.service

查看状态:/etc/init.d/bind9 status或systemctl status bind9.service

开机自启和关闭命令

开机自启:systemctl enable bind9.service

开机不启动:systemctl disable bind9.service

6. apache服务

端口:80

服务启停

启动:/etc/init.d/apache2 start或systemctl start apache2.service

停止:/etc/init.d/apache2 stop 或systemctl stop apache2.service

重启:/etc/init.d/apache2 restart或systemctl restart apache2.service

查看状态:/etc/init.d/apache2 status或systemctl status apache2.service

开机自启和关闭命令

开机自启:systemctl enable apache2.service

开机不启动:systemctl disable apache2.service

7. tomcat服务

端口:8080

服务启停

启动:/etc/init.d/tomcat7 start或systemctl start tomcat7.service

停止:/etc/init.d/tomcat7 stop 或systemctl stop tomcat7.service

重启:/etc/init.d/tomcat7 restart或systemctl restart tomcat7.service

查看状态:/etc/init.d/tomcat7 status或systemctl status tomcat7.service

开机自启和关闭命令

开机自启:systemctl enable tomcat7.service

开机不启动:systemctl disable tomcat7.service

8. rpcbind服务

端口:111

服务启停

启动:/etc/init.d/rpcbind start或systemctl start rpcbind.service

停止:/etc/init.d/rpcbind stop 或systemctl stop rpcbind.service

重启:/etc/init.d/rpcbind restart或systemctl restart rpcbind.service

查看状态:/etc/init.d/rpcbind status或systemctl status rpcbind.service

开机自启和关闭命令

开机自启:systemctl enable rpcbind.service

开机不启动:systemctl disable rpcbind.service

9. ntp服务

端口:123

服务启停

启动:/etc/init.d/ntp start或systemctl start ntp.service

停止:/etc/init.d/ntp stop 或systemctl stop ntp.service

重启:/etc/init.d/ntp restart或systemctl restart ntp.service

查看状态:/etc/init.d/ntp status或systemctl status ntp.service

开机自启和关闭命令

开机自启:systemctl enable ntp.service

开机不启动:systemctl disable ntp.service

10. samba服务

端口:137、138、139、445

服务启停

启动:/etc/init.d/samba start或systemctl start samba.service

/etc/init.d/nmbd start或systemctl start nmbd.service

/etc/init.d/smbd start或systemctl start smbd.service

停止:/etc/init.d/samba stop 或systemctl stop samba.service

/etc/init.d/nmbd stop 或systemctl stop nmbd.service

/etc/init.d/smbd stop 或systemctl stop smbd.service

重启:/etc/init.d/ntp restart或systemctl restart ntp.service

/etc/init.d/nmbd restart或systemctl restart nmbd.service

/etc/init.d/smbd restart或systemctl restart smbd.service

查看状态:/etc/init.d/samba status或systemctl status samba.service

/etc/init.d/nmbd status或systemctl status nmbd.service

/etc/init.d/smbd status或systemctl status smbd.service

开机自启和关闭命令

开机自启:systemctl enable samba.service

systemctl enable nmbd.service

systemctl enable smbd.service

开机不启动:systemctl disable samba.service

systemctl disable nmbd.service

systemctl disable smbd.service

11. lightdm图形服务

服务启停

启动:/etc/init.d/lightdm start或systemctl start lightdm.service

停止:/etc/init.d/lightdm stop 或systemctl stop lightdm.service

重启:/etc/init.d/lightdm restart或systemctl restart lightdm.service

查看状态:/etc/init.d/lightdm status或systemctl status lightdm.service

12. cron计划任务

服务启停

启动:/etc/init.d/cron start或systemctl start cron.service

停止:/etc/init.d/cron stop 或systemctl stop cron.service

重启:/etc/init.d/cron restart或systemctl restart cron.service

查看状态:/etc/init.d/cron status或systemctl status cron.service

13. mysql服务

端口:3306

服务启停

启动:/etc/init.d/mysql start或systemctl start mysql.service

停止:/etc/init.d/mysql stop 或systemctl stop mysql.service

重启:/etc/init.d/mysql restart或systemctl restart mysql.service

查看状态:/etc/init.d/mysql status或systemctl status mysql.service

开机自启和关闭命令

开机自启:systemctl enable mysql.service

开机不启动:systemctl disable mysql.service

14. rsyslog日志服务

服务启停

启动:/etc/init.d/rsyslog start或systemctl start rsyslog.service

停止:/etc/init.d/rsyslog stop 或systemctl stop rsyslog.service

重启:/etc/init.d/rsyslog restart或systemctl restart rsyslog.service

查看状态:/etc/init.d/rsyslog status或systemctl status rsyslog.service

15. mcelog日志服务

服务启停

启动:/etc/init.d/mcelog start或systemctl start mcelog.service

停止:/etc/init.d/mcelog stop 或systemctl stop mcelog.service

重启:/etc/init.d/mcelog restart或systemctl restart mcelog.service

查看状态:/etc/init.d/mcelog status或systemctl status mcelog.service

16. cups打印机服务

端口:631

服务启停

启动:/etc/init.d/cups start或systemctl start cups.service

停止:/etc/init.d/cups stop 或systemctl stop cups.service

重启:/etc/init.d/cups restart或systemctl restart cups.service

查看状态:/etc/init.d/cups status或systemctl status cups.service

开机自启和关闭命令

开机自启:systemctl enable cups.service

开机不启动:systemctl disable cups.service

17. nfs服务

端口:2049

服务启停

启动:/etc/init.d/nfs-common start或systemctl start nfs-common.service

/etc/init.d/nfs-kernel-server start或systemctl start nfs-kernel-server.service

停止:/etc/init.d/nfs-common stop 或systemctl stop nfs-common.service

/etc/init.d/nfs-kernel-server stop 或systemctl stop nfs-kernel-server.service

重启:/etc/init.d/nfs-common restart或systemctl restart nfs-common.service

/etc/init.d/nfs-kernel-server restart或systemctl restart nfs-kernel-server.service

查看状态:/etc/init.d/nfs-common status或systemctl status nfs-common.service

/etc/init.d/nfs-kernel-server status或systemctl status nfs-kernel-server.service

开机自启和关闭命令

开机自启:systemctl enable nfs-common.service

systemctl enable nfs-kernel-server.service

开机不启动:systemctl disable nfs-common.service

systemctl disable nfs-kernel-server.service

18. lwresd服务

端口:921

服务启停

启动:/etc/init.d/lwresd start或systemctl start lwresd.service

停止:/etc/init.d/lwresd stop 或systemctl stop lwresd.service

重启:/etc/init.d/lwresd restart或systemctl restart lwresd.service

查看状态:/etc/init.d/lwresd status或systemctl status lwresd.service

开机自启和关闭命令

开机自启:systemctl enable lwresd.service

开机不启动:systemctl disable lwresd.service

19. postfix服务

服务启停

启动:/etc/init.d/postfix start或systemctl start postfix.service

停止:/etc/init.d/postfix stop 或systemctl stop postfix.service

重启:/etc/init.d/postfix restart或systemctl restart postfix.service

查看状态:/etc/init.d/postfix status或systemctl status postfix.service

开机自启和关闭命令

开机自启:systemctl enable postfix.service

开机不启动:systemctl disable postfix.service

20. avahi-daemon服务

服务启停

启动:/etc/init.d/avahi-daemon start或systemctl start avahi-daemon.service

停止:/etc/init.d/avahi-daemon stop 或systemctl stop avahi-daemon.service

重启:/etc/init.d/avahi-daemon restart或systemctl restart avahi-daemon.service

查看状态:/etc/init.d/avahi-daemon status或systemctl status avahi-daemon.service

开机自启和关闭命令

开机自启:systemctl enable avahi-daemon.service

开机不启动:systemctl disable avahi-daemon.service

相关推荐

一日一技:用Python程序将十进制转换为二进制

用Python程序将十进制转换为二进制通过将数字连续除以2并以相反顺序打印其余部分,将十进制数转换为二进制。在下面的程序中,我们将学习使用递归函数将十进制数转换为二进制数,代码如下:...

十进制转化成二进制你会吗?#数学思维

六年级奥赛起跑线:抽屉原理揭秘。同学们好,我是你们的奥耀老师。今天一起来学习奥赛起跑线第三讲二进制计数法。例一:把十进制五十三化成二进制数是多少?首先十进制就是满十进一,二进制就是满二进一。二进制每个...

二进制、十进制、八进制和十六进制,它们之间是如何转换的?

在学习进制时总会遇到多种进制转换的时候,学会它们之间的转换方法也是必须的,这里分享一下几种进制之间转换的方法,也分享两个好用的转换工具,使用它们能够大幅度的提升你的办公和学习效率,感兴趣的小伙伴记得点...

c语言-2进制转10进制_c语言 二进制转十进制

#include<stdio.h>intmain(){charch;inta=0;...

二进制、八进制、十进制和十六进制数制转换

一、数制1、什么是数制数制是计数进位的简称。也就是由低位向高位进位计数的方法。2、常用数制计算机中常用的数制有二进制、八进制、十进制和十六进制。...

二进制、十进制、八进制、十六进制间的相互转换函数

二进制、十进制、八进制、十六进制间的相互转换函数1、输入任意一个十进制的整数,将其分别转换为二进制、八进制、十六进制。2、程序代码如下:#include<iostream>usingna...

二进制、八进制、十进制和十六进制等常用数制及其相互转换

从大学开始系统的接触计算机专业,到现在已经过去十几年了,今天整理一下基础的进制转换,希望给还在上高中的表妹一个入门的引导,早日熟悉这个行业。一、二进制、八进制、十进制和十六进制是如何定义的?二进制是B...

二进制如何转换成十进制?_二进制如何转换成十进制例子图解

随着社会的发展,电器维修由继电器时代逐渐被PLC,变频器,触摸屏等工控时代所替代,特别是plc编程,其数据逻辑往往涉及到数制二进制,那么二进制到底是什么呢?它和十进制又有什么区别和联系呢?下面和朋友们...

二进制与十进制的相互转换_二进制和十进制之间转换

很多同学在刚开始接触计算机语言的时候,都会了解计算机的世界里面大多都是二进制来表达现实世界的任何事物的。当然现实世界的事务有很多很多,就拿最简单的数字,我们经常看到的数字大多都是十进制的形式,例如:我...

十进制如何转换为二进制,二进制如何转换为十进制

用十进制除以2,除的断的,商用0表示;除不断的,商用1表示余0时结束假如十进制用X表示,用十进制除以2,即x/2除以2后为整数的(除的断的),商用0表示;除以2除不断的,商用1表示除完后的商0或1...

十进制数如何转换为二进制数_十进制数如何转换为二进制数举例说明

我们经常听到十进制数和二进制数,电脑中也经常使用二进制数来进行计算,但是很多人却不清楚十进制数和二进制数是怎样进行转换的,下面就来看看,十进制数转换为二进制数的方法。正整数转二进制...

二进制转化为十进制,你会做吗?一起来试试吧

今天孩子问把二进制表示的110101改写成十进制数怎么做呀?,“二进制”简单来说就是“满二进一”,只用0和1共两个数字表示,同理我们平常接触到的“十进制”是“满十进一”,只用0-9共十个数字表示。如果...

Mac终于能正常打游戏了!苹果正逐渐淘汰Rosetta转译

Mac玩家苦转译久矣!WWDC2025苹果正式宣判Rosetta死刑,原生游戏时代终于杀到。Metal4光追和AI插帧技术直接掀桌,连Steam都连夜扛着ARM架构投诚了。看到《赛博朋克2077》...

怎么把视频的声音提出来转为音频?音频提取,11款工具实测搞定

想把视频里的声音单独保存为音频文件(MP3/AAC/WAV/FLAC)用于配音、播客、听课或二次剪辑?本文挑出10款常用工具,给出实测可复现的操作步骤、优缺点和场景推荐。1)转换猫mp3转换器(操作门...

6个mp4格式转换器测评:转换速度与质量并存!

MP4视频格式具有兼容性强、视频画质高清、文件体积较小、支持多种编码等特点,适用于网络媒体传播。如果大家想要将非MP4格式的视频转换成MP4的视频格式的话,可以使用MP4格式转换器更换格式。本文分别从...