首页 文章 精选 留言 我的

精选列表

搜索[网站开发],共10000篇文章
优秀的个人博客,低调大师

centos开发环境安装的备忘

#Centos visudo运行普通用户$(whomai)执行sudo操作 http://www.cnblogs.com/xianyunhe/archive/2011/08/08/2124342.html 在/etc/gdm/custom.conf文件中添加以下内容 [daemon] AutomaticLogin=username AutomaticLoginEnable=True #virtualbox Guest Host目录共享 sudo usermod -a -G vboxsf $(whomai) #yum源镜像 1、备份 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 2、下载新的CentOS-Base.repo 到/etc/yum.repos.d/ CentOS 5 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo CentOS 6 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo CentOS 7 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 3、之后运行yum makecache生成缓存 mysql的安装 yum install mariadb-server.x86_64 mariadb.x86_64 systemctl enable mariadb.service systemctl start mariadb.service #docker的安装 http://git.oschina.net/wushifeng/hivedocker/blob/master/ready.sh #!/usr/bin/env bash #1 centos上安装docker if [ -f /usr/bin/docker ]; then echo 'docker installed' else sudo yum install docker.x86_64 docker -h sudo systemctl enable docker.service fi #2 docker的仓库镜像的国内站点 https://www.daocloud.io/mirror#accelerator-doc http://guide.daocloud.io/dcs/daocloud-9153151.html #https://yq.aliyun.com/articles/29941 #Docker 镜像加速器 #docker version <=1.10 :<<EOF sudo cp -n /lib/systemd/system/docker.service /etc/systemd/system/docker.service sudo sed -i "s|ExecStart=/usr/bin/docker daemon|ExecStart=/usr/bin/docker daemon --registry-mirror=<your accelerate address>|g" /etc/systemd/system/docker.service sudo systemctl daemon-reload sudo service docker restart EOF #docker version >1.10 sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": ["https://2mt5bmc8.mirror.aliyuncs.com"] } EOF sudo systemctl daemon-reload sudo systemctl restart docker #3 普通用户使用dcoker #普通的用户直接使用docker命令运行 [设置完成后,注销用户重新登陆] sudo groupadd docker sudo gpasswd -a $(whomai) docker sudo systemctl restart docker docker debian source 默认deb http://deb.debian.org/debian wheezy maindeb http://deb.debian.org/debian wheezy-updates maindeb http://security.debian.org wheezy/updates main使用163的源echo "deb http://mirrors.163.com/debian wheezy main non-free contrib" >/etc/apt/sources.list echo "deb http://mirrors.163.com/debian wheezy-proposed-updates main contrib non-free" >>/etc/apt/sources.list echo "deb http://mirrors.163.com/debian wheezy-updates main contrib non-free" >>/etc/apt/sources.list echo "deb http://mirrors.163.com/debian-security wheezy/updates main contrib non-free " >>/etc/apt/sources.list echo "deb http://http.us.debian.org/debian wheezy main contrib non-free" >>/etc/apt/sources.list echo "deb http://security.debian.org wheezy/updates main contrib non-free" >>/etc/apt/sources.list #maven http://www.cnblogs.com/ae6623/p/4416256.html ~/.m2/settings.xml yum install maven.noarch 阿里云的镜像 #nodejs https://npm.taobao.org/ https://cnpmjs.org/

资源下载

更多资源
优质分享App

优质分享App

近一个月的开发和优化,本站点的第一个app全新上线。该app采用极致压缩,本体才4.36MB。系统里面做了大量数据访问、缓存优化。方便用户在手机上查看文章。后续会推出HarmonyOS的适配版本。

Nacos

Nacos

Nacos /nɑ:kəʊs/ 是 Dynamic Naming and Configuration Service 的首字母简称,一个易于构建 AI Agent 应用的动态服务发现、配置管理和AI智能体管理平台。Nacos 致力于帮助您发现、配置和管理微服务及AI智能体应用。Nacos 提供了一组简单易用的特性集,帮助您快速实现动态服务发现、服务配置、服务元数据、流量管理。Nacos 帮助您更敏捷和容易地构建、交付和管理微服务平台。

Rocky Linux

Rocky Linux

Rocky Linux(中文名:洛基)是由Gregory Kurtzer于2020年12月发起的企业级Linux发行版,作为CentOS稳定版停止维护后与RHEL(Red Hat Enterprise Linux)完全兼容的开源替代方案,由社区拥有并管理,支持x86_64、aarch64等架构。其通过重新编译RHEL源代码提供长期稳定性,采用模块化包装和SELinux安全架构,默认包含GNOME桌面环境及XFS文件系统,支持十年生命周期更新。

Sublime Text

Sublime Text

Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Windows、Linux、Mac OS X等操作系统。

用户登录
用户注册