centos 服务器配置php,mysql,apache的历史脚本bash_history
vim /etc/yum.repos.d/utterramblings.repo yum update php -y mkdir software cd software/ wget ftp://xradm:147258369@203.158.19.51/php5210/32/* ls rpm -Uvh php* service httpd restart yum install httpd rpm -Uvh php* yum install mysql* ls rpm -Uvh php* rpm -Uvh php* service httpd reload yum install http* service httpd restart yum install http* ls rpm -Uvh php* php -v yum install vsftp* servie vsftpd restart ls rm -rf * cd .. rm -rf software/ ls yum install php* php -v php yum install php* yum install php ifconfig setup service network restart exit vi /etc/resolv.conf fdisk -l yum -y install httpd php mysql mysql-server php-mysql httpd-manual mod_ssl mod_perl mod_auth_mysql php-mcrypt php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc mysql-connector-odbc mysql-devel libdbi-dbd-mysql yum -y install httpd php mysql mysql-server php-mysql httpd-manual mod_ssl mod_perl mod_auth_mysql php-mcrypt php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc mysql-connector-odbc mysql-devel libdbi-dbd-mysql yum -y install httpd php mysql mysql-server php-mysql httpd-manual mod_ssl mod_perl mod_auth_mysql php-mcrypt php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc mysql-connector-odbc mysql-devel libdbi-dbd-mysql yum -y install httpd php mysql mysql-server php-mysql httpd-manual mod_ssl mod_perl mod_auth_mysql php-mcrypt php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc mysql-connector-odbc mysql-devel libdbi-dbd-mysql yum -y install httpd php mysql mysql-server php-mysql httpd-manual mod_ssl mod_perl mod_auth_mysql php-mcrypt php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc mysql-connector-odbc mysql-devel libdbi-dbd-mysql yum -y install httpd php mysql mysql-server php-mysql httpd-manual mod_ssl mod_perl mod_auth_mysql php-mcrypt php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc mysql-connector-odbc mysql-devel libdbi-dbd-mysql yum -y install httpd php mysql mysql-server php-mysql httpd-manual mod_ssl mod_perl mod_auth_mysql php-mcrypt php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc mysql-connector-odbc mysql-devel libdbi-dbd-mysql chkconfig httpd on chkconfig --add mysqld chkconfig mysqld on service httpd start service httpd restart service mysqld start mysqladmin -u root password '123456' service mysqld restart fdisk -l init 0\ init 0 ifconfig setup service network restart exit vi /etc/resolv.conf fdisk -l fdisk /dev/sdb fdisk -l mkfs.ext3 /dev/sdb1 mount /dev/sdb1 /data vi /etc/fstab passwd reboot iptables iptables --list service mysql status service mysqld status service sshd status service vsftpd status cat /etc/issue cd /etc/ cd gdm ls cd gdm cd /gdm vim /etc/ssh/sshd_config yun install vsftpd yun install vsftpd cat /var/log/secure | grep sftp vi /etc/ssh/sshd_config cd /usr/local/libexec ls ls -a /etc/init.d/sshd reload vi /etc/ssh/sshd_config locate sftp-server vi /etc/ssh/sshd_config /etc/init.d/sshd reload locate mysqld cat /var/log/secure cat /var/log/secure yum install vsftpd yum install vsftpd yum update yum install vsftpd service vsftpd status service vsftpd start netstat -tl vi /etc/vsftpd/vsftpd.conf vi /etc/vsftpd/vsftpd.conf setup service iptables restart vi /etc/vsftpd/vsftpd.conf service iptables restart service vsftpd restat service vsftpd restart adduser -d /home/ adduser -d /home/ -g ftp -s /sbin/nologin ftpuser cd /home ls cd /etc/php cd / ls cd etc ls cd php cd /var/www/html ls vi phpinfo.php adduser -d /var/www/html/ -g ftp -s /sbin/nologin ftpuser adduser -d /var/www/html/ -g ftp -s /sbin/nologin ftpadmin cat /etc/passwd :q passwd ftpuser setup service iptables restart chmod 777 /var/www/html/ setup zip rz rz rz cd /var/www/html/ zip phpzip phpMyAdmin-2.11.9.1-all-languages.zip zip unzip phpMyAdmin-2.11.9.1-all-languages.zip cd phpmyadmin chmod 777 config.sample.inc.php cd libraries/ chmod 777 common.inc.php service httpd restart chmod 777 config.default.php chmod 644 config.default.php chmod 644 common.inc.php cd .. chmod 644 config.sample.inc.php chmod 777 /etc/httpd/conf/httpd.conf service service httpd restart cd /home mk wwwroot mkdir wwwroot service httpd restart vi /var/www/error/noindex.html vi /var/www/error/noindex.html chmod 777 /var/www/error/noindex.html chmod 777 /var/www/error/noindex.html chmod 777 /home/wwwroot service httpd restart cd /home/wwwroot/ ls unzip amadisf.yanshizhan.net2012-12-31.zip ls cd amadisf.yanshizhan.net2012-12-31 mv * /home/wwwroot ls cd .. ls setup service iptables restart setup chmod 777 /home/wwwroot/temp chmod 777 /home/wwwroot/temp -R chmod 774 /home/wwwroot/temp -R chmod 777 /home/wwwroot/temp -R passwd ftpuser chmod 777 -R /home/wwwroot chmod 644 -R /home/wwwroot chmod 644 -R /home/wwwroot/temp chmod 777 -R /home/wwwroot chmod 755 -R /home/wwwroot chmod 777 -R /home/wwwroot |