sh 系统更新(apt-get)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 系统更新(apt-get)相关的知识,希望对你有一定的参考价值。



sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade  -y && sudo apt-get cleanup


sudo apt-get install curl build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev libgmp-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion


curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm


rvm requirements

rvm install 


gem install rails

sudo vi /etc/bash.bashrc

export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8


sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales

sudo apt-get install postgresql postgresql-contrib postgresql-server-dev-9.3

sudo su postgres
createuser -P -s -e vagrant


 sudo vim /etc/postgresql/9.3/main/pg_hba.conf



 # "local" is for Unix domain socket connections only
local   all             all                                     trust
# IPv4 local connections:
host    all             all             127.0.0.1/32            trust
# IPv6 local connections:
host    all             all             ::1/128                 trust


sudo apt-get install redis-server libhiredis-dev

sudo apt-get install memcached libmemcached-dev

sudo apt-get install imagemagick libmagickwand-dev


sudo apt-get install git git-svn gitk ssh libssh-dev


sudo apt-get install libcurl4-openssl-dev
gem install passenger
sudo chown -R `whoami` /opt
passenger-install-nginx-module --auto-download --auto


sudo vi  /opt/nginx/conf/nginx.conf

以上是关于sh 系统更新(apt-get)的主要内容,如果未能解决你的问题,请参考以下文章

sh 使用apt-get将ansible更新到最新版本

apt-get通过代理更新系统

/bin/sh: apt-get: 未找到

sh 通过apt-get安装golang

sh 安装git / unzip / etc w / apt-get

Ubuntu apt-get 更新/查看软件