linux第三方电子邮件配置 很多情况下我们需要linux发送一下定时任务执行的日志,或者备份失败的消息日志到我们指定的邮箱,此时需要配置linux的邮件服务postfix 或者用第三方邮件,这里介绍第三方邮件的linux配置方法, 以本人邮箱dragonfly@qq为例:配置文件/etc/mail.rc 追加以下内容:cat>>/etc/mail.rc<<eofset from=dragonfly@qq.comset smtp=smtp.qq.comset smtp-auth-user=dragonflyset smtp-auth-password=--...
ubuntu Server 安装apache2 命令 : sudo apt-get install apache2 出现提示: Could not reliably determine the server‘s fully qualified domain name, using 127.0.1.1 for ServerName解决办法: sudo vi /etc/apache2/apache2.conf 1.输入密码后,进入编辑模式,在空白处填加 ServerName localhost 2.按esc 然后 shift+: 输入 wq 保存并退出 不理解的参考vi编辑器 3.sudo apache2ctl configtest 启动服务 现在显...
对于虚拟机(Oracle VM VirtualBox)和Linux(RedHat)的下载和安装我在这里就不多说了,网上各种文档、视频都很全。不过我会在以后的博文中和大家分享我在其中遇到的问题和解决办法。 在这里我建意大家在Linux控制台中配置网络,因为这样显的专业么(因为我见过学了好久的哥们还用可视化配,虽然没什么但我仍小小的鄙视了他一下,嘿嘿) Linux是以目录形式展示的,所以我们要先找到网络的根目录 [root@localhost ~...
LINUX查看硬件配置1. 查看所有硬件的型号Cmd代码 dmidecode | more 结果代码 # dmidecode 2.2 SMBIOS 2.5 present. 170 structures occupying 4593 bytes. Table at 0xCFEFE000. Handle 0x0000 DMI type 0, 24 bytes. BIOS Information Vendor: HP Version: P61 Release Date: 12/07/2007 Address: 0x...
第一步:下载Tomcat安装包 下载地址:https://tomcat.apache.org/download-70.cgi [root@localhost ~]# wget http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-7/v7.0.82/bin/apache-tomcat-7.0.82.tar.gz 第二步:解压 [root@localhost ~]# tar -zxvf /usr/java/apache-tomcat-7.0.82.tar.gz 第三步:启动 进入到tomcat bin目录中。 输入 ./startup.sh启动Tomcat,假如显示 Tomcat started 则表明启动成...
文件配置: 1, /etc/ssh/sshd_config ssh配置文件 2, /etc/shadow 密码文件 3, /etc/sudoers 授权用户管理文件 4, /etc/issue 系统信息文件,可删除 5,/etc/issue.net 远程登入欢迎信息需要更改 6, /etc/redhat-release 操作系统和版本信息最好更改 7, /etc/motd 文件的系统公告,登入系统会显示在用户的终端 8, Control - Alt - Delete 组合键重启系统快捷键更改位置: ...
Linux系统SVN安装指导配置说明 1 安装SVN前检查: 检查是否安装SVN: rpm -qa subversion 查看安装SVN版本信息: svnserve --version 如果存在旧版本,卸载旧版本SVN: yum remove subversion 2 安装SVN: yum install subversion 3 代码库创建: mkdir -p /opt/svn/repos svnadmin create /opt/svn/repos 执行上面的命令后,自动建立repos库,查看/opt/svn/repos 文件夹发现包含了conf, db,format,hooks, locks, README....
下载(Oracle官网)http://www.oracle.com/technetwork/java/javase/downloads/index.html安装自己的需求下载相应的版本这里选择64位的jdk-7u79-linux-x64.tar.gz 安装配置JDK1.将jdk-7u79-linux-x64.tar.gz拷贝到/usr/local目录(一般自己的软件放在这个目录下)2.tar -zxvf jdk-7u79-linux-x64.tar.gz -C /usr/local/3.得到/usr/local/jdk1.7.0_79目录4.修改/etc/profile文件:vim /etc/profile5.在profile最后添加 export JAVA_H...
Tomcat在Linux上的安装与配置 以下使用的Linux版本为: Redhat Enterprise Linux 7.0 x86_64,Tomcat版本为tomcat-7.0.54.1.下载JDK与Tomcat. jdk下载地址: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html tomcat下载地址: http://tomcat.apache.org/download-70.cgi2.jdk安装与配置. (1)jdk安装 rpm包: # rpm -ivh jdk-7u55-linux-x64.rpm tar.gz包:解压缩 ...
第二个位置的 x 代表加密的密码,是不可见的。 原文:https://www.cnblogs.com/ibcdwx/p/13897788.html
下午打了几场dota2 感觉流畅度还算非常不错的,写点东西记录一下。用Archlinux 的一般来说都会用搜索引擎,所以仅仅说下须要注意的地方就可以。1. steam 自带的OpenGL 库是过时的,执行可能会抱怨“Cannot find OpenGL GX” 之类的东西,看ArchWiki 「steam」条目,删除steam 自带的几个库。2. 可是删除了steam 自带的那些库之后你须要在系统中安装新版的库,除去64 位的库之外(不可能还有人在用32 位的系统吧),看看有没有「lib...
一: 贴个脚本,主要实现两个功能;配置集群免密码登录可以远程批量执行命令#!/bin/bash
case $1 in # 获取option
-cp | --cpoy) #判断option
for ip_list in `cat $2`;do #读取$2文件每一行,将ip密码信息存入ip_list变量
ip=`echo $ip_list | cut -d: -f1` #提取ip
ps=`echo $ip_list | cut -d: -f2` #提取密码
expect -c"
spawn scp -r /root/.ssh/ $i...
Ubuntu 14.04 重启后DNS配置丢失问题的解决方案每次修改DNS配置文件 /etc/resolv.conf 重启后就会失效。从网上查知,这个文件是动态创建,所以每次重启都会被重写,此文件中也有警告:所以我们不能直接修改这个文件。通过查资料得知两种方式:1)vi /etc/network/interfaces
dns-nameservers 8.8.8.8
2)vi /etc/resolvconf/resolv.conf.d/base
nameserver 8.8.8.8
nameserver 114.114.114.114有多行IP就一行写一个。
修改完后保存...
一:安装Linux操作系统:二:安装java环境:
这里介绍的下载和安装都会在Terminal中完成,打开方式Applications→System Tools→Terminal。1、下载jdk:[admin@localhost ~]$ mkdir apache [admin@localhost ~]$ cd apache/ [admin@localhost apache]$ wget www.intime.com.cn/jdk-7u51-linux-i586.tar.gz--2014-02-22 09:35:47-- http://www.intime.com.cn/jdk-7u51-linux-i586.tar.gz Resolving www.intime.com.cn... ...
转 http://blog.itpub.net/23135684/viewspace-668924/ unix 一般使用方法3,用于部署osw 方法一:编辑/etc/rc.d/rc.local加入要执行的命令。如:[root@rhel5 rc.d]# cat rc.local#!/bin/sh## This script. will be executed *after* all the other init scripts.# You can put your own initialization stuff in here if you don‘t# want to do the full Sys V style. init stuff.touch /var/lock/subsys/localvncserver :1注意...