• 欢迎访问开心洋葱网站,在线教程,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站,欢迎加入开心洋葱 QQ群
  • 为方便开心洋葱网用户,开心洋葱官网已经开启复制功能!
  • 欢迎访问开心洋葱网站,手机也能访问哦~欢迎加入开心洋葱多维思维学习平台 QQ群
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏开心洋葱吧~~~~~~~~~~~~~!
  • 由于近期流量激增,小站的ECS没能经的起亲们的访问,本站依然没有盈利,如果各位看如果觉着文字不错,还请看官给小站打个赏~~~~~~~~~~~~~!

centos 服务器配置php,mysql,apache的历史脚本bash_history

Linux 开心洋葱 1339次浏览 0个评论

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

 


开心洋葱 , 版权所有丨如未注明 , 均为原创丨未经授权请勿修改 , 转载请注明centos 服务器配置php,mysql,apache的历史脚本bash_history
喜欢 (0)

您必须 登录 才能发表评论!

加载中……