jsk tomcat postgre

来源:互联网 发布:价签制作软件 编辑:程序博客网 时间:2024/06/05 06:54

 

history
    1  reboot
    2  reboot
    3  shutdown -h now
    4  reboot
    5  reboot
    6  reboot
    7  shutdown -h now
    8  setup
    9  vi /etc/udev/rules.d/70-persistent-net.rules
   10  vi /etc/ssh/sshd_config
   11  reboot
   12  rpm -e bind-libs --nodeps
   13  hostname
   14  hostname 122.128.107.85
   15  hostname
   16  hostname -e
   17  hostname -f
   18  cd /tmp
   19  ls
   20  wget -O - http://autoinstall.plesk.com/one-click-installer | sh
   21  vi /etc/php.ini
   22  vi /usr/share/psa-horde/config
   23  cd /usr/share/psa-horde/config
   24  ls
   25  chmod 755 conf.php
   26  vi conf.php
   27  vi /etc/sysconfig/selinux
   28  cd /usr/local/psa/admin/sbin/mchk
   29  /usr/local/psa/admin/sbin/mchk
   30  passwd
   31  vi /etc/postfix/master.cf
   32  /usr/local/psa/admin/sbin/mailmng --reload-service
   33  telnet localhost 2025
   34  ls
   35  cd /
   36  ls
   37  cd /home
   38  l
   39  ls
   40  cd ftp
   41  ls
   42  df -lh
   43  time
   44  date
   45  ntpdate time.buaa.edu.cn
   46  uname
   47  uname -a
   48  cal
   49  find / -name web_users
   50  uname -a
   51  dmidecode
   52  clear
   53  service httpd restart
   54  setup
   55  ps -ef
   56  rpm -qi
   57  rpm -qi http
   58  rpm -qi httpd
   59  cd /home
   60  ls
   61  mkdir soft
   62  ls
   63  chmod -R 777 soft
   64  ll
   65  chmod -R 755 soft
   66  ll
   67  cd /etc/sysconfig/i18n
   68  vim /etc/sysconfig/i18n
   69  vim /etc/profile
   70  setup
   71  clear
   72  ls
   73  wget http://download.oracle.com/otn-pub/java/jdk/6u32-b05/jdk-6u32-linux-i586-rpm.bin
   74  find / -name download-fail-1505220.html
   75  cd /root
   76  ls
   77  rm -rf download-fail-1505220.html
   78  ls
   79  cd /home
   80  ls
   81  uname -a
   82  cd /
   83  ls
   84  service vsftpd restart
   85  service vsftp restart
   86  setup
   87  cd /etc
   88  ls
   89  ./ftp
   90  \ftp
   91  .\ftp
   92  ftp
   93  find / -name vsftp
   94  cd /
   95  find / -name ftp
   96  cd /home/ftp
   97  ls
   98  cd /etc/
   99  ls
  100  cd init.d
  101  ls
  102  cd ./init
  103  cd ../
  104  ls
  105  cd init
  106  ls
  107  cd ../
  108  cd init.d/
  109  ls
  110  find / -name vconf
  111  cd /usr/bin/
  112  ls
  113  cd /
  114  clear
  115  find / -name apache
  116  cd /var/spool/mail/apache
  117  ls
  118  cd /var/spool
  119  ls
  120  cd mail/apache
  121  find / -name httpd.conf
  122  vim /etc/httpd/conf/httpd.conf
  123  vim /etc/httpd/conf/
  124  cd /etc/httpd/conf/
  125  ls
  126  vi workers.properties
  127  clear
  128  cd /usr
  129  mkdir java
  130  ls
  131  ll
  132  cd /home/sfot
  133  cd /home/soft
  134  ls
  135  cp jdk-6u32-linux-i586-rpm.bin /usr/java
  136  ls
  137  cd /usr/java
  138  ls
  139  chmod a+x jdk-6u32-linux-i586-rpm.bin
  140  ./jdk-6u32-linux-i586-rpm.bin
  141  cd /etc/
  142  cp profile profile_bak_2012-05-13
  143  vim profile
  144  cd /usr
  145  ls
  146  mkdir tomcat
  147  cd /home/sfot
  148  cd /home/soft
  149  ls
  150  cp apache-tomcat-6.0.35.tar.gz /usr/tomcat/
  151  ls
  152  cd /usr/tomcat/
  153  ls
  154  tar -zxvf apache-tomcat-6.0.35.tar.gz
  155  ls
  156  cd apache-tomcat-6.0.35
  157  ls
  158  cd conf/
  159  ls
  160  vim tomcat-users.xml
  161  ls
  162  cd ../
  163  ls
  164  cd bin
  165  ls
  166  cd ./
  167  ls
  168  cd ./
  169  ls
  170  cd ../
  171  ls
  172  cp * /usr/tomcat
  173  cp -fta * /usr/tomcat
  174  cp -fra * /usr/tomcat
  175  ls
  176  cd ../
  177  ls
  178  cd bin
  179  ls
  180  ./catalina.sh run
  181  service httd stop
  182  service httpd stop
  183  ./startup.sh
  184  ls
  185  vim startup.sh
  186  ps -ef
  187  service mysqld stop
  188  ps -ef
  189  cd /home/soft
  190  ls
  191  cd /usr/
  192  mkdir postgre
  193  ls
  194  cd /home/soft
  195  ls
  196  cp postgresql-8.4.6.tar.gz /usr/postgre/
  197  cd /usr/postgre/
  198  ls
  199  tar -zxvf postgresql-8.4.6.tar.gz
  200  ls
  201  cd postgresql-8.4.6
  202  ls
  203  cd -fra * ../
  204  cd ../
  205  ls
  206  rm -rf postgresql-8.4.6
  207  ls
  208  cp postgresql-8.4.6.tar.gz ../
  209  ls
  210  cd ../
  211  ls
  212  tar -zxvf postgresql-8.4.6.tar.gz
  213  cd postgresql-8.4.6
  214  ./configure --prefix=/usr/local/pgsql
  215  cd ../
  216  ls
  217  cd /usr/postgresql
  218  ls
  219  cd ../
  220  rm -rf postgresql
  221  tar -zxvf postgresql-8.4.6.tar.gz
  222  cd postgresql-8.4.6
  223  ls
  224  ./configure --prefix=/usr/postgresql
  225  yum install gcc
  226  ./configure --prefix=/usr/postgresql
  227  ./configure --prefix=/usr/postgres
  228  ls
  229  ./configure --prefix=/usr/postgres
  230  yum install readline
  231  yum install readline-dev
  232  ./configure --prefix=/usr/postgres
  233  yum search readline
  234  yum -y install -y readline-devel
  235  ./configure --prefix=/usr/postgres
  236  yum install zlib-devel
  237  ./configure --prefix=/usr/postgres
  238  ./configure --prefix=/usr/postgresql
  239  make
  240  ls
  241  make
  242  make && make install
  243  ./configure --prefix=/usr/postgresql
  244  make
  245  yum install imake*
  246  yum install make*
  247  ./configure --prefix=/usr/postgresql
  248  make
  249  make install
  250  groupadd postgres
  251  useradd - g postgres - d /usr/postgresql postgres
  252  useradd -g postgres -d /usr/postgresql postgres
  253  mkdir /usr/postgresql/data
  254  chown -R postgres.postgres /usr/postgresql
  255  vim /etc/profile
  256  cat /proc/version
  257  df -1
  258  uname -a
  259  cd /usr/postgresql
  260  ls
  261  cd data
  262  ls
  263  cd ../
  264  ll
  265  su - postgresql
  266  su - postgre
  267  chown - postgres
  268  su - postgres
  269  /usr/postgresql/bin/initdb -D /usr/postgresql/data/
  270  su - postgres
  271  vim /etc/profile
  272  su - postgres
  273  vim /etc/profile
  274  cd /usr/postgresql/data/
  275  ls
  276  vim postgresql.conf
  277  vi pg_hba.conf
  278  cd ../
  279  ls
  280  cd bin
  281  ls
  282  ./initdb -D $PGDATA
  283  su postgres
  284  cd /etc/rc.d/init.d/
  285  postgres restart
  286  su - postgres
  287  ps -ef
  288  clear
  289  ps -ef
  290  ls
  291  postmaster -i -D/database&
  292  su - postgres
  293  cd /usr/postgresql/bin
  294  ls
  295  service postgresql stop
  296  cd ./
  297  cd ../
  298  ls
  299  find / -name start-scripts
  300  find /usr/postgresql -name start-scripts
  301  /usr/postgresql/bin/createdb test_db
  302  su - postgres
  303  cd /usr/postgresql/data/
  304  ls
  305  vim pg_hba.conf
  306  ps -ef
  307  chkconfig --list
  308  netstat -ln|grep 8080
  309  cd /usr/tomcat/bin
  310  ls
  311  shutdown.sh
  312  cd
  313  cd /usr/tomcat/webapps
  314  ls
  315  rm -rf cmsweb/
  316  cd /usr/tomcat/work/Catalina/localhost
  317  ls
  318  rm -rf cmsweb/
  319  netstat -an
  320  netstat lan
  321  netstat -ln
  322  ps -ef
  323  ps -ef |grep 8080
  324  clear
  325  cd /usr/java
  326  ls
  327  cd /usr/tomcat/
  328  ls
  329  cd bin
  330  ls
  331  startup.sh
  332  shutdown.sh
  333  startup.sh
  334  shutdown.sh
  335  startup.sh
  336  cd /usr/postgresql/data/postgresql.conf
  337  vim /usr/postgresql/data/postgresql.conf
  338  cd /usr/postgresql/
  339  vim data/pg_hba.conf
  340  ll
  341  cd bin
  342  ls
  343  serivce postgresql start
  344  serivce postgres start
  345  ls
  346  postgres start
  347  postgres stop
  348  su - postgres
  349  ls
  350  top
  351  netstat -ln
  352  uname -an
  353  cd /usr/tomcat/bin
  354  ls
  355  startup.sh
  356  passwd

 

 

启动postgre服务:

su postgres
/usr/postgresql/bin/postgres

 

 

 


 

原创粉丝点击