ubuntu服务器配置
来源:互联网 发布:手机平面设计软件 编辑:程序博客网 时间:2024/05/21 15:46
Linux创建group和创建user
sudo groupadd passportsudo useradd -g passport -s /bin/bash -d /home/passport -m passport
如果Ubuntu是安装在VMWare的虚拟机,需要先安装vm-tools
sudo apt-get install open-vm-tools
Ubuntu 14.04 修改更新源
sudo mv /etc/apt/source.list /etc/apt/source.list.bksudo vim /etc/apt/source.list
增加以下内容:
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
Ubuntu上安装Git
sudo apt-get install git
Ubuntu上安装Oracle JDK
sudo apt-get install python-software-propertiessudo add-apt-repository ppa:webupd8team/javasudo apt-get updatesudo apt-get install oracle-java8-installer // Oracle JDK 8(最新版本)
Ubuntu上安装GCC tool chain
sudo apt-get install build-essential
Ubuntu上安装Jenkins
参考链接: http://pkg.jenkins-ci.org/debian/
This is the Debian package repository of Jenkins to automate installation and upgrade. To use this repository, first add the key to your system:
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add -Then add the following entry in your /etc/apt/sources.list:deb http://pkg.jenkins-ci.org/debian binary/Update your local package index, then finally install Jenkins:sudo apt-get updatesudo apt-get install jenkins
Ubuntu上配置Jenkins
1. 关闭jenkins服务
service jenkins stop
- 修改配置
/etc/default/jenkins 修改HTTP_PORT=8080为HTTP_PORT=9999 /etc/init.d/jenkins 修改"$HTTP_PORT" "8080" 为"$HTTP_PORT" "9999"
- 启动jenkins服 service jenkins startntu上安装MySQL Server
sudo apt-get install mysql-server-5.6
Ubuntu上安装Gitlab CE
参考文档:https://about.gitlab.com/downloads/#ubuntu1404
下载安装包:https://packages.gitlab.com/gitlab/gitlab-ce (gitlab-ce_8.2.4-ce.2_amd64.deb ubuntu/trusty)
安装安装包:dpkg -i gitlab-ce-XXX.deb
配置并启动Gitlab: sudo gitlab-ctl reconfigure
Gitlab服务重启:gitlab-ctl restart
Gitlab初始登陆账号:root,初始密码:5iveL!fe
Ubuntu上安装Gogs
参考文档:https://gogs.io/docs/installation/install_from_binary.html
下载Gogs:https://dl.gogs.io/
解压压缩包。
使用命令 cd 进入到刚刚创建的目录。
执行命令 ./gogs web,然后,就没有然后了。
Ubuntu上安装Tengine (淘宝定制的Nginx)
Tengine参考文档:http://tengine.taobao.org/documentation_cn.html
下载:http://tengine.taobao.org/download_cn.html
《Nginx开发从入门到精通》:http://tengine.taobao.org/book/index.html
编译安装Tengine:
Step 1: 下载Tengine源码包(参考下载链接)
Step 2:编译Tengine准备工作:
sudo apt-get install build-essential sudo apt-get install libpcre3 libpcre3-dev sudo apt-get install openssl libssl-dev
Step 3: 编译并安装
tar zxf tengine-2.1.2.tar.gz cd tengine-2.1.2 ./configure make -j4 make install
Tengine默认将安装在/usr/local/nginx
- ubuntu服务器配置备忘录
- Ubuntu配置Telnet服务器
- ubuntu tftp服务器配置
- ubuntu下服务器配置
- Ubuntu SAMBA服务器配置
- ubuntu 配置 boa 服务器
- ubuntu配置samba服务器
- ubuntu配置ntp服务器
- ubuntu 服务器相关配置
- Ubuntu 配置web服务器
- ubuntu配置TFTP服务器
- ubuntu nfs服务器配置
- ubuntu tftp服务器配置
- Ubuntu 配置tomcat 服务器
- Ubuntu 配置WebDav服务器
- Ubuntu配置NFS服务器
- ubuntu配置ftp服务器
- ubuntu服务器VPN配置
- android系统调式步骤
- 移动web滑动效果Swipe JS插件
- 郭大侠与线上游戏(set)
- Swift - 多线程实现方式
- HDU3732 01背包转化为多重背包
- ubuntu服务器配置
- 归并排序
- C/C++复习:不等长字符串排序(2)
- VS2008下进行CUDA和OPENMP混合编程问题
- 设计模式 代理模式
- 远程仓库与本地仓库设置SSH Key
- 5分钟理解什么是新三板
- 16(套接字)
- 认识UML中类之间的依赖、关联、聚合、组合、泛化的关系