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

濮阳市网站建设网站做的不好

濮阳市网站建设,网站做的不好,苏州百度推广,有需要做网站的吗sudo lsb_release -r可以看到操作系统版本是20.04#xff0c;sudo uname -r可以看到内核版本是5.5.19。 sudo apt-get update进行更新镜像源。 完成之后#xff0c;如下图#xff1a; sudo apt-get upgrade -y更新软件。 选择NO#xff0c;按下Enter。 完成如下sudo uname -r可以看到内核版本是5.5.19。 sudo apt-get update进行更新镜像源。 完成之后如下图 sudo apt-get upgrade -y更新软件。 选择NO按下Enter。 完成如下 MySQL安装 sudo wget https://cdn.mysql.com/archives/mysql-8.0/mysql-server_8.0.31-1ubuntu20.04_amd64.deb-bundle.tar下载MySQL文件。 sudo mkdir /mysql8创建目录。 sudo tar -xf mysql-server_8.0.31-1ubuntu20.04_amd64.deb-bundle.tar -C /mysql8进行解压。 需要使用到的安装命令如下 sudo dpkg -i /mysql8/mysql-community-client-plugins_8.0.31-1ubuntu20.04_amd64.deb sudo dpkg -i /mysql8/mysql-community-client-core_8.0.31-1ubuntu20.04_amd64.deb sudo dpkg -i /mysql8/mysql-common_8.0.31-1ubuntu20.04_amd64.deb sudo dpkg -i /mysql8/mysql-community-client_8.0.31-1ubuntu20.04_amd64.deb sudo dpkg -i /mysql8/libmysqlclient21_8.0.31-1ubuntu20.04_amd64.deb sudo dpkg -i /mysql8/libmysqlclient-dev_8.0.31-1ubuntu20.04_amd64.deb sudo apt install -y libmecab2 sudo dpkg -i /mysql8/mysql-community-server-core_8.0.31-1ubuntu20.04_amd64.deb sudo dpkg -i /mysql8/mysql-client_8.0.31-1ubuntu20.04_amd64.deb sudo dpkg -i /mysql8/mysql-community-server_8.0.31-1ubuntu20.04_amd64.deb 需要输入密码接下来就是上边命令图文安装步骤 sudo dpkg -i /mysql8/mysql-community-client-plugins_8.0.31-1ubuntu20.04_amd64.deb sudo dpkg -i /mysql8/mysql-community-client-core_8.0.31-1ubuntu20.04_amd64.deb sudo dpkg -i /mysql8/mysql-common_8.0.31-1ubuntu20.04_amd64.deb sudo dpkg -i /mysql8/mysql-community-client_8.0.31-1ubuntu20.04_amd64.deb sudo dpkg -i /mysql8/libmysqlclient21_8.0.31-1ubuntu20.04_amd64.deb sudo dpkg -i /mysql8/libmysqlclient-dev_8.0.31-1ubuntu20.04_amd64.deb sudo apt install -y libmecab2 sudo dpkg -i /mysql8/mysql-community-server-core_8.0.31-1ubuntu20.04_amd64.deb sudo dpkg -i /mysql8/mysql-client_8.0.31-1ubuntu20.04_amd64.deb sudo dpkg -i /mysql8/mysql-community-server_8.0.31-1ubuntu20.04_amd64.deb进行安装提示输入密码。 输入密码之后需要用↓选中ok按回车键。 之后再次输入密码。 然后按下→选中ok再次按下回车键。 然后按下→选中ok按下回车键。 执行完成如下图 sudo systemctl start mysql进行启动systemctl status mysql可以看到状态是active (running)。 Redis源码安装 sudo wget https://download.redis.io/releases/redis-6.2.13.tar.gz下载源代码。 sudo mkdir /rediscode创建一个新目录sudo tar -xf redis-6.2.13.tar.gz -C /rediscode/把源码解压到/rediscode/里边。 cd /rediscode/redis-6.2.13/进入到源代码里边。 sudo make进行编译。 完成之后如下图 sudo sed -i /^# requirepass/a\requirepass GoodLearn123 /rediscode/redis-6.2.13/redis.conf在以# requirepass开头的内容下一行插入requirepass GoodLearn123sudo cat -n /rediscode/redis-6.2.13/redis.conf | sudo grep requirepass查看一下上边插入情况。 sudo nohup /rediscode/redis-6.2.13/src/redis-server /rediscode/redis-6.2.13/redis.conf /rediscode/redis-6.2.13/nohup.out 后台启动。 Categraf v0.3.22部署 wget https://github.com/flashcatcloud/categraf/releases/download/v0.3.22/categraf-v0.3.22-linux-amd64.tar.gz下载安装包。 sudo mkdir -p /opt/categraf创建一个目录。 sudo tar zxf categraf-v0.3.22-linux-amd64.tar.gz -C /opt/categraf进行解压。 sudo /opt/categraf/categraf-v0.3.22-linux-amd64/categraf --test先进行测试。 Ctrlc可以退出。 sudo nohup /opt/categraf/categraf-v0.3.22-linux-amd64/categraf /opt/categraf/stdout.log 正式启动categraf。 victoria-metrics安装 sudo wget https://github.com/VictoriaMetrics/VictoriaMetrics/releases/download/v1.90.0/victoria-metrics-linux-amd64-v1.90.0.tar.gz下载victoria-metrics。 sudo mkdir /opt/victoria-metrics创建目录sudo tar xf victoria-metrics-linux-amd64-v1.90.0.tar.gz -C /opt/victoria-metrics/进行解压。 sudo nohup /opt/victoria-metrics/victoria-metrics-prod /opt/victoria-metrics/victoria.log 启动victoria-metrics-prod。 sudo ps -aux | grep victoria-metrics-prod有三条数据说明正常启动。 Prometheus安装 sudo wget -c https://github.com/prometheus/prometheus/releases/download/v2.37.1/prometheus-2.37.1.linux-amd64.tar.gz下载必要的组件。 tar -zxf prometheus-2.37.1.linux-amd64.tar.gz解压文件然后ls -l prometheus-2.37.1.linux-amd64可以看一下解压之后的文件内容。 sudo cat EOF /etc/systemd/system/prometheus.service把下边的内容都写进去每敲一行按一下回车键最后别忘了输入EOF作为结束字符串EOF不会写入到文件中 [Unit] Descriptionprometheus Documentationhttps://prometheus.io/ Afternetwork.target[Service] TypesimpleExecStart/root/prometheus-2.37.1.linux-amd64/prometheus --config.file/root/prometheus-2.37.1.linux-amd64/prometheus.yml --storage.tsdb.path/root/prometheus-2.37.1.linux-amd64/data --web.enable-lifecycle --enable-featureremote-write-receiver --query.lookback-delta2m --web.enable-admin-apiRestarton-failure SuccessExitStatus0 LimitNOFILE65536 StandardOutputsyslog StandardErrorsyslog SyslogIdentifierprometheus[Install] WantedBymulti-user.targetcat /etc/systemd/system/prometheus.service看一下文件里边内容。 sudo systemctl start prometheus开启服务sudo systemctl status prometheus可以看到服务的状态是active (running)。 二进制部署Nightingale v6.1.0 sudo wget https://download.flashcat.cloud/n9e-v6.1.0-linux-amd64.tar.gz下载Nightingale。 mkdir /opt/n9e tar -zxf n9e-v6.1.0-linux-amd64.tar.gz -C /opt/n9e创建一个/opt/n9e目录并把相关文件解压到/opt/n9e里边。 chmod 700 /opt/n9e把读写执行权限赋予文件属主。 cd /opt/n9e进入到目录里边。 sed -i s/# Password /Password GoodLearn123/g /opt/n9e/etc/config.toml把# Password 替换成Password GoodLearn123。 sed -n /Password GoodLearn123/p /opt/n9e/etc/config.toml看一下替换情况。 mysql -uroot -pGood#1103 /opt/n9e/n9e.sql初始化MySQL数据库里边数据。 sed -i s/root:1234/root:Good#1103/g /opt/n9e/etc/config.toml使用root用户密码改为Good#1103。 sed -n /root:Good#1103/p /opt/n9e/etc/config.toml查看一下修改情况。 sudo sed -i s#9090/api/v1/write#8428/api/v1/write#g /opt/n9e/etc/config.toml把9090/api/v1/write改成8428/api/v1/write。 sudo sed -n /8428\/api/p /opt/n9e/etc/config.toml查看一下修改情况。 sudo nohup /opt/n9e/n9e /opt/n9e/n9e.log 后台运行 ss -tlnp|grep 17000查看一下监控端口状态有信息就说明正常启动了。 在浏览器里边输入ip:17000进入如下页面 默认用户名为root默认密码是root.2020,输入正确之后进入如下页面。 选择系统配置菜单然后选择数据源在Prometheus Like底下点击添加。 需要填写的信息如下 名称localVictoriaMetrics可以按照自己的需求填写 URLhttp://localhost:8428 Remote Write URLhttp://localhost:8428/api/v1/write 点击时序指标然后选择即时查询。 cpu_usage_iowait输入到搜索框里边然后选择Graph之后点击查询。 上边是我第一次启动没有什么问题但是我第二次sudo nohup /opt/n9e/n9e /opt/n9e/n9e.log 启动的时候ss -tlnp|grep 17000查看一下监控端口状态发现提示的信息是[1] Exit 1 sudo nohup /opt/n9e/n9e /opt/n9e/n9e.log这表明没有正常启动。 cat /opt/n9e/n9e.log可以看到里边的内容如下 nohup: ignoring input runner.cwd: /opt/n9e runner.hostname: hecs-141123 runner.fd_limits: (soft65535, hard65535) runner.vm_limits: (softunlimited, hardunlimited) 2023/09/25 15:46:53 main.go:36: failed to initialize: dialector() not supported可以先使用cd /opt/n9e进入到夜莺etc目录所在的目录然后再执行sudo nohup /opt/n9e/n9e /opt/n9e/n9e.log ,使用ss -tlnp|grep 17000可以看到LISTEN 0 1024 *:17000 *:* users:((n9e,pid55859,fd10))的信息这是启动成功了。 kill -9 55858 55859把上边两个进程关闭然后使用下边的解决方法再试一下。 使用sudo nohup /opt/n9e/n9e -configs /opt/n9e/etc /opt/n9e/n9e.log 进行启动-configs后边跟着的是夜莺的etc目录绝对路径。使用ss -tlnp|grep 17000可以看到启动成功了。 此文章为9月Day 24学习笔记内容来源于极客时间《运维监控系统实战笔记》。
http://wiki.neutronadmin.com/news/52239/

相关文章:

  • 做网站有没有前景移动互联网公司有哪些
  • 站长查询域名海港开发区人才网
  • 网站编辑知识青岛官网优化推广
  • 手机商城网站方案网站提交入口汇总
  • 网站说服力营销型网站策划wordpress您找的页面不存在
  • 做vi网站wordpress哪个seo工具好
  • 关于网站的建设论文做网站 人工智能
  • 上海高端网站设计公司wordpress无法搜索中文
  • 网站制作九江计算机软件开发培训
  • 电商网站商品属性设计wordpress 机械模板下载地址
  • dede本地环境搭建网站c语言自学免费网站
  • 中文域名和网站的关系淄博网站建设
  • 网站建设基本模板介绍作图网站都有哪些
  • 企业在网站建设上的不足常熟东南开发区人才网
  • 网站建设实训建议河池网站优化
  • 微企点建站怎么样谷歌网站 百度
  • 建设一个网站引言网站制作公司北京
  • 河南中国建设银行官网站WordPress可以配置163邮箱吗
  • 建设网站条件wordpress漏洞上传php文件夹
  • 专门做防盗门的网站网站seo优化推广教程
  • 福州室内设计学校企业关键词排名优化哪家好
  • 网站增加栏目费用如何做网站
  • 网站服务器如何更改解析公司的 SEO与网站建设
  • 简单个人网站模板下载做国外的网站有什么不用钱的
  • 做单页网站怎么选产品微信网站建设公司费用
  • 如何实现网站的快速排名英文的购物网站
  • 重庆网站制作公司重庆wordpress custom post type
  • 国外网站 国内做镜像电商网站项目经验介绍ppt模板
  • 广西最优秀的品牌网站建设公司网站开发开票交税额
  • 58同城枣庄网站建设济南做平台网站的