端口打开

命令如下:/sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT #8080为指定端口

/etc/rc.d/init.d/iptables save #将更改进行保存

/etc/init.d/iptables restart #重启防火墙以便改动生效

iptable重启

service iptables restart  iptable重启

添加自动启动项

 

chkconfig mysqld on

 

chkconfig mysqld off

 

chkconfig –list

如果某个服务尚未被添加到chkconfig列表中,则现需要使用–add参数将其添加进去:

chkconfig –add postfix

 

从系统启动项列表删除一个服务,使用–del选项从启动列表删除它:

 

#chkconfig --del ip6tables

 

查看httpd服务是否为自动启动:

chkconfig –list httpd

ftp服务器

ftp文件夹:/etc/ftp

用户以及密码在:/etc/vsftpd/vuser_passwd.db  可通过/etc/vsftpd/vuser_passwd.txt修改

然后用:db_load -T -t hash -f /etc/vsftpd/vuser_passwd.txt /etc/vsftpd/vuser_passwd.db

service vsftpd restart

运行redmine

ruby /var/www/redmine/script/server webrick -p 8000 -e production

添加开机启动命令

vi /etc/rc.d/rc.local

 

 

 

 

 

 

---恢复内容结束---

posted on 2013-07-24 10:24  飞奔的猪  阅读(518)  评论(0编辑  收藏  举报