首先 查看1.用ps -ef|grep postgres 查看进程是否已经启动;正常情况如下:postgres 1445 1 0 07:54 ? 00:00:00 /usr/bin/postgres -D /var/lib/pgsql/data -p 5432postgres 1853 1445.....
分类:
数据库 时间:
2014-10-15 12:40:00
阅读次数:
773
Problem Descriplation: 加载ed_device驱动后,ifconfig不显示ed0连接。但是ifconfig ed0会打印出数据。 ifconfig ed0 192.168.5.1时出现segmentation fault。 eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1 ...
分类:
其他好文 时间:
2014-10-13 19:56:27
阅读次数:
336
1.初始化数据库;postgresql-setup initdb2.启动postgresql并设置为开机自启动;systemctl restart postgresqlsystemctl enable postgresql3.登进数据库看看状态;(可略)su - postgrespsql\du (查...
分类:
数据库 时间:
2014-10-13 19:02:27
阅读次数:
303
cd/usr/local/src
wgethttp://nginx.org/download/nginx-1.7.6.tar.gz
tar–xvfnginx-1.7.6.tar.gz
cdnginx-1.7.6
./configure--prefix=/usr/local/nginx--with-http_stub_status_module--with-http_ssl_module--with-pcre
makemakeinstall
vi/usr/local/nginx/conf/nginx.con..
分类:
Web程序 时间:
2014-10-13 17:47:30
阅读次数:
552
故障:1、/etc/sysconfig/network-scripts目录下无ifcfg-eth02、ifconfig命令无eth0,仅显示lo解决方法:一、如果输入ifconfig,没有eth0:,那你需要安装网卡驱动,如下:ubuntu中查看网卡类型及是否安装网卡驱动程序1输入:lspci或者lspci–v或lspci–vv会显示所有的硬件信息和..
分类:
其他好文 时间:
2014-10-13 15:30:50
阅读次数:
359
1.更改IPV4
Linux
IPV4 ifconfig eth0 192.168.24.1 netmask 255.255.255.0
# /sbin/ifconfig inet6 add /
IPV6 ifconfig eth0 inet6 add 2001:0db8:0:f101::1/64
做个小记
10/13 2014...
分类:
其他好文 时间:
2014-10-13 14:27:29
阅读次数:
255
####closeserviceTimeServerMaster="192.168.6.13"SSHPort="58522"echored(){echo-ne"\033[31m"$1"\033[0m\n"}echogreen(){echo-ne"\033[32m"$1"\033[0m\n"}IPN=`ifconfig|grep192.168|awk‘{print$2}‘|cut-d:-f2|awk-F.‘{print$3"-"$4}‘`HOSTNAME="HK$IPN"hostname$HOSTNAMEsed..
分类:
其他好文 时间:
2014-10-13 02:47:49
阅读次数:
404
#!/bin/sh
# Find ip
IP=`/sbin/ifconfig eth1 | grep 'inet addr' | awk '{ print substr($2, index($2, ":")+1)}'`
#monitor procname scriptname
monitor()
{
procname=$1
scriptname=$2
# Find proc by p...
分类:
Web程序 时间:
2014-10-12 10:46:07
阅读次数:
267
#!/bin/sh
my_ip=`/sbin/ifconfig eth1 | grep 'inet addr' | awk '{print substr($2, index($2, ":")+1)}'`
recv=""
msg="not_existing, restart ..."
MONITOR_LOG="monitor.log"
#monitor procname scriptname...
分类:
系统相关 时间:
2014-10-11 23:25:07
阅读次数:
329