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

玻璃行业做的非常有设计感的网站公司网站域名怎么注册

玻璃行业做的非常有设计感的网站,公司网站域名怎么注册,深圳宝安做网站,网站怎么连接微信支付文章目录 1. 下载常用软件包2. 更新yum源3. vim编辑器配置4. 安装C语言和C的静态库(换root)5. git6. sudo给普通用户提权7. 更新git版本(centos默认安装1.8.x,我们更新到2.x)8. getch9. json10. 升级gcc版本11. 跨系统…

文章目录

  • 1. 下载常用软件包
  • 2. 更新yum源
  • 3. vim编辑器配置
  • 4. 安装C语言和C++的静态库(换root)
  • 5. git
  • 6. sudo给普通用户提权
  • 7. 更新git版本(centos默认安装1.8.x,我们更新到2.x)
  • 8. getch
  • 9. json
  • 10. 升级gcc版本
  • 11. 跨系统数据传输
  • 12.解决报错【g++: internal compiler error: Killed (program cc1plus)Please submit a full bug report,with preprocessed source if appropriate.】
  • 13.ProtoBuf 的安装
  • 14. docker的安装
  • 15. cgroup的相关命令
  • 16. nginx 安装

1. 下载常用软件包

yum install -y tree
yum install -y nano
yum install -y man man-pages
yum install -y zip unzip
yum install -y gcc-c++ libstdc++-devel

2. 更新yum源

cd /etc/yum.repos.d
mv CentOS-Base.repo backup_CentOS-Base.repo
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
mv CentOS7-Base-163.repo CentOS-Base.repo
yum clean all
yum makecache

3. vim编辑器配置

  • 每个用户都需要单独配置,登入需要用户
cd
curl -sLf https://gitee.com/HGtz2222/VimForCpp/raw/master/install.sh -o ./install.sh && bash ./install.sh
(需要输入root的密码)
source ~/.bashrc // 按照”提示“输入指令

4. 安装C语言和C++的静态库(换root)

yum install glibc-static -y libstdc++-static

5. git

git --version(有的话就不用装了)
yum install -y git

6. sudo给普通用户提权

yum install sudo
vim /etc/sudoers
/**
*  ## Allows people in group wheel to run all commands
* %wheel  ALL=(ALL)       ALL
* tsq ALL=(ALL)       ALL    #这里就需要添加的地方
**/
// :wq! 强制退出
// 切换成普通用户后 sudo vim/etc/sudoers 能正常查看则成功

7. 更新git版本(centos默认安装1.8.x,我们更新到2.x)

sudo yum -y remove git
sudo yum -y remove git-*
sudo yum -y install https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
sudo yum -y install git
git version

8. getch

yum install -y ncurses ncurses-devel

9. json

yum makecache fast
yum -y install jsoncpp-devel

10. 升级gcc版本

sudo yum install -y centos-release-scl-rh centos-release-scl
sudo yum install -y devtoolset-7-gcc devtoolset-7-gcc-c++
source /opt/rh/devtoolset-7/enable 
echo "source /opt/rh/devtoolset-7/enable" >> ~/.bashrc

11. 跨系统数据传输

sudo yum install -y lrzsz

12.解决报错【g++: internal compiler error: Killed (program cc1plus)Please submit a full bug report,with preprocessed source if appropriate.】

  • 原因:内存满了
  • 方式:交换分区

【设置并启用分区】

  • 查看内存状态,下面的Swap也就是虚拟内存全为0
free -m
  • 该命令表示在opt分区建立名为swap,大小为1G的虚拟内存文件
sudo dd if=/dev/zero of=/opt/swap bs=1024 count=1024000
  • 修改swap目录的权限(可能权限不同,看报错提示)
sudo chmod 600 /opt/swap
  • 设置swap为分区
mkswap /opt/swap
  • 激活swap,启用分区交换文件
swapon /opt/swap

【关停分区】

  • 停止swap分区
swapoff /opt/swap
  • 其次删除掉swap文件
swapoff /opt/swap

13.ProtoBuf 的安装

  • 安装依赖库
sudo yum install -y autoconf automake libtool curl make gcc_c++ unzip
  • 下载编译器
wget https://github.com/protocolbuffers/protobuf/releases/download/v21.9/protobuf-all-21.9.zip
  • 执行 autogen.sh(如果下的是all的需要这一步,单独的语言不需要这一步)
./ autogen.sh
  • 修改安装目录,统一安装在 /usr/local/protobuf 下(直接运行./configure更方便,不过 lib和bin就会是分散的)
./configure --prefix=/usr/local/protobuf
  • 执行,前两个花费15min左右
make
make check
sudo make install

13.2解决报错 make check:FAIL: protobuf-test
增大虚拟机内存 or 分区设置

14. docker的安装

【配置仓库】

  • 安装config-manager命令,配置仓库的工具所在工具包
sudo yum install -y yum-utils
  • 配置repo
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
  • 把/etc/yum.repos.d/docker-ce.repo里的gpgkey替换成国内镜像源(中科大)
sudo sed -i 's@//download.docker.com@//mirrors.ustc.edu.cn/docker-ce@g' /etc/yum.repos.d/docker-ce.repo

【安装docker】

sudo yum install -y docker-ce docker-ce-cli containerd.io dockerbuildx-plugin docker-compose-plugin

【验证】

  • 配置加载
sudo systemctl daemon-reload
  • 启动服务
sudo systemctl start docker
  • 开启启动(视需求添加)
sudo systemctl enable docker
  • 查看服务状态
sudo systemctl status docker
  • 运行docker
sudo docker run hello-world

15. cgroup的相关命令

  • pidstat命令
sodu yum install sysstat -y
  • stress命令
yum install stress -y

16. nginx 安装

  • centos 配置 nginx 源
rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
  • 查看yum源
ll /etc/yum.repos.d
  • 配置源后建议构建缓存,加速下载
yum makecache
  • 下载
yum install -y nginx
  • 查看是否启动
ps -ef |grep nginx
  • 没有启动的话直接使用命令
nginx
  • 检查版本
nginx -v
http://www.hkea.cn/news/457888/

相关文章:

  • 2022注册公司取名推荐网络营销的优化和推广方式
  • 做网站费是多少贵州二级站seo整站优化排名
  • 做网站潍坊培训课程安排
  • python做网站需要什么seo学习论坛
  • 用手机怎样制作网站网络seo是什么
  • 企业网站开发信息搜索大全浏览器
  • 做虚拟货币交易网站域名注册平台有哪些
  • 企业网站首页的实现专业的网页制作公司
  • 动态网站建设教程宝鸡seo排名
  • 做外贸b2b免费网站优化推广网站排名
  • 丹徒网站建设价格香港服务器
  • 宿迁哪里有做网站开发的信息流广告案例
  • 电脑网页无法访问如何解决北京seo地址
  • 直销网站系统制作价格java培训机构
  • dw软件个人简历网站怎么做百度导航下载2022最新版官网
  • 成都官方网站建设泉州seo外包
  • 矿山建设网站天津网络推广seo
  • 国内优秀的响应式网站深圳专业seo外包
  • 重庆装修价格c盘优化大师
  • 银行网站 设计方案外包优化网站
  • 做网站是学什么专业软件外包企业排名
  • wordpress商城 中文站百度站长平台网址
  • 建手机网站的软件有哪些南宁百度seo价格
  • 做网站私活长沙网络营销公司
  • 网站建设公司 广告法被处罚沧州网络推广外包公司
  • 电商网站 开发成本惠州seo外包服务
  • 佛山做网站建设价格百度网盘官方下载
  • 网上购物商城网站建设个人免费域名注册网站
  • 成都学网站建设电子营销主要做什么
  • 织梦cms通用蓝白简介大气企业网站环保科技公司源码网络推广员招聘