当前位置: 首页 > news >正文

重庆高端网站建设公司网站建设服务费计入会计科目

重庆高端网站建设公司,网站建设服务费计入会计科目,中国企业大黄页,可口可乐公司建设网站的目的是什么rsyslog 日志由程序产生#xff0c;在内存中产生。通过Rsyslog来将内存中程序产生的日志持久化到硬盘#xff0c;并且支持udp、tcp等协议来进行不同服务器的日志同步。 /var/log/messages:大多数系统日志信息纪录在此/var/log/secure#xff1a;安全和身份认证相关的消息和…rsyslog 日志由程序产生在内存中产生。通过Rsyslog来将内存中程序产生的日志持久化到硬盘并且支持udp、tcp等协议来进行不同服务器的日志同步。 /var/log/messages:大多数系统日志信息纪录在此/var/log/secure安全和身份认证相关的消息和错误的日志文件/var/log/maillog:与邮件服务器相关的日志文件/var/log/cron:与定时任务相关的日志文件/var/log/boot.log:与系统启动有关的日志文件pam在linux中执行某些程序这些程序在执行前要对启动它的用户进行认证符合一定要求后才允许执行例如login、su等在linux中进行身份验证或是状态的验证程序由pam来进行。pam即可动态加载验证模块因为可以按需要动态的对验证的内容进行变更大大提高验证的灵活性。Linux-pam是一套共享库使本地系统管理员可以随意选择程序的认证方式。使用配置/etc/pam.d/下的文件来管理对程序的认证方式。应用程序调用相应的配置文件从而调用本地的认证模块模块放置在/lib/secureity下以加载动态库的形式进行像我们使用su命令时系统提示你输入root用户的密码这就是su命令通过调用PAM模块实现的。日志类型分为authpam产生的日志authprivsshftp等登陆信息的验证信息cron:时间任务相关kern内核lpr打印mail邮件mark(syslog)-rsyslog:服务内部的信息时间标识news:新闻组user用户程序产生的相关信息uucpunix to unix copyunix主机之间相关的通讯local 1-7自定义的日志设备日志级别由上到下级别由低到高记录信息越来越少debug有调试信息的日志信息最多info:一般信息的日志最常用notice具有重要性的普通条件的信息warning警告级别err错误级别阻止某个功能或者模块不能正常工作的信息crit严重级别阻止整个系统或者整个软件不能正常运行的信息alert需要立刻修改的信息emerg内核崩溃等严重信息none什么都不记录配置 test1 作为日志服务器收集日志 test4 作为客户端test1配置 1.安装 yum install rsyslog -y2.更改配置文件 vim /etc/rsyslog.conf #这四行去掉注释 $ModLoad imudp 收集udp日志,并开启端口 $UDPServerRun 514$ModLoad imtcp 收集tcp日志并开启端口 $InputTCPServerRun 514#添加$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat#表示收集的日志存放在/var/log/rsyslog/下收集那个机器的日志就以那个机器ip命名 $template RemoteLogs,/var/log/rsyslog/%fromhost-ip%/%fromhost-ip%_%$YEAR%-%$MONTH%-%$DAY%.log#不收集本机的日志 :fromhost-ip, !isequal, 127.0.0.1 ?RemoteLogs~ 3.重启服务 systemctl restart rsyslog.service2.test4客户端配置 1.安装 yum install rsyslog -y2.配置 # 无论什么级别的日志都收集到 /var/log/messages*.*;mail.none;authpriv.none;cron.none /var/log/messages#*.info;mail.none;authpriv.none;cron.none /var/log/messages 只收集info以上的日志 #在最底部添加 *.* 192.168.134.25:514 #两个代表收集tcp的日志 *.* 192.168.134.25:514 #代表收集udp的日志#192.168.206.25是日志服务器的地址3.重启服务 systemctl restart rsyslog.service3.测试 #此时再看服务端就有ip对应的日志 [roottest1 ~]# tail -f /var/log/rsyslog/192.168.134.28/192.168.134.28_2023-12-1 192.168.134.28_2023-12-11.log 192.168.134.28_2023-12-12.log1.此时我们让test4的nginx报错 [roottest4 ~]# grep http /etc/nginx/nginx.conf # * Official English Documentation: http://nginx.org/en/docs/ # * Official Russian Documentation: http://nginx.org/ru/docs/ http ;{$status $body_bytes_sent $http_referer 2.重启nginx,此时test1服务端就有日志产生 [roottest1 ~]# tail -f /var/log/rsyslog/192.168.134.28/192.168.134.28_2023-12-1 192.168.134.28_2023-12-11.log 192.168.134.28_2023-12-12.log [roottest1 ~]# tail -f /var/log/rsyslog/192.168.134.28/192.168.134.28_2023-12-12.log Dec 12 08:56:49 test4 polkitd[528]: Unregistered Authentication Agent for unix-process:9285:162270604 (system bus name :1.1063, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus) Dec 12 08:56:49 test4 polkitd[528]: Unregistered Authentication Agent for unix-process:9285:162270604 (system bus name :1.1063, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus) Dec 12 09:01:01 test4 systemd[1]: Started Session 512 of user root. Dec 12 09:01:01 test4 systemd[1]: Started Session 512 of user root. Dec 12 09:01:01 test4 systemd: Started Session 512 of user root. Dec 12 09:01:01 test4 systemd: Started Session 512 of user root. Dec 12 09:01:01 test4 CROND[9326]: (root) CMD (run-parts /etc/cron.hourly) Dec 12 09:01:01 test4 CROND[9326]: (root) CMD (run-parts /etc/cron.hourly) Dec 12 09:01:01 test4 CROND[9326]: (root) CMD (run-parts /etc/cron.hourly) Dec 12 09:01:01 test4 CROND[9326]: (root) CMD (run-parts /etc/cron.hourly)Dec 12 09:36:42 test4 polkitd[528]: Registered Authentication Agent for unix-process:9860:162509910 (system bus name :1.1068 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) Dec 12 09:36:42 test4 polkitd[528]: Registered Authentication Agent for unix-process:9860:162509910 (system bus name :1.1068 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) Dec 12 09:36:42 test4 polkitd[528]: Registered Authentication Agent for unix-process:9860:162509910 (system bus name :1.1068 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) Dec 12 09:36:42 test4 polkitd[528]: Registered Authentication Agent for unix-process:9860:162509910 (system bus name :1.1068 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) Dec 12 09:36:42 test4 systemd[1]: Starting The nginx HTTP and reverse proxy server... Dec 12 09:36:42 test4 systemd[1]: Starting The nginx HTTP and reverse proxy server... Dec 12 09:36:42 test4 systemd: Starting The nginx HTTP and reverse proxy server... Dec 12 09:36:42 test4 systemd: Starting The nginx HTTP and reverse proxy server... Dec 12 09:36:42 test4 nginx[9867]: nginx: [emerg] directive http has no opening { in /etc/nginx/nginx.conf:17 Dec 12 09:36:42 test4 nginx[9867]: nginx: configuration file /etc/nginx/nginx.conf test failed Dec 12 09:36:42 test4 nginx: nginx: [emerg] directive http has no opening { in /etc/nginx/nginx.conf:17 Dec 12 09:36:42 test4 nginx[9867]: nginx: [emerg] directive http has no opening { in /etc/nginx/nginx.conf:17 Dec 12 09:36:42 test4 nginx[9867]: nginx: configuration file /etc/nginx/nginx.conf test failed Dec 12 09:36:42 test4 nginx: nginx: [emerg] directive http has no opening { in /etc/nginx/nginx.conf:17 Dec 12 09:36:42 test4 nginx: nginx: configuration file /etc/nginx/nginx.conf test failed Dec 12 09:36:42 test4 nginx: nginx: configuration file /etc/nginx/nginx.conf test failed Dec 12 09:36:42 test4 systemd[1]: nginx.service: control process exited, codeexited status1 Dec 12 09:36:42 test4 systemd[1]: Failed to start The nginx HTTP and reverse proxy server. Dec 12 09:36:42 test4 systemd[1]: Unit nginx.service entered failed state. Dec 12 09:36:42 test4 systemd[1]: nginx.service failed. Dec 12 09:36:42 test4 systemd: nginx.service: control process exited, codeexited status1 Dec 12 09:36:42 test4 systemd: Failed to start The nginx HTTP and reverse proxy server. Dec 12 09:36:42 test4 systemd: Unit nginx.service entered failed state. Dec 12 09:36:42 test4 systemd: nginx.service failed. Dec 12 09:36:42 test4 systemd[1]: nginx.service: control process exited, codeexited status1 Dec 12 09:36:42 test4 systemd[1]: Failed to start The nginx HTTP and reverse proxy server. Dec 12 09:36:42 test4 systemd[1]: Unit nginx.service entered failed state. Dec 12 09:36:42 test4 systemd[1]: nginx.service failed. Dec 12 09:36:42 test4 systemd: nginx.service: control process exited, codeexited status1 Dec 12 09:36:42 test4 systemd: Failed to start The nginx HTTP and reverse proxy server. Dec 12 09:36:42 test4 systemd: Unit nginx.service entered failed state. Dec 12 09:36:42 test4 systemd: nginx.service failed. Dec 12 09:36:42 test4 polkitd[528]: Unregistered Authentication Agent for unix-process:9860:162509910 (system bus name :1.1068, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus) Dec 12 09:36:42 test4 polkitd[528]: Unregistered Authentication Agent for unix-process:9860:162509910 (system bus name :1.1068, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus) Dec 12 09:36:42 test4 polkitd[528]: Unregistered Authentication Agent for unix-process:9860:162509910 (system bus name :1.1068, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus) Dec 12 09:36:42 test4 polkitd[528]: Unregistered Authentication Agent for unix-process:9860:162509910 (system bus name :1.1068, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
http://www.zqtcl.cn/news/933349/

相关文章:

  • 自助建站网站seo公司wordpress 相册 免费模板
  • 搜索建站网在线crm管理系统
  • 旅游网站管理系统源码wordpress 禁止爬虫
  • 会员登录系统网站建设wordpress 二级页面
  • 北京网站建设公司代理记账代理公司注册
  • 网站建设需要提供的资料物流企业网站建设与管理规划书
  • .net 手机网站开发wordpress下载链接框
  • 省直部门门户网站建设网站视频点播怎么做
  • 广西网站建设-好发信息网做信息图的网站
  • 网站建设费用怎么算遵义市住房和城乡建设局官方网站
  • 网站部分网页乱码手把手教建设网站
  • 电商网站开发目的举报网站建设运行情况
  • 网站专业设计在线科技成都网站推广公司
  • 怎么建设幸运28网站seo工作是什么意思
  • 人工智能和网站开发如何做网站栏目
  • 设计有什么网站推荐ppt大全免费模板
  • 建站点wordpress百度云
  • 微信朋友圈的网站连接怎么做公众号小程序制作步骤
  • 做移动互联网站点网站建设完工确认书
  • 网站建设英语翻译资料潼南国外免费自助建站
  • 技术支持上海网站建设如何在自己电脑上做网站
  • go语做网站深圳网上推广怎么做
  • 十堰网站建设电话刷网站流量有用吗
  • 轴承推广做哪个网站怎么在app中嵌入h5页面
  • 文书写作网站模板制作过程
  • 国外做家纺的网站wordpress导航加title
  • 阿里云备案网站名称服务器租用相关网站
  • 莆田市的网站建设公司网站身份验证怎么做
  • 手机建站永久免费软件网站根目录 设置
  • 网站内容和备案不一3d建模师容易找工作吗