lm_sensors CentOS终端下查看CPU温度软件 命令安装

发布于:
服务器技术

lm_sensors是一个linux上查看温度的软件,能在Linux系统中快速查看CPU温度,自动侦测主板传感器的型号和读取方式,在命令行模式下快速安装运行。

Centos 中直接 使用 命令安装

#yum install -y lm_sensors

安装后,运行sensors,如果出现no sensors found的话,则要运行sensors-detect来探测传感器类型,此命令会给出一些问题,一路回车默认回答Yes即可,随后再运行sensors就能看出cpu电压温度等信息。

关于chmod的权限设置

发布于:
服务器技术
其语法格式为:chmod [who] [opt] [mode] 文件/目录名其中who表示对象,是以下字母中的一个或组合:u:表示文件所有者
g:表示同组用户
o:表示其它用户
a:表示所有用户
opt则是代表操作,可以为:

查看centos中的用户和用户组

发布于:
服务器技术

用户列表文件:/etc/passwd
用户组列表文件:/etc/group

查看系统中有哪些用户:cut -d : -f 1 /etc/passwd
查看可以登录系统的用户:cat /etc/passwd | grep -v /sbin/nologin | cut -d : -f 1
查看用户操作:w命令(需要root权限)
查看某一用户:w 用户名
查看登录用户:who
查看用户登录历史记录:last

nginx启动,重启,关闭命令

发布于:
服务器技术

停止操作

停止操作是通过向nginx进程发送信号(什么是信号请参阅linux文 章)来进行的

步骤1:查询nginx主进程号

ps -ef | grep nginx

在进程列表里 面找master进程,它的编号就是主进程号了。

步骤2:发送信号

从容停止Nginx:

kill -QUIT 主进程号

快速停止Nginx:

kill -TERM 主进程号

强制停止Nginx:

pkill -9 nginx

Orchard 学习随记,Module创建、安装、卸载命令

发布于:
Orchard CMS
Module 卸载(使用命令行):

package create <extensionName> <path>
    Create a package for the extension <extensionName>
    (an extension being a module or a theme).
    The package will be output at the <path> specified.
    The default filename is Orchard.[Module|Theme].<extensionName>.<extensionVersion>.nupkg.
    For example, "package create SampleModule c:temp" will create the package
    "c:tempOrchard.Module.SampleModule.1.0.0.nupkg".

package install <packageId> <location> /Version:<version>
        Install a module or a theme from a package file.

package uninstall <packageId>
    Uninstall a module or a theme.
    The <packageId> should take the format Orchard.[Module|Theme].<extensionName>.
    For example, "package uninstall Orchard.Module.SampleModule" will uninstall the Module under the "~/Modules/SampleModule" directory and
    "package uninstall Orchard.Theme.SampleTheme" will uninstall the Theme under the "~/Themes/SampleTheme" directory.

 

VBoxManage命令详解

发布于:
服务器技术

VBoxManage [-v|-version]         显示virtualbox的版本号
VBoxManage -nologo               隐藏logo
VBoxManage -convertSettings      允许自动转换设置文件
VBoxManage -convertSettingsBackup  允许自动转换设置文件,并在转换前作备份
VBoxManage -convertSettingsIgnore  允许自动转换设置文件,但是不保存结果