[root@lowtrafic ~]# yum install -y httpd vsftpd php mysql-server mysql php-mysql
[root@lowtrafic ~]# service vsftpd start
[root@lowtrafic ~]# service httpd start
[root@lowtrafic ~]# service mysqld start
[root@lowtrafic ~]# chkconfig httpd on
[root@lowtrafic ~]# chkconfig mysqld on
[root@lowtrafic ~]# chkconfig vsftpd on
Buscar este blog
miércoles, 7 de septiembre de 2011
Adding a startup script to be run at bootup RedHat or Similar
Adding a startup script to be run at bootup RedHat or Similar
Create script
[root@lowtrafic ~]# vi /etc/init.d/mystartup.sh
Add Command Line Parameters.
Save file and exit.
Add permission to file
[root@lowtrafic ~]# cd /etc/init.d
[root@lowtrafic ~]# chmod +rwxrxrx mystartup.sh
Adding a startup script to be run at bootup
[root@lowtrafic ~]# vi /etc/rc.d/rc.local
Edit file.
#!/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.
/etc/init.d/mystartup.sh
Save file and exit.
Reboot server for test.
Create script
[root@lowtrafic ~]# vi /etc/init.d/mystartup.sh
Add Command Line Parameters.
Save file and exit.
Add permission to file
[root@lowtrafic ~]# cd /etc/init.d
[root@lowtrafic ~]# chmod +rwxrxrx mystartup.sh
Adding a startup script to be run at bootup
[root@lowtrafic ~]# vi /etc/rc.d/rc.local
Edit file.
#!/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.
/etc/init.d/mystartup.sh
Save file and exit.
Reboot server for test.
lunes, 5 de septiembre de 2011
How to install sshfs and fuse / Mount remote FS
Info to link: http://fuse.sourceforge.net/sshfs.html
Download fuse
wget http://sourceforge.net/projects/fuse/files/fuse-2.X/2.8.5/fuse-2.8.5.tar.gz/download
Install fuse.
tar -xzf fuse-2.8.5.tar.gz
Install fuse.
[root@Server fuse]# cd fuse-2.8.5
[root@Server fuse-2.8.5]# ./configure
[root@Server fuse-2.8.5]# make
[root@Server fuse-2.8.5]# make install
Donwload sshfs
wget http://sourceforge.net/projects/fuse/files/sshfs-fuse/2.3/sshfs-fuse-2.3.tar.gz/download
Install sshfs-fuse
tar -xzf sshfs-fuse-2.3.tar.gz
[root@Server fuse]# cd sshfs-fuse-2.3
[root@Server sshfs-fuse-2.3]# ./configure
[root@Server sshfs-fuse-2.3]# make
[root@Server sshfs-fuse-2.3]# make install
[root@Server sshfs-fuse-2.3] ln -s /usr/local/lib/libfuse.so.2 /lib64/ (x64)
[root@Server sshfs-fuse-2.3] ln -s /usr/local/lib/libfuse.so.2 /lib/ (for 32-bit)
Mount remote FS
sshfs root@remoteserver:/srv/ /mnt/remote-fs/ -C
Suscribirse a:
Entradas (Atom)